ld, ld.so and -symbolic

Roland McGrath roland@gnu.ai.mit.edu
Sun Jun 18 10:16:00 GMT 1995

In ELF there is a simple feature that if a DT_SYMBOLIC element appears in a
shared object's dynamic section, then when resolving references within that
shared object, the dynamic linker will give that object's own definitions
first precedence, followed by the executable and other loaded shared
objects (the normal order being the executable followed by all loaded
shared objects).  I believe GNU ld already has a -symbolic switch that
creates the DT_SYMBOLIC element when building a shared object (though I
could be mistaken).

More information about the Gas2 mailing list