From: Shankar Easwaran Date: Sun, 1 Feb 2015 03:21:55 +0000 (+0000) Subject: [ELF] got/got.plt sections are handled as typeGOT X-Git-Tag: llvmorg-3.7.0-rc1~13500 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a13acfa8b6f4a2cef8706b7506f9c50f1448ba4;p=platform%2Fupstream%2Fllvm.git [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. llvm-svn: 227706 --- diff --git a/lld/lib/ReaderWriter/ELF/DefaultLayout.h b/lld/lib/ReaderWriter/ELF/DefaultLayout.h index ee751fb..9ebcf24 100644 --- a/lld/lib/ReaderWriter/ELF/DefaultLayout.h +++ b/lld/lib/ReaderWriter/ELF/DefaultLayout.h @@ -363,8 +363,6 @@ Layout::SectionOrder DefaultLayout::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: