PR 21266, unstable qsort in bfd/elf64-ppc.c

PR 21266
	* elf64-ppc.c (compare_symbols): Stabilize sort.
This commit is contained in:
Alan Modra 2017-03-20 08:25:50 +10:30
parent 84e8538ee3
commit aaed6f5be3
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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. */