https://bugs.llvm.org/show_bug.cgi?id=44452
Bug ID: 44452
Summary: Wildcard in linker script matches non-SHF_ALLOC
sections causing error
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedb...@nondot.org
Reporter: john.br...@arm.com
CC: llvm-bugs@lists.llvm.org, peter.sm...@linaro.org
If you have the following linker script:
SECTIONS
{
ALL 0x1000 : { *(*) }
}
and try to link pretty much anything using it you get the errors
ld.lld: error: section type mismatch for .rela.plt
>>> <internal>:(.rela.plt): SHT_RELA
>>> output section ALL: SHT_PROGBITS
ld.lld: error: section type mismatch for .rela.dyn
>>> <internal>:(.rela.dyn): SHT_RELA
>>> output section ALL: SHT_PROGBITS
ld.lld: error: section type mismatch for .symtab
>>> <internal>:(.symtab): SHT_SYMTAB
>>> output section ALL: SHT_PROGBITS
ld.lld: error: section type mismatch for .symtab_shndx
>>> <internal>:(.symtab_shndx): SHT_SYMTAB_SHNDX
>>> output section ALL: SHT_PROGBITS
ld.lld: error: section type mismatch for .shstrtab
>>> <internal>:(.shstrtab): SHT_STRTAB
>>> output section ALL: SHT_PROGBITS
ld.lld: error: section type mismatch for .strtab
>>> <internal>:(.strtab): SHT_STRTAB
>>> output section ALL: SHT_PROGBITS
GNU ld doesn't match such sections for this same linker script, and instead
generates separate output sections for them.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs