ld -z combreloc reloc sorting

PLT relocs don't appear in .rela.dyn, at least not when using
normal linker scripts.  However, if they do, then they ought to be
placed last rather than in the middle of other relocs.

	* elf-bfd.h (elf_reloc_type_class): Put reloc_class_plt last.
This commit is contained in:
Alan Modra 2016-05-12 23:59:26 +09:30
parent 001c250f57
commit 1997c9943a
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2016-05-12 Alan Modra <amodra@gmail.com>
* elf-bfd.h (elf_reloc_type_class): Put reloc_class_plt last.
2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
* elfxx-mips.c (print_mips_ases): Add DSPR3.

View File

@ -703,9 +703,9 @@ struct elf_size_info {
enum elf_reloc_type_class {
reloc_class_normal,
reloc_class_relative,
reloc_class_plt,
reloc_class_copy,
reloc_class_ifunc
reloc_class_ifunc,
reloc_class_plt
};
struct elf_reloc_cookie