This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Option to manually add a DT_NEEDED entry
- From: ÐÐÐÑÑ ÐÐÑÐÐ <pashev dot igor at gmail dot com>
- To: binutils at sourceware dot org
- Date: Sun, 30 Jun 2013 17:02:53 +0400
- Subject: 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?