diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-04-20 15:12:27 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-04-20 16:51:38 -0400 |
commit | d4541805e812abb5110d5de83246488fa0aa9a8e (patch) | |
tree | a98f00e62825de0b1f40c9f43c7d999aadd8e2cb /arch/x86/include/asm/asm.h | |
parent | 060feb650010c261fcfbae9de9348b46cedcd3cd (diff) |
x86, extable: Use .pushsection ... .popsection for _ASM_EXTABLE()
Instead of using .section ... .previous, use .pushsection
... .popsection; this is (hopefully) a bit more robust, especially in
complex assembly code.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: David Daney <david.daney@cavium.com>
Link: http://lkml.kernel.org/r/CA%2B55aFyijf43qSu3N9nWHEBwaGbb7T2Oq9A=9EyR=Jtyqfq_cQ@mail.gmail.com
Diffstat (limited to 'arch/x86/include/asm/asm.h')
-rw-r--r-- | arch/x86/include/asm/asm.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/x86/include/asm/asm.h b/arch/x86/include/asm/asm.h index 9412d6558c88..ff3f6bffcbf9 100644 --- a/arch/x86/include/asm/asm.h +++ b/arch/x86/include/asm/asm.h | |||
@@ -42,17 +42,17 @@ | |||
42 | 42 | ||
43 | /* Exception table entry */ | 43 | /* Exception table entry */ |
44 | #ifdef __ASSEMBLY__ | 44 | #ifdef __ASSEMBLY__ |
45 | # define _ASM_EXTABLE(from,to) \ | 45 | # define _ASM_EXTABLE(from,to) \ |
46 | __ASM_EX_SEC ; \ | 46 | .pushsection "__ex_table","a" ; \ |
47 | _ASM_ALIGN ; \ | 47 | _ASM_ALIGN ; \ |
48 | _ASM_PTR from , to ; \ | 48 | _ASM_PTR from , to ; \ |
49 | .previous | 49 | .popsection |
50 | #else | 50 | #else |
51 | # define _ASM_EXTABLE(from,to) \ | 51 | # define _ASM_EXTABLE(from,to) \ |
52 | __ASM_EX_SEC \ | 52 | " .pushsection \"__ex_table\",\"a\"\n" \ |
53 | _ASM_ALIGN "\n" \ | 53 | _ASM_ALIGN "\n" \ |
54 | _ASM_PTR #from "," #to "\n" \ | 54 | _ASM_PTR #from "," #to "\n" \ |
55 | " .previous\n" | 55 | " .popsection\n" |
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | #endif /* _ASM_X86_ASM_H */ | 58 | #endif /* _ASM_X86_ASM_H */ |