https://bugs.llvm.org/show_bug.cgi?id=42278
Bug ID: 42278
Summary: --strip-all-gnu creating invalid ELF files for files
with more than SHN_LORESERVE sections
Product: tools
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-objcopy/strip
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected],
[email protected],
[email protected],
[email protected], [email protected]
I was playing with many-sections.o in test/tools/llvm-objcopy/ELF/Inputs and
when using --strip-all-gnu the output file is incorrect.
$ llvm-objcopy --strip-all many-sections.o many-sections.llvm.o
$ llvm-readelf many-sections.llvm.o -S
<works>
$ llvm-objcopy --strip-all-gnu many-sections.o many-sections.gnu.o
$ llvm-readelf many-sections.gnu.o -S
error: 'many-sections.gnu.o': invalid sh_type
--strip-all-gnu works (by which I mean creates a file readable by llvm-readelf)
on other object files. The name of the test object is presumably the giveaway
here. I'm guessing it has something to do with having more sections than fit in
e_shnum? Seems strange to me, but I haven't looked too deeply into this yet.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs