From 5461d54083faca14f8d9707bb61c1d53c3a979e5 Mon Sep 17 00:00:00 2001 From: Lephe Date: Sat, 19 Nov 2022 23:05:57 +0100 Subject: [PATCH] ld: do not remove debug sections from ELF files They are already removed by objcopy when converting to a flat binary because they don't have the LOAD flag. --- fx9860g.ld | 4 ---- fxcg50.ld | 4 ---- 2 files changed, 8 deletions(-) diff --git a/fx9860g.ld b/fx9860g.ld index f005adf..accaa19 100644 --- a/fx9860g.ld +++ b/fx9860g.ld @@ -225,10 +225,6 @@ SECTIONS */ /DISCARD/ : { - /* Debug sections (often from libgcc) */ - *(.debug_info .debug_abbrev .debug_loc .debug_aranges - .debug_ranges .debug_line .debug_str .debug_frame - .debug_loclists .debug_rnglists) /* Java class registration (why are they even here?!) */ *(.jcr) /* Asynchronous unwind tables: no C++ exception handling */ diff --git a/fxcg50.ld b/fxcg50.ld index 4d26116..0f986af 100644 --- a/fxcg50.ld +++ b/fxcg50.ld @@ -176,10 +176,6 @@ SECTIONS /DISCARD/ : { /* SH3-only data sections */ *(.gint.data.sh3 .gint.bss.sh3) - /* Debug sections (often from libgcc) */ - *(.debug_info .debug_abbrev .debug_loc .debug_aranges - .debug_ranges .debug_line .debug_str .debug_frame - .debug_loclists .debug_rnglists) /* Java class registration (why are they even here?!) */ *(.jcr) /* Asynchronous unwind tables: no C++ exception handling */