Index: lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp =================================================================== --- lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp +++ lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp @@ -611,7 +611,7 @@ MCStreamer &OS = getStreamer(); MCSectionELF *Sec = Context.getELFSection(".pdr", ELF::SHT_PROGBITS, - ELF::SHF_ALLOC | ELF::SHT_REL); + ELF::SHT_REL); MCSymbol *Sym = Context.getOrCreateSymbol(Name); const MCSymbolRefExpr *ExprRef = Index: test/MC/Mips/mips-pdr.s =================================================================== --- test/MC/Mips/mips-pdr.s +++ test/MC/Mips/mips-pdr.s @@ -18,8 +18,8 @@ # OBJOUT: Section { # OBJOUT: Name: .pdr # OBJOUT: Type: SHT_PROGBITS (0x1) -# OBJOUT: Flags [ (0xB) -# OBJOUT: SHF_ALLOC (0x2) +# OBJOUT: Flags [ (0x9) +# OBJOUT-NOT: SHF_ALLOC (0x2) # OBJOUT: SHF_WRITE (0x1) # OBJOUT: ] # OBJOUT: Size: 64