ld -z combreloc reloc sorting
authorAlan Modra <amodra@gmail.com>
Thu, 12 May 2016 14:29:26 +0000 (23:59 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 12 May 2016 14:47:19 +0000 (00:17 +0930)
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.

bfd/ChangeLog
bfd/elf-bfd.h

index 333b882a58fd17eebff29fe09735d7832da8a900..40f1827d46d05f960ecfbf41d1e3d3889dd171ca 100644 (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.
index 863fc39f2f7f7c3933559361fb3772865d626e5b..fc552ad4fa73c82cf4bc66ed1cad47fb334745cd 100644 (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
This page took 0.027888 seconds and 4 git commands to generate.