ld: exclude more debug sections (C++)

This commit is contained in:
Lephe 2022-03-19 19:26:05 +00:00
parent 36d66a6317
commit 48325fc54d
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 4 additions and 2 deletions

View file

@ -239,7 +239,8 @@ SECTIONS
/DISCARD/ : { /DISCARD/ : {
/* Debug sections (often from libgcc) */ /* Debug sections (often from libgcc) */
*(.debug_info .debug_abbrev .debug_loc .debug_aranges *(.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?!) */ /* Java class registration (why are they even here?!) */
*(.jcr) *(.jcr)
/* Asynchronous unwind tables: no C++ exception handling */ /* Asynchronous unwind tables: no C++ exception handling */

View file

@ -191,7 +191,8 @@ SECTIONS
*(.gint.data.sh3 .gint.bss.sh3) *(.gint.data.sh3 .gint.bss.sh3)
/* Debug sections (often from libgcc) */ /* Debug sections (often from libgcc) */
*(.debug_info .debug_abbrev .debug_loc .debug_aranges *(.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?!) */ /* Java class registration (why are they even here?!) */
*(.jcr) *(.jcr)
/* Asynchronous unwind tables: no C++ exception handling */ /* Asynchronous unwind tables: no C++ exception handling */