[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 2/3] build32: don't discard .shstrtab in linker script
On 28.05.2020 16:40, Roger Pau Monne wrote: > LLVM linker doesn't support discarding .shstrtab, and complains with: > > ld -melf_i386_fbsd -N -T build32.lds -o reloc.lnk reloc.o > ld: error: discarding .shstrtab section is not allowed Well, yes, GNU ld is more intelligent and doesn't extend the discarding to the control sections in the first place. All of .symtab, .strtab, and .shstrtab are still there. > Add an explicit .shstrtab section to the linker script after the text > section in order to make LLVM LD happy. > > Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Assuming the change was tested to not confuse GNU ld Acked-by: Jan Beulich <jbeulich@xxxxxxxx> I wouldn't mind extending this to the other two control sections named above. In case the binaries need picking apart, them being present is surely helpful. Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |