vendredi 19 août 2016

How to Strip A Symbol in Relocation

i try to remove a symbol from object file as below:

gcc -c test.c 

strip --strip-symbol=test_sym test.o test.o

test_sym is a function implemented in test.c.

strip returns following message :

strip: not stripping symbol 'test_sym' because it is named in a relocation.

That error arise since the symbol is implemented in the same file. However is there a way to remove that symbol ?

Aucun commentaire:

Enregistrer un commentaire