[ELF][MIPS] Add STO_MIPS_PLT flag to the symbols require pointer equality
authorSimon Atanasyan <simon@atanasyan.com>
Thu, 25 Feb 2016 16:19:15 +0000 (16:19 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Thu, 25 Feb 2016 16:19:15 +0000 (16:19 +0000)
commitd040a58da371bd177a26409d9cc50de33ed0b654
tree6dcc2156a6fe6e80527945a6cc4ecb5776e4c997
parent161a158e5c497a54ea0ba588d242fa98e7c0a3e8
[ELF][MIPS] Add STO_MIPS_PLT flag to the symbols require pointer equality

On MIPS we need to mark symbol which has a PLT entry and requires
pointer equality by STO_MIPS_PLT flag. That is necessary to help
dynamic linker distinguish such symbols and MIPS lazy-binding stubs.

https://sourceware.org/ml/binutils/2008-07/txt00000.txt

Differential Revision: http://reviews.llvm.org/D17593

llvm-svn: 261879
lld/ELF/OutputSections.cpp
lld/ELF/Target.cpp
lld/test/ELF/mips-sto-plt.s [new file with mode: 0644]