* elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
relocations against the same symbol in .rel{,a}.dyn section.
This commit is contained in:
parent
4abb499edb
commit
290394d607
@ -1,3 +1,8 @@
|
||||
2001-10-10 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
|
||||
relocations against the same symbol in .rel{,a}.dyn section.
|
||||
|
||||
2001-10-10 Kazu Hirata <kazu@hxi.com>
|
||||
|
||||
* aout-encap.c: Fix comment typos.
|
||||
|
@ -4378,8 +4378,8 @@ elf_link_sort_cmp2 (A, B)
|
||||
return -1;
|
||||
if (a->offset > b->offset)
|
||||
return 1;
|
||||
copya = a->type == reloc_class_copy;
|
||||
copyb = b->type == reloc_class_copy;
|
||||
copya = (a->type == reloc_class_copy) * 2 + (a->type == reloc_class_plt);
|
||||
copyb = (b->type == reloc_class_copy) * 2 + (b->type == reloc_class_plt);
|
||||
if (copya < copyb)
|
||||
return -1;
|
||||
if (copya > copyb)
|
||||
|
Loading…
x
Reference in New Issue
Block a user