[mips] Add SHF_MIPS_GPREL flag to the MIPS .sbss and .sdata sections
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 3 Feb 2016 11:50:22 +0000 (11:50 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 3 Feb 2016 11:50:22 +0000 (11:50 +0000)
commite774126c9623639b11f8716dee9e49cb2d97649b
treeeb787e4752e4f062786c13e9c106039fde3d320c
parent3a6e81c2c1d30965323419ca9b2f4a338a540a36
[mips] Add SHF_MIPS_GPREL flag to the MIPS .sbss and .sdata sections

MIPS ABI states that .sbss and .sdata sections must have SHF_MIPS_GPREL
flag. See Figure 4–7 on page 69 in the following document:
ftp://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf.

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

llvm-svn: 259641
llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
llvm/test/CodeGen/Mips/mips-shf-gprel.ll [new file with mode: 0644]