diff options
author | Philipp AUER <auerphilipp38@yahoo.de> | 2019-01-06 14:04:03 +0100 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-01-11 10:41:51 -0600 |
commit | f53279b1e1883cd1bbade4275d76bd7052d98154 (patch) | |
tree | 58b4e18755fc872aeb50c87e12fceabd99ed2940 | |
parent | 372d5f63d887531d7ddeb48faf6b9f367b7c16d1 (diff) |
add DWARF debug sections to ld_script.txt
-rw-r--r-- | ld_script.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ld_script.txt b/ld_script.txt index be59145a3..eec182ea3 100644 --- a/ld_script.txt +++ b/ld_script.txt @@ -1194,6 +1194,31 @@ SECTIONS { src/graphics.o(.rodata); } =0 + /* DWARF debug sections. + Symbols in the DWARF debugging sections are relative to the beginning + of the section so we begin them at 0. */ + + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* Discard everything not specifically mentioned above. */ /DISCARD/ : { |