projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84e8538
)
PR 21266, unstable qsort in bfd/elf64-ppc.c
author
Alan Modra
<amodra@gmail.com>
Sun, 19 Mar 2017 21:55:50 +0000
(08:25 +1030)
committer
Alan Modra
<amodra@gmail.com>
Sun, 19 Mar 2017 21:57:16 +0000
(08:27 +1030)
PR 21266
* elf64-ppc.c (compare_symbols): Stabilize sort.
bfd/ChangeLog
patch
|
blob
|
history
bfd/elf64-ppc.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 5dea352b44df2aadb587cf8d0b73aad967c36380..50e76c2dea7fa8290a1d110fad5fc4cca0f827b3 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,8
@@
+2017-03-20 Alan Modra <amodra@gmail.com>
+
+ PR 21266
+ * elf64-ppc.c (compare_symbols): Stabilize sort.
+
2017-03-18 Alan Modra <amodra@gmail.com>
* elf64-ppc.c (struct ppc_link_hash_table): Add
diff --git
a/bfd/elf64-ppc.c
b/bfd/elf64-ppc.c
index 1193c1f5d798406f308c1733854d00e988ae0895..ae3903289a90b6e00e9b642b85101bc90c35f3d1 100644
(file)
--- a/
bfd/elf64-ppc.c
+++ b/
bfd/elf64-ppc.c
@@
-3188,7
+3188,7
@@
compare_symbols (const void *ap, const void *bp)
if ((a->flags & BSF_DYNAMIC) == 0 && (b->flags & BSF_DYNAMIC) != 0)
return 1;
- return
0
;
+ return
a > b
;
}
/* Search SYMS for a symbol of the given VALUE. */