https://sourceware.org/bugzilla/show_bug.cgi?id=33271
Bug ID: 33271
Summary: strip behaves differently on slim LLVM and GCC IR
objects
Product: binutils
Version: 2.46 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
strip recognizes and treats LLVM slim and GCC slim IR objects differently:
[hjl@gnu-cfl-3 lto-3]$ cat x.c
void
foo (void)
{
}
[hjl@gnu-cfl-3 lto-3]$ make STRIP=strip
clang -O2 -g -flto -c -o x-llvm.o x.c
strip --plugin /usr/lib64/LLVMgold.so -R .llvm.lto -o x-llvm-s.o x-llvm.o
gcc -O2 -g -flto -c -o x-gcc.o x.c
strip --plugin /usr/libexec/gcc/x86_64-redhat-linux/15/liblto_plugin.so -R
".gnu.lto_*" -o x-gcc-s.o x-gcc.o
nm x-llvm.o
00000000 T foo
nm x-llvm-s.o
00000000 T foo
nm x-gcc.o
00000000 T foo
nm x-gcc-s.o
nm: x-gcc-s.o: no symbols
[hjl@gnu-cfl-3 lto-3]$
strip doesn't change slim LLVM IR object, but makes slim GCC IR object
unusable.
--
You are receiving this mail because:
You are on the CC list for the bug.