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.