public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* DT_FILTER problem
@ 2000-07-21  0:07 Ulrich Drepper
  2000-07-21  0:15 ` DT_FILTER problem [IGNORE] Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Drepper @ 2000-07-21  0:07 UTC (permalink / raw)
  To: binutils

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   `------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DT_FILTER problem [IGNORE]
  2000-07-21  0:07 DT_FILTER problem Ulrich Drepper
@ 2000-07-21  0:15 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2000-07-21  0:15 UTC (permalink / raw)
  To: binutils

Sorry for the noice, it was a problem in my makefile.  Ld is OK.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-07-21  0:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-21  0:07 DT_FILTER problem Ulrich Drepper
2000-07-21  0:15 ` DT_FILTER problem [IGNORE] Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).