This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

objcopy --strip-symbol


Hello,
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.

Sebastian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]