diff options
author | Alan Modra <amodra@gmail.com> | 2015-09-16 18:07:03 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-03-06 18:25:01 +1030 |
commit | fb375cb026777c18559764e5fe11bd576d21e5d4 (patch) | |
tree | b46d3d2957fc96dbe76e275a86a051fd7630919f /opcodes/openrisc-dis.c | |
parent | 4b26e4deb00cb25c7b83f0feccd1e9b23b41db20 (diff) | |
download | gdb-fb375cb026777c18559764e5fe11bd576d21e5d4.zip gdb-fb375cb026777c18559764e5fe11bd576d21e5d4.tar.gz gdb-fb375cb026777c18559764e5fe11bd576d21e5d4.tar.bz2 |
Fix slowdown in ld -r for most common case of out-of-order relocs
I chose insertion sort since relocs are mostly sorted, but there is a
common case we can handle better; A run of relocs put out of order
due to not linking input files in order.
PR 18867
* elflink.c (elf_link_adjust_relocs): Modify insertion sort to
insert a run. Return status in case of malloc failure.
Adjust callers.
Diffstat (limited to 'opcodes/openrisc-dis.c')
0 files changed, 0 insertions, 0 deletions