Date: Tue, 16 Dec 2014 21:32:14 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 196038] New: elftoolchain strip(1) -N strips everything from .o file Message-ID: <bug-196038-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196038 Bug ID: 196038 Summary: elftoolchain strip(1) -N strips everything from .o file Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: emaste@freebsd.org Binutils "strip -N <symbol> foo.o" strips only <symbol> from the output. Elftoolchain strip strips everything. % cat foo.c int add1(int a) { return a + 1; } int add2(int a) { return a + 2; } % cc -g -o foo.o -c foo.c % strip -N add1 -o foo.bu.o foo.o % file foo.bu.o foo.bu.o: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped % nm foo.bu.o 0000000000000020 T add2 % elftcstrip -N add1 -o foo.elftc.o foo.o % file foo.elftc.o foo.bu.o: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), stripped % nm foo.elftc.o nm: foo.elftc.o: no symbols -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196038-8>