Skip to content

Commit

Permalink
[S390] Move NOTES and BUG_TABLE.
Browse files Browse the repository at this point in the history
Move the NOTES and BUG_TABLE section in the linker script to the
read-only sections right after the text section.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Martin Schwidefsky committed Jan 26, 2008
1 parent 5d67d16 commit ea29ee1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions arch/s390/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
@@ -17,6 +17,12 @@ ENTRY(_start)
jiffies = jiffies_64;
#endif

PHDRS {
text PT_LOAD FLAGS(5); /* R_E */
data PT_LOAD FLAGS(7); /* RWE */
note PT_NOTE FLAGS(0); /* ___ */
}

SECTIONS
{
. = 0x00000000;
@@ -33,6 +39,9 @@ SECTIONS

_etext = .; /* End of text section */

NOTES :text :note
BUG_TABLE :text

RODATA

#ifdef CONFIG_SHARED_KERNEL
@@ -49,9 +58,6 @@ SECTIONS
__stop___ex_table = .;
}

NOTES
BUG_TABLE

.data : { /* Data */
DATA_DATA
CONSTRUCTORS

0 comments on commit ea29ee1

Please sign in to comment.