bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22460] ld -r no longer works on older .o files


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/22460] ld -r no longer works on older .o files
Date: Mon, 20 Nov 2017 13:42:31 +0000

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

--- Comment #1 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=28e07a0510ca896311014cddf125aedfd7a8cd52

commit 28e07a0510ca896311014cddf125aedfd7a8cd52
Author: Alan Modra <address@hidden>
Date:   Mon Nov 20 21:35:09 2017 +1030

    PR22451, strip no longer works on older object files

    Setting SHF_GROUP unconditionally on rel/rela sections associated with
    SHF_GROUP sections fails badly with objcopy/strip and ld -r if the
    input file SHT_GROUP section didn't specify the rel/rela sections.
    This patch rearranges where SHF_GROUP is set for rel/rela sections.

        PR 22451
        PR 22460
        * elf.c (_bfd_elf_init_reloc_shdr): Delete "sec_hdr" parameter
        and leave rel_hdr->sh_flags zero.  Update calls.
        (bfd_elf_set_group_contents): Check input rel/rela SHF_GROUP
        flag when !gas before adding rel/rela section to group.  Set
        output rel/rela SHF_GROUP flags.

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