[ELF] Rename .got.dyn to .got

Gnu doesnot creates only a .got section.

llvm-svn: 232252
This commit is contained in:
Shankar Easwaran 2015-03-14 05:26:58 +00:00
parent c1e146e024
commit 48578e7124
3 changed files with 3 additions and 3 deletions

View File

@ -485,7 +485,7 @@ public:
const GOTAtom *getSharedGOT(const SharedLibraryAtom *sla) {
auto got = _gotMap.find(sla);
if (got == _gotMap.end()) {
auto g = new (_file._alloc) AArch64GOTAtom(_file, ".got.dyn");
auto g = new (_file._alloc) AArch64GOTAtom(_file, ".got");
g->addReferenceELF_AArch64(R_AARCH64_GLOB_DAT, 0, sla, 0);
#ifndef NDEBUG
g->_name = "__got_";

View File

@ -470,7 +470,7 @@ public:
const GOTAtom *getSharedGOT(const Atom *a) {
auto got = _gotMap.find(a);
if (got == _gotMap.end()) {
auto g = new (_file._alloc) X86_64GOTAtom(_file, ".got.dyn");
auto g = new (_file._alloc) X86_64GOTAtom(_file, ".got");
g->addReferenceELF_x86_64(R_X86_64_GLOB_DAT, 0, a, 0);
#ifndef NDEBUG
g->_name = "__got_";

View File

@ -60,7 +60,7 @@ CHECK: addend: -4
CHECK: type: got
CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
CHECK: section-choice: custom-required
CHECK: section-name: .got.dyn
CHECK: section-name: .got
CHECK: permissions: rw-
CHECK: references:
CHECK: - kind: R_X86_64_GLOB_DAT