Does -gc-section (garbage collection) works only with static linking ?
Valery Pykhtin
pykhtin@prosoft.ural.ru
Wed Sep 8 08:32:00 GMT 2004
Hi Nick,
> Your code could call a dynamic library function and pass to that
> function a pointer to another function inside your application. This
> second function does not have to be exported, since it is your code that
> computes its address, but nevertheless the function can be accessed from
> outside of your code. Think of the atexit() function supported by the C
> library as an example of this.
Now I understand, thank you :)
Best regards,
Valery
More information about the Binutils
mailing list