summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2011-11-14 11:19:02 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2011-11-14 11:19:08 +0100
commit7a2512b744e72377c3fa5976f06a3f343e155d1f (patch)
tree99a87c79d3fed314fc08c86afa06ad66176a791f /arch/s390
parentfa2fb2f4a599c402bb2670dde27867dbbb7e3c45 (diff)
downloadblackbird-op-linux-7a2512b744e72377c3fa5976f06a3f343e155d1f.tar.gz
blackbird-op-linux-7a2512b744e72377c3fa5976f06a3f343e155d1f.zip
[S390] incorrect note program header
'readelf -n' on the s390 vmlinux file generates lots of warnings about corrupt notes. The reason is that the 'NOTE' program header has incorrect file and memory sizes. The problem is that the section following the NOTES section do not switch to a different phdr and they get added to the NOTE program section. Add a dummy entry to the linker script that switches to the data phdr before the start of the RODATA section. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/vmlinux.lds.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S
index 56fe6bc81fee..e4c79ebb40e6 100644
--- a/arch/s390/kernel/vmlinux.lds.S
+++ b/arch/s390/kernel/vmlinux.lds.S
@@ -43,6 +43,8 @@ SECTIONS
NOTES :text :note
+ .dummy : { *(.dummy) } :data
+
RODATA
#ifdef CONFIG_SHARED_KERNEL
OpenPOWER on IntegriCloud