Skip to content

Commit 121078b

Browse files
committedMay 17, 2018
[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 llvm-svn: 332572
1 parent 8b3e138 commit 121078b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
 

‎lld/ELF/Writer.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,12 @@ void elf::addReservedSymbols() {
207207
Symtab->addAbsolute("__gnu_local_gp", STV_HIDDEN, STB_GLOBAL);
208208
}
209209

210-
// The 64-bit PowerOpen ABI defines a TableOfContents (TOC) which combines the
211-
// typical ELF GOT with the small data sections. It commonly includes .got
212-
// .toc .sdata .sbss. The .TOC. symbol replaces both _GLOBAL_OFFSET_TABLE_ and
213-
// _SDA_BASE_ from the 32-bit ABI. It is used to represent the TOC base which
214-
// is offset by 0x8000 bytes from the start of the .got section.
210+
// The Power Architecture 64-bit v2 ABI defines a TableOfContents (TOC) which
211+
// combines the typical ELF GOT with the small data sections. It commonly
212+
// includes .got .toc .sdata .sbss. The .TOC. symbol replaces both
213+
// _GLOBAL_OFFSET_TABLE_ and _SDA_BASE_ from the 32-bit ABI. It is used to
214+
// represent the TOC base which is offset by 0x8000 bytes from the start of
215+
// the .got section.
215216
ElfSym::GlobalOffsetTable = addOptionalRegular(
216217
(Config->EMachine == EM_PPC64) ? ".TOC." : "_GLOBAL_OFFSET_TABLE_",
217218
Out::ElfHeader, Target->GotBaseSymOff);

0 commit comments

Comments
 (0)
Please sign in to comment.