[ELF][MIPS] Add MipsGotSection to handle MIPS GOT
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 16 Nov 2016 21:01:02 +0000 (21:01 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 16 Nov 2016 21:01:02 +0000 (21:01 +0000)
commit725dc14bb21da8a01709a6b3370a658d071689dc
tree0579393b4c3d3ee117edfdfb6dbbb8ebb00aae27
parent397f9d9d05fc9451b274e3126891236cfd72f639
[ELF][MIPS] Add MipsGotSection to handle MIPS GOT

MIPS GOT handling is very different from other targets so it is better
to keep the code in the separatre section class MipsGotSection. This
patch introduces the new section and moves all MIPS specific code from
GotSection to the new class. I did not rename fields and methods in the
MipsGotSection class to reduce the diff and plan to do that by the
separate commit.

Differential revision: https://reviews.llvm.org/D26733

llvm-svn: 287150
lld/ELF/InputSection.cpp
lld/ELF/Relocations.cpp
lld/ELF/Relocations.h
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h
lld/ELF/Target.cpp
lld/ELF/Writer.cpp