bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/19803] gc-sections breaks PE DLL variable export


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/19803] gc-sections breaks PE DLL variable export
Date: Tue, 22 Mar 2016 12:26:29 +0000

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

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

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

commit 4153b6dbb0f38a16fd5b583761aa811212fbb9a5
Author: Nick Clifton <address@hidden>
Date:   Tue Mar 22 12:25:08 2016 +0000

    Improve COFF/PE linker garbage collection by preventing the removal of
sections containing exported symbols.

        PR ld/19803
        * ldlang.c (lang_add_gc_name): New function.  Adds the provided
        symbol name to the list of gc symbols.
        (lang_process): Call lang_add_gc_name with entry_symbol_default if
        entry_symbol.name is NULL.  Use lang_add_gc_name to add the init
        and fini function names.
        * pe-dll.c (process_def_file_and_drectve): Add exported names to
        the gc symbol list.
        * testsuite/ld-pe/pr19803.s: Do not export _testval symbol.
        * testsuite/ld-pe/pr19803.d: Tweak expected output.

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