This is the mail archive of the binutils@sources.redhat.com 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]

DT_FILTER problem


When using the -F/--filter option of ld the appropriate DT_FILTER
entry is created, but there is also a DT_NEEDED entry for the same
object.  This is wrong.  The following is the output of readelf on one
of my test programs:


 0x00000001 (NEEDED)                     Shared library: [/work/glibc-builds/200
00720/elf/filtmod2.so]
 0x7fffffff (FILTER)                     Filter library: [/work/glibc-builds/200
00720/elf/filtmod2.so]


Since the filter object itself is never used (only at link time by ld)
it makes no sense to add a DT_NEEDED entry.  It might even cause
problems if the ld.so adds the object twice (because of the two
references).

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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