bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/22406] internal error in gold with unterminated library group


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/22406] internal error in gold with unterminated library group
Date: Fri, 01 Dec 2017 21:01:12 +0000

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

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

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

commit bd2e3511f74940beec6a39914480ed6ff88c0a71
Author: Benjamin Peterson <address@hidden>
Date:   Fri Dec 1 12:59:36 2017 -0800

    Fix internal error from command line with unbalanced --start-lib/--end-lib.

    The problem is that while the command line isn't trivially empty,
    it contains no input files. As gold tries to configure the number
    of threads to use based on the number of input files, this causes
    the assertion failure above. Fix this problem by making the logic
    in gold.cc more robust and also adding a better error message
    about --start-lib to options.cc.

    gold/
        PR gold/22406
        * gold.cc (queue_initial_tasks) Check for number of real input files.
        * options.cc (Command_line::process) Check for unterminated --start-lib
        options.
        * testsuite/Makefile.am: Add new test script.
        * testsuite/Makefile.in: Regenerate.
        * testsuite/check_empty_command_lines.sh: New test script.

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