[lld] r227706 - [ELF] got/got.plt sections are handled as typeGOT
Shankar Easwaran
shankare at codeaurora.org
Sat Jan 31 19:21:55 PST 2015
Author: shankare
Date: Sat Jan 31 21:21:55 2015
New Revision: 227706
URL: http://llvm.org/viewvc/llvm-project?rev=227706&view=rev
Log:
[ELF] got/got.plt sections are handled as typeGOT
The .got and .got.plt sections are already handled as typeGOT. There is no need
to handle these atoms whose contentType is typeData.
Modified:
lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h
Modified: lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h?rev=227706&r1=227705&r2=227706&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h Sat Jan 31 21:21:55 2015
@@ -363,8 +363,6 @@ Layout::SectionOrder DefaultLayout<ELFT>
.StartsWith(".init_array", ORDER_INIT_ARRAY)
.StartsWith(".fini_array", ORDER_FINI_ARRAY)
.StartsWith(".dynamic", ORDER_DYNAMIC)
- .StartsWith(".got.plt", ORDER_GOT_PLT)
- .StartsWith(".got", ORDER_GOT)
.Default(ORDER_DATA);
case DefinedAtom::typeZeroFill:
More information about the llvm-commits
mailing list