diff options
| author | Scott Egerton <Scott.Egerton@imgtec.com> | 2016-02-15 10:04:38 +0000 |
|---|---|---|
| committer | Scott Egerton <Scott.Egerton@imgtec.com> | 2016-02-15 10:04:38 +0000 |
| commit | 2c2a2f511960b2d0976e471f7990448631120b74 (patch) | |
| tree | d0862088ce9f18c7f97840c2aa5cbddd93dab211 /llvm | |
| parent | baec95a88cd5f06f068f5cb056ebb1cafabfd654 (diff) | |
| download | bcm5719-llvm-2c2a2f511960b2d0976e471f7990448631120b74.tar.gz bcm5719-llvm-2c2a2f511960b2d0976e471f7990448631120b74.zip | |
Reverted r260879 as it caused test failures in lld.
llvm-svn: 260880
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp | 2 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/mips-pdr.s | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp index a33ef78fa95..e5fa7556053 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp @@ -611,7 +611,7 @@ void MipsTargetELFStreamer::emitDirectiveEnd(StringRef Name) { MCStreamer &OS = getStreamer(); MCSectionELF *Sec = Context.getELFSection(".pdr", ELF::SHT_PROGBITS, - ELF::SHT_REL); + ELF::SHF_ALLOC | ELF::SHT_REL); MCSymbol *Sym = Context.getOrCreateSymbol(Name); const MCSymbolRefExpr *ExprRef = diff --git a/llvm/test/MC/Mips/mips-pdr.s b/llvm/test/MC/Mips/mips-pdr.s index c4b63783e76..8177e3e2344 100644 --- a/llvm/test/MC/Mips/mips-pdr.s +++ b/llvm/test/MC/Mips/mips-pdr.s @@ -18,8 +18,8 @@ # OBJOUT: Section { # OBJOUT: Name: .pdr # OBJOUT: Type: SHT_PROGBITS (0x1) -# OBJOUT: Flags [ (0x9) -# OBJOUT-NOT: SHF_ALLOC (0x2) +# OBJOUT: Flags [ (0xB) +# OBJOUT: SHF_ALLOC (0x2) # OBJOUT: SHF_WRITE (0x1) # OBJOUT: ] # OBJOUT: Size: 64 |

