public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18206] New: -dynamic-linker option seems to be badly named, broken and undocumented
@ 2004-10-28 19:42 ratmice at yahoo dot com
  2004-10-29 13:14 ` [Bug target/18206] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: ratmice at yahoo dot com @ 2004-10-28 19:42 UTC (permalink / raw)
  To: gcc-bugs

only tested this under 3.3.4/4.0 but it seems to go back a few years.

it will pass -dynamic-linker to cc1 also.

and seems to have been noticed before
http://gcc.gnu.org/ml/gcc/2000-10/msg00437.html

from what i can tell it suppresses the passing of -dynamic-linker to ld
(ignoring that it gets sent to cc1.) To use an alternative dynamic-linker you 
can do something like


cd /tmp
cp /lib/ld-linux.so.2 . 
echo 'main(){}' >foo.c
gcc -v -dynamic-linker -Wl,-dynamic-linker /tmp/ld-linux.so.2 foo.c
readelf -l a.out | grep -A1 INTERP

not sure whether this particular usage of it should be limited to a custom spec 
with -specs=... but i expected it to accept an option that overrides the default
-dynamic-linker sent to ld

-- 
           Summary: -dynamic-linker option seems to be badly named, broken
                    and undocumented
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ratmice at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18206


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

* [Bug target/18206] -dynamic-linker option seems to be badly named, broken and undocumented
  2004-10-28 19:42 [Bug target/18206] New: -dynamic-linker option seems to be badly named, broken and undocumented ratmice at yahoo dot com
@ 2004-10-29 13:14 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-29 13:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-29 13:14 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |2.95.3 3.0.4 3.2.3 3.3.3
                   |                            |3.4.0 4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-29 13:14:13
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18206


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

end of thread, other threads:[~2004-10-29 13:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-28 19:42 [Bug target/18206] New: -dynamic-linker option seems to be badly named, broken and undocumented ratmice at yahoo dot com
2004-10-29 13:14 ` [Bug target/18206] " pinskia at gcc dot gnu dot org

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).