[lld] r332572 - [ELF] PowerOpen ABI -> Power Architecture 64-bit v2 ABI. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed May 16 22:34:29 PDT 2018
Author: maskray
Date: Wed May 16 22:34:29 2018
New Revision: 332572
URL: http://llvm.org/viewvc/llvm-project?rev=332572&view=rev
Log:
[ELF] PowerOpen ABI -> Power Architecture 64-bit v2 ABI. NFC
Reviewers: sfertile, espindola
Subscribers: emaste, arichardson, llvm-commits
Differential Revision: https://reviews.llvm.org/D46904
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=332572&r1=332571&r2=332572&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed May 16 22:34:29 2018
@@ -207,11 +207,12 @@ void elf::addReservedSymbols() {
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);
More information about the llvm-commits
mailing list