[ELF][MIPS] Setup STO_MIPS_PIC flag for PIC symbols when generate a relocatable object
authorSimon Atanasyan <simon@atanasyan.com>
Thu, 29 Sep 2016 12:58:36 +0000 (12:58 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Thu, 29 Sep 2016 12:58:36 +0000 (12:58 +0000)
commitf967f090b830d1ae2547207e3311b877a2e0466a
tree829da39c071641930795bcfa254390cb99092ab1
parentfa9fbfe2483e81a93dff1baf0979f7d1e9888164
[ELF][MIPS] Setup STO_MIPS_PIC flag for PIC symbols when generate a relocatable object

In case of linking PIC and non-PIC code together and generation of a
relocatable object, all PIC symbols should have STO_MIPS_PIC flag in the
symbol table of the ouput file.

llvm-svn: 282714
lld/ELF/OutputSections.cpp
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h
lld/ELF/Target.cpp
lld/test/ELF/mips-sto-pic-flag.s [new file with mode: 0644]