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
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 0 additions and 8 deletions

View File

@ -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 */

View File

@ -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 */