[PATCH] D46904: [ELF] PowerOpen ABI -> Power Architecture 64-bit v2 ABI. NFC
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 15 13:59:55 PDT 2018
MaskRay created this revision.
MaskRay added a reviewer: sfertile.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D46904
Files:
ELF/Writer.cpp
Index: ELF/Writer.cpp
===================================================================
--- ELF/Writer.cpp
+++ ELF/Writer.cpp
@@ -207,11 +207,12 @@
Symtab->addAbsolute("__gnu_local_gp", STV_HIDDEN, STB_GLOBAL);
}
- // The 64-bit PowerOpen ABI defines a TableOfContents (TOC) which combines the
- // typical ELF GOT with the small data sections. It commonly includes .got
- // .toc .sdata .sbss. The .TOC. symbol replaces both _GLOBAL_OFFSET_TABLE_ and
- // _SDA_BASE_ from the 32-bit ABI. It is used to represent the TOC base which
- // is offset by 0x8000 bytes from the start of the .got section.
+ // The Power Architecture 64-bit v2 ABI defines a TableOfContents (TOC) which
+ // combines the typical ELF GOT with the small data sections. It commonly
+ // includes .got .toc .sdata .sbss. The .TOC. symbol replaces both
+ // _GLOBAL_OFFSET_TABLE_ and _SDA_BASE_ from the 32-bit ABI. It is used to
+ // represent the TOC base which is offset by 0x8000 bytes from the start of
+ // the .got section.
ElfSym::GlobalOffsetTable = addOptionalRegular(
(Config->EMachine == EM_PPC64) ? ".TOC." : "_GLOBAL_OFFSET_TABLE_",
Out::ElfHeader, Target->GotBaseSymOff);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46904.146914.patch
Type: text/x-patch
Size: 1204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180515/5c60c856/attachment.bin>
More information about the llvm-commits
mailing list