bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24576] Feature request: error out when passed the same linker sc


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/24576] Feature request: error out when passed the same linker script with -T and as an object file
Date: Thu, 23 May 2019 01:09:33 +0000

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

--- Comment #9 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=82d7a6f4e3ccb3d714b5beb03eeb24f7356d4380

commit 82d7a6f4e3ccb3d714b5beb03eeb24f7356d4380
Author: Alan Modra <address@hidden>
Date:   Thu May 23 10:22:56 2019 +0930

    Re: Have the linker report an error if the same script is used twice

    git commit 6ec6968b1b2 results in
    ... error: linker script file '/usr/local/lib64/libgcc_s.so' appears
multiple times
    collect2: error: ld returned 1 exit status
    FAIL: bootstrap

    This patch changes things so that an error is given only when a -T
    script or the default script is invoked more than once.  I'm still a
    little nervous that we match script file names, not the entire path.

        PR 24576
        * ldfile.c (enum script_open_style): New.
        (struct script_name_list): New.
        (ldfile_open_command_file_1): Take a script_open_style param
        rather than booleans.  Adjust callers.  Only fail when -T or
        default -T script is invoked twice.
        (ldfile_try_open_bfd): Revert last change.

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