11
Programming with NASM / Re: gdb and debug symbols
« Last post by Frank Kotler on March 02, 2024, 09:22:38 PM »""Code" is not a "known section name". Try changing it to .text
Best,
Frank
section .data
EOLs: db 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
section .text
global _start
_start:
nop
info address EOLs
Symbol "EOLs" is at 0x402000 in a file compiled without debugging.
(gdb) x/16bx &EOLs
0x402000 <EOLs>: 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a
0x402008: 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a
(gdb) x/16bx 0x402000
0x402000 <EOLs>: 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a
0x402008: 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a