[ELF] got/got.plt sections are handled as typeGOT
authorShankar Easwaran <shankare@codeaurora.org>
Sun, 1 Feb 2015 03:21:55 +0000 (03:21 +0000)
committerShankar Easwaran <shankare@codeaurora.org>
Sun, 1 Feb 2015 03:21:55 +0000 (03:21 +0000)
The .got and .got.plt sections are already handled as typeGOT. There is no need
to handle these atoms whose contentType is typeData.

llvm-svn: 227706

lld/lib/ReaderWriter/ELF/DefaultLayout.h

index ee751fb..9ebcf24 100644 (file)
@@ -363,8 +363,6 @@ Layout::SectionOrder DefaultLayout<ELFT>::getSectionOrder(
         .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: