[PATCH] D19190: [ELF] - Implemented PROVIDE linker script command.

Rafael Ávila de Espíndola via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 06:45:22 PDT 2016


rafael added inline comments.

================
Comment at: test/ELF/linkerscript-provide.s:49
@@ +48,3 @@
+# CHECK-NEXT:      Other: 0
+# CHECK-NEXT:      Section: Absolute
+# CHECK-NEXT:    }
----------------
Are these symbols produced as absolute by bfd and gold?

It would be really nice if they could be produced with an output section and offset.  The advantaged is that offsets can be computed earlier. With that some day we could cleanup relocation processing further by representing relocation target as OutputSection + Offset. That way we would not need enums just to select getVA, getGotVA, getPltVA, etc.



http://reviews.llvm.org/D19190





More information about the llvm-commits mailing list