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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to