]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Sort relocs output by ld -r
authorAlan Modra <amodra@gmail.com>
Wed, 3 Dec 2014 11:30:18 +0000 (22:00 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 11 Feb 2015 12:36:35 +0000 (23:06 +1030)
commitccfa71befe7824964304d73e35f4e68a3f06306c
treeefee721ccdb2897916c4dfd65644bcff62150953
parent9d5f9f2c79c1cb84100fa421d75b328296c241be
Sort relocs output by ld -r

bfd/
PR 17666
* elflink.c: Include bfd_stdint.h.
(cmp_ext32l_r_offset, cmp_ext32b_r_offset,
cmp_ext64l_r_offset, cmp_ext64b_r_offset): New functions.
(elf_link_adjust_relocs): Sort relocs.  Free reloc hashes after
sorting invalidates.
ld/testsuite/
* ld-powerpc/vxworks-relax.rd: Update for reloc sorting.
* ld-powerpc/vxworks-relax-2.rd: Likewise.
* ld-sh/sh64/reldl32.rd: Likewise.
* ld-sh/sh64/reldl64.rd: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/vxworks-relax-2.rd
ld/testsuite/ld-powerpc/vxworks-relax.rd
ld/testsuite/ld-sh/sh64/reldl32.rd
ld/testsuite/ld-sh/sh64/reldl64.rd