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>
Thu, 4 Dec 2014 07:07:58 +0000 (17:37 +1030)
commit53df40a43c968f4d97754226d62775d1fe665459
tree1f22712409b2b44439fad7bba496e430637111a2
parent621661e3faf809d4f28bb84e94e30c1c8a8cc933
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