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]

Option to manually add a DT_NEEDED entry


Hi, all

Solaris linker has an option (-N) to manually add a DT_NEEDED entry
into .dynamic section, e. g.:
ld ... -N misc/ctf -N drv/dtrace ...

>From solaris ld man page:
       -N string

           This option causes a DT_NEEDED entry to be added to the
.dynamic section of the object being built. The value of the DT_NEEDED
string is  the
           string  that  is  specified on the command line. This
option is position dependent, and the DT_NEEDED .dynamic entry is
relative to the other
           dynamic dependencies discovered on the link-edit line. This
option is useful for specifying dependencies  within  device  driver
relocatable
           objects when combined with the -dy and -r options.


Is there any way to do this with GNU ld in command line?


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