Option to manually add a DT_NEEDED entry
Игорь Пашев
pashev.igor@gmail.com
Sun Jun 30 13:03:00 GMT 2013
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?
More information about the Binutils
mailing list