bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21086] static linking with --dynamic-list adds dynamic section a


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/21086] static linking with --dynamic-list adds dynamic section and interpreter
Date: Fri, 21 Apr 2017 19:01:54 +0000

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

--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:

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

commit 3c5fce9bc29b216af7d10f8d6e4d8c3f11a48359
Author: H.J. Lu <address@hidden>
Date:   Fri Apr 21 12:00:55 2017 -0700

    Require --no-dynamic-linker with -static -E/--dynamic-list

    When -static -E/--dynamic-list are passed to linker, linker may create
    executable with dynamic sections which aren't supported by run-time.
    We require --no-dynamic-linker together with -static -E/--dynamic-list
    before adding dynamic symbol table to static executable.

    bfd/

        PR ld/19617
        PR ld/21086
        * elflink.c (elf_link_add_object_symbols): Require
        --no-dynamic-linker with -E/--dynamic-list when creating
        dynamic sections.

    ld/

        PR ld/19617
        PR ld/21086
        * testsuite/ld-elf/pr19617a.d: Pass --no-dynamic-linker to ld.
        * testsuite/ld-elf/pr19617b.d: Likewise.
        * testsuite/ld-elf/pr19617c.d: Likewise.
        *testsuite/ld-i386/pr19636-4d.d: Likewise.
        * testsuite/ld-elf/readelf.exp: Pass --no-dynamic-linker to ld
        with --export-dynamic.
        * testsuite/ld-elf/shared.exp: Pass --no-dynamic-linker to ld
        with -E.

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