From: Martin Schwidefsky Date: Fri, 11 Nov 2011 16:18:49 +0000 (+0100) Subject: [S390] incorrect note program header X-Git-Tag: next-20111114~59^2~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c24b69ae35c1a8dda176359fca585af7bec21dc3;p=karo-tx-linux.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 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