aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-10-10 19:32:02 +0000
committerJakub Jelinek <jakub@redhat.com>2001-10-10 19:32:02 +0000
commit290394d6070206df9ecda222a16355d859c7e840 (patch)
treef69f6e583a1a0e5965f42ea254eeb1beeb8e3d39 /bfd/elflink.h
parent4abb499edbac34276f74c5244da30faefcc81843 (diff)
downloadgdb-290394d6070206df9ecda222a16355d859c7e840.zip
gdb-290394d6070206df9ecda222a16355d859c7e840.tar.gz
gdb-290394d6070206df9ecda222a16355d859c7e840.tar.bz2
* elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
relocations against the same symbol in .rel{,a}.dyn section.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 19fcea7..8a3a4ff 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -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)