OSDN Git Service

[mips] Support -membedded-data and fix a related bug
authorSimon Dardis <simon.dardis@imgtec.com>
Fri, 21 Jul 2017 17:19:00 +0000 (17:19 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Fri, 21 Jul 2017 17:19:00 +0000 (17:19 +0000)
commitabccd7d6bca2260f90ad5a9d8c1470377969d9ba
treec6ff8ac30bad14af6d771360e5b6d4558cb48700
parent90d56f0f85e253cfe091b72ecc2e8d33041e3cc4
[mips] Support -membedded-data and fix a related bug

-membedded-data changes the location of constant data from the .sdata to
the .rodata section. Previously it was (incorrectly) always located in the
.rodata section.

Reviewers: atanasyan

Differential Revision: https://reviews.llvm.org/D35686

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308758 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsTargetObjectFile.cpp
test/CodeGen/Mips/2008-07-15-SmallSection.ll