Skip to content

Commit

Permalink
[ARM] 3008/1: the exception table is not read-only
Browse files Browse the repository at this point in the history
Patch from Nicolas Pitre

... and therefore should not live in the .text section.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Nicolas Pitre authored and Russell King committed Oct 13, 2005
1 parent 50688ea commit 13b1f64
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions arch/arm/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@ SECTIONS
*(.got) /* Global offset table */
}

. = ALIGN(16);
__ex_table : { /* Exception table */
__start___ex_table = .;
*(__ex_table)
__stop___ex_table = .;
}

RODATA

_etext = .; /* End of text and rodata section */
Expand Down Expand Up @@ -137,6 +130,14 @@ SECTIONS
. = ALIGN(32);
*(.data.cacheline_aligned)

/*
* The exception fixup table (might need resorting at runtime)
*/
. = ALIGN(32);
__start___ex_table = .;
*(__ex_table)
__stop___ex_table = .;

/*
* and the usual data section
*/
Expand Down

0 comments on commit 13b1f64

Please sign in to comment.