[mips] Removed the SHF_ALLOC flag from the .pdr section.
authorScott Egerton <Scott.Egerton@imgtec.com>
Mon, 15 Feb 2016 09:34:15 +0000 (09:34 +0000)
committerScott Egerton <Scott.Egerton@imgtec.com>
Mon, 15 Feb 2016 09:34:15 +0000 (09:34 +0000)
commitbaec95a88cd5f06f068f5cb056ebb1cafabfd654
treea94f15994d6c89fe054a26ff0d204fd6b0b19a47
parent4dc7d390dbd1c6f7087ef0576df0354a23a88292
[mips] Removed the SHF_ALLOC flag from the .pdr section.

Summary:
This section is used for debug information and has no need to be
in memory at runtime. With this patch, LLVM now emits the same flags as
the GNU assembler. This patch also fixes an error when compiling
the Linux kernel, The error is that there are relocations within the
.pdr section in a VDSO.

Reviewers: vkalintiris, dsanders

Subscribers: llvm-commits, dsanders

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

llvm-svn: 260879
llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
llvm/test/MC/Mips/mips-pdr.s