diff options
author | YamaArashi <shadow962@live.com> | 2016-09-25 15:24:04 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-09-25 15:24:04 -0700 |
commit | 653724c79bb0cca9e79cc46c189d2cb5e69dfdae (patch) | |
tree | ad7fefe5abbb40edea50e1e48b64239d43336bd2 | |
parent | a5727f581bb76e0a2240f3a352204689d18a25e2 (diff) |
generate debug info
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | ld_script.txt | 11 |
2 files changed, 12 insertions, 1 deletions
@@ -4,7 +4,7 @@ AS := $(DEVKITARM)/bin/arm-none-eabi-as ASFLAGS := -mcpu=arm7tdmi CC1 := tools/agbcc/bin/agbcc -CFLAGS := -mthumb-interwork -O2 +CFLAGS := -mthumb-interwork -O2 -g CPP := $(DEVKITARM)/bin/arm-none-eabi-cpp CPPFLAGS := -I tools/agbcc/include -iquote include -nostdinc -undef diff --git a/ld_script.txt b/ld_script.txt index 2cf248eb0..40f28e59e 100644 --- a/ld_script.txt +++ b/ld_script.txt @@ -570,6 +570,17 @@ SECTIONS { data/graphics.o(gfx_data); } =0 + /* DWARF 2 sections */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + .debug_info 0 : { *(.debug_info) } + .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/ : { |