From: Martin Schwidefsky Date: Mon, 14 Nov 2011 10:19:02 +0000 (+0100) Subject: [S390] incorrect note program header X-Git-Tag: v3.2-rc3~49^2~6 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7a2512b744e72377c3fa5976f06a3f343e155d1f;p=~emulex%2Finfiniband.git [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 --- diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index 56fe6bc81fe..e4c79ebb40e 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