[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25591] Should /DISCARD/ : { *(.symtab) *(.strtab) } work?
From: |
i at maskray dot me |
Subject: |
[Bug ld/25591] Should /DISCARD/ : { *(.symtab) *(.strtab) } work? |
Date: |
Thu, 05 Mar 2020 05:55:35 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25591
--- Comment #2 from Fangrui Song <i at maskray dot me> ---
SECTIONS { /DISCARD/ : { *(.symtab) } } deletes .symtab
SECTIONS { /DISCARD/ : { *(.strtab) } } deletes .strtab
When combined, it is like --strip-all (normally there is no need for
.symtab_shndx)
/DISCARD/ : { *(.shstrtab) } is not allowed by lld.
/DISCARD/ : { *(*) } matches .shstrtab, and thus is not allowed by lld.
*(*) is likely a user error.
/DISCARD/ : { INPUT_SECTION_FLAGS(SHF_ALLOC) *(*) }
--
You are receiving this mail because:
You are on the CC list for the bug.