bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/18834] Gold does not accept linker-script input only with -T


From: ccoutant at gmail dot com
Subject: [Bug gold/18834] Gold does not accept linker-script input only with -T
Date: Mon, 17 Aug 2015 18:21:38 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18834

Cary Coutant <ccoutant at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #1 from Cary Coutant <ccoutant at gmail dot com> ---
For the broader context, see the discussion at PR ld/18836.

As far as this specific complaint goes, the behavior is as expected. If the
script does not specify any input files, gold will complain about no input
files. If you add an INPUT(foo.o) command to the script (and link it as an
input file, not with -T), it will correctly read foo.o as an input file.

I think the complaint here is that Gnu ld, if it sees an input section
specification that names a file without a wildcard, will process that file as
if it had been named on the command line. That seems like a misfeature to me --
all other uses of a filename in a SECTIONS clause are as a filter. Without a
compelling use case, I'd prefer to keep gold's behavior as is. (See the
aforementioned discussion at PR 18836 for why even the Gnu ld behavior is
probably not what you're looking for.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]