bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24857] [2.33 Regression] ld: error adding symbols: bad value


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/24857] [2.33 Regression] ld: error adding symbols: bad value
Date: Sun, 28 Jul 2019 09:42:54 +0000

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

--- Comment #2 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=4538d1c7c46e67b472d8d5ebf163f3dfd9c67714

commit 4538d1c7c46e67b472d8d5ebf163f3dfd9c67714
Author: Alan Modra <address@hidden>
Date:   Sun Jul 28 14:56:37 2019 +0930

    PR24857, ld: error adding symbols: bad value

    This fixes two cases where elf_link_add_object_symbols returns an
    error, setting the catch-all bfd_error_bad_value without explaining
    the error.  The second one is an internal error that can only be
    caused by a target elf_add_symbol_hook, so make that one abort.  The
    first one is my PR24339 fix.  PR24339 is another of those fuzzing bugs
    and the fix I made catches the problem when loading symbols, rather
    than when symbols are used in relocs.  While ld is correct to reject
    the object file as not complying with the ELF standard, let's be a
    little more forgiving for dynamic objects.

        PR 24857
        PR 24339
        * elflink.c (elf_link_add_object_symbols): Report an informative
        error on finding local symbols with index equal or greater than
        symbol table sh_info.  Correct comment.  Allow such symbols in
        dynamic objects.  Abort on NULL section for symbol.

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