Skip to content

Commit

Permalink
[S390] incorrect note program header
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Martin Schwidefsky committed Nov 14, 2011
1 parent fa2fb2f commit 7a2512b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/s390/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ SECTIONS

NOTES :text :note

.dummy : { *(.dummy) } :data

RODATA

#ifdef CONFIG_SHARED_KERNEL
Expand Down

0 comments on commit 7a2512b

Please sign in to comment.