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 /gdb | |
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 'gdb')
0 files changed, 0 insertions, 0 deletions