Skip to content

Commit

Permalink
x86, vmlinux.lds: unify exception table
Browse files Browse the repository at this point in the history
[ Impact: cleanup ]

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Tim Abbott <tabbott@MIT.EDU>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <1240991249-27117-6-git-send-email-sam@ravnborg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Sam Ravnborg authored and Ingo Molnar committed Apr 29, 2009
1 parent dfc2089 commit 448bc3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 20 deletions.
10 changes: 10 additions & 0 deletions arch/x86/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ SECTIONS

NOTES :text :note

/* Exception table */
. = ALIGN(16);
__ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
__start___ex_table = .;
*(__ex_table)
__stop___ex_table = .;
} :text = 0x9090

RODATA


#ifdef CONFIG_X86_32
# include "vmlinux_32.lds.S"
Expand Down
10 changes: 0 additions & 10 deletions arch/x86/kernel/vmlinux_32.lds.S
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
/* Exception table */
. = ALIGN(16);
__ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
__start___ex_table = .;
*(__ex_table)
__stop___ex_table = .;
} :text = 0x9090

RODATA

/* writeable */
. = ALIGN(PAGE_SIZE);
/* Data */
Expand Down
10 changes: 0 additions & 10 deletions arch/x86/kernel/vmlinux_64.lds.S
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
/* Exception table */
. = ALIGN(16);
__ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
__start___ex_table = .;
*(__ex_table)
__stop___ex_table = .;
} :text = 0x9090

RODATA

/* Align data segment to page size boundary */
. = ALIGN(PAGE_SIZE);
/* Data */
Expand Down

0 comments on commit 448bc3a

Please sign in to comment.