[PATCH] D71520: [ELF] Rename .plt to .iplt and decrease EM_PPC64 alignment of .glink to 4

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 14 18:13:05 PST 2019


MaskRay created this revision.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
MaskRay added a parent revision: D71519: [ELF] Add IpltSection.
MaskRay added a child revision: D71509: [ELF][PPC64] Implement IPLT code sequence for non-preemptible IFUNC.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71520

Files:
  lld/ELF/SyntheticSections.cpp


Index: lld/ELF/SyntheticSections.cpp
===================================================================
--- lld/ELF/SyntheticSections.cpp
+++ lld/ELF/SyntheticSections.cpp
@@ -2450,6 +2450,7 @@
       headerSize(target->pltHeaderSize) {
   if (config->emachine == EM_PPC || config->emachine == EM_PPC64) {
     name = ".glink";
+    alignment = 4;
   }
 
   // The PLT needs to be writable on SPARC as the dynamic linker will
@@ -2504,9 +2505,10 @@
 }
 
 IpltSection::IpltSection()
-  : SyntheticSection(SHF_ALLOC | SHF_EXECINSTR, SHT_PROGBITS, 16, ".plt") {
+  : SyntheticSection(SHF_ALLOC | SHF_EXECINSTR, SHT_PROGBITS, 16, ".iplt") {
   if (config->emachine == EM_PPC || config->emachine == EM_PPC64) {
     name = ".glink";
+    alignment = 4;
   }
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71520.233951.patch
Type: text/x-patch
Size: 759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191215/abb44e04/attachment.bin>


More information about the llvm-commits mailing list