diff options
author | Alan Modra <amodra@gmail.com> | 2015-08-26 17:32:08 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-08-26 23:34:10 +0930 |
commit | 0e28778672160ee57d12fcc4f0e631122088fe69 (patch) | |
tree | acc29a02c3b5e3a00d0aa0ad62d3bd74ed05ce67 /bfd/ChangeLog | |
parent | c97c330ba8e80776c546e5f562916bf077e358b3 (diff) | |
download | gdb-0e28778672160ee57d12fcc4f0e631122088fe69.zip gdb-0e28778672160ee57d12fcc4f0e631122088fe69.tar.gz gdb-0e28778672160ee57d12fcc4f0e631122088fe69.tar.bz2 |
Use stable sort for ld -r relocs
A number of targets emit multiple relocs at a given r_offset, and
depend on those relocs staying in their original order.
PR 18867
* elflink.c (cmp_ext32l_r_offset, cmp_ext32b_r_offset): Delete.
(cmp_ext64l_r_offset, cmp_ext64b_r_offset): Delete.
(ext32l_r_offset, ext32b_r_offset, ext64l_r_offset, ext64b_r_offset):
New functions.
(elf_link_adjust_relocs): Use an insertion sort to sort relocs.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 52fe2cc..00035c4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +2015-08-26 Alan Modra <amodra@gmail.com> + + PR 18867 + * elflink.c (cmp_ext32l_r_offset, cmp_ext32b_r_offset): Delete. + (cmp_ext64l_r_offset, cmp_ext64b_r_offset): Delete. + (ext32l_r_offset, ext32b_r_offset, ext64l_r_offset, ext64b_r_offset): + New functions. + (elf_link_adjust_relocs): Use an insertion sort to sort relocs. + 2015-08-26 Matthew Fortune <matthew.fortune@imgtec.com> PR ld/18401 |