This is the mail archive of the
mailing list for the binutils project.
- From: "EXTERNAL Setzer Sebastian (ESE; CM-IS/ESW4)" <external dot Sebastian dot Setzer at de dot bosch dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Tue, 7 Jul 2009 11:23:41 +0200
- Subject: objcopy --strip-symbol
Lets assume I've got an object file with function foo, which calls bar (which is not part of the object file) and some other functions which don't call bar.
After "--strip-symbol foo", bar is not needed anymore.
Is there a way to remove referenced symbols (like bar), which are not needed anymore because the referencing function isn't there anymore?
I can use "--strip-symbol bar", but that's dangerous - if there is still a function calling bar, i get a runtime error, but no warning at compile time.