bug-binutils
[Top][All Lists]
Advanced

[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: Tue, 09 Dec 2014 23:29:06 +0000

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

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  28dbcedc7b1282b93c3f25c4e42ae71b44e8e2a8 (commit)
      from  4e3272393ff1ab2c07d9fa209d2ae82954f7954c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=28dbcedc7b1282b93c3f25c4e42ae71b44e8e2a8

commit 28dbcedc7b1282b93c3f25c4e42ae71b44e8e2a8
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.

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog      |   13 +++++++++++++
 bfd/elf-bfd.h      |    5 +++++
 bfd/elf32-mips.c   |    2 ++
 bfd/elf64-mips.c   |    1 +
 bfd/elflink.c      |   51 +++++++++++++++++++++++++++++----------------------
 bfd/elfxx-mips.c   |   12 ++++++++++++
 bfd/elfxx-mips.h   |    2 ++
 bfd/elfxx-target.h |    4 ++++
 8 files changed, 68 insertions(+), 22 deletions(-)

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