[Top][All Lists]

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

[Bug ld/17666] ld -r may create reloc sections with unordered relocs

From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/17666] ld -r may create reloc sections with unordered relocs
Date: Wed, 11 Feb 2015 12:48:28 +0000


--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The binutils-2_25-branch branch has been updated by Alan Modra


commit 90e052f660418098b65f2b2245712ead75288d27
Author: Alan Modra <address@hidden>
Date:   Tue Dec 9 14:32:22 2014 +1030

    Don't sort ld -r relocs for mips

    HI16/LO16 are deliberately put adjacent, which might mean relocs are
    then not sorted by r_offset.  See tc-mips.c:mips_frob_file.  Don't undo
    the HI16/LO16 sorting.

        PR 17666
        * elf-bfd.h (struct elf_backend_data): Add sort_relocs_p.
        * elfxx-target.h (elf_backend_sort_relocs_p): Define.
        (elfNN_bed): Init new field.
        * elflink.c (elf_link_adjust_relocs): Conditionally sort.
        (bfd_elf_final_link): Control sorting of relocs.
        * elfxx-mips.c (_bfd_mips_elf_sort_relocs_p): New function.
        * elfxx-mips.h (_bfd_mips_elf_sort_relocs_p): Declare.
        * elf32-mips.c (elf_backend_sort_relocs_p): Define.
        * elf64-mips.c (elf_backend_sort_relocs_p): Define.

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]