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.
This commit is contained in:
Lephe 2022-11-19 23:05:57 +01:00
parent 4df3d69d8c
commit 5461d54083
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 0 additions and 8 deletions

View file

@ -225,10 +225,6 @@ SECTIONS
*/ */
/DISCARD/ : { /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?!) */ /* 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

@ -176,10 +176,6 @@ SECTIONS
/DISCARD/ : { /DISCARD/ : {
/* SH3-only data sections */ /* SH3-only data sections */
*(.gint.data.sh3 .gint.bss.sh3) *(.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?!) */ /* Java class registration (why are they even here?!) */
*(.jcr) *(.jcr)
/* Asynchronous unwind tables: no C++ exception handling */ /* Asynchronous unwind tables: no C++ exception handling */