From 48325fc54dbb1ddfe261ea92342908d7b0c0b332 Mon Sep 17 00:00:00 2001 From: Lephe Date: Sat, 19 Mar 2022 19:26:05 +0000 Subject: [PATCH] ld: exclude more debug sections (C++) --- fx9860g.ld | 3 ++- fxcg50.ld | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fx9860g.ld b/fx9860g.ld index b081ea1..e6a8bf2 100644 --- a/fx9860g.ld +++ b/fx9860g.ld @@ -239,7 +239,8 @@ SECTIONS /DISCARD/ : { /* Debug sections (often from libgcc) */ *(.debug_info .debug_abbrev .debug_loc .debug_aranges - .debug_ranges .debug_line .debug_str) + .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 285751a..143e4f4 100644 --- a/fxcg50.ld +++ b/fxcg50.ld @@ -191,7 +191,8 @@ 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_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 */