aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2013-05-08 12:29:24 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2013-06-12 06:23:01 -0400
commitadace89562c7a9645b8dc84f6e1ac7ba8756094e (patch)
tree8a2cef419d80b54769da7cf5853ff4292f9e8237 /arch/arm64/kernel/vmlinux.lds.S
parent73150c983ac1f9b7653cfd3823b1ad4a44aad3bf (diff)
arm64: extable: sort the exception table at build time
As is done for other architectures, sort the exception table at build-time rather than during boot. Since sortextable appears to be a standalone C program relying on the host elf.h to provide EM_AARCH64, I've had to add a conditional check in order to allow cross-compilation on machines that aren't running a bleeding-edge libc-dev. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/vmlinux.lds.S')
-rw-r--r--arch/arm64/kernel/vmlinux.lds.S10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
index 3fae2be8b016..5e06a1786e26 100644
--- a/arch/arm64/kernel/vmlinux.lds.S
+++ b/arch/arm64/kernel/vmlinux.lds.S
@@ -56,7 +56,7 @@ SECTIONS
56 } 56 }
57 57
58 RO_DATA(PAGE_SIZE) 58 RO_DATA(PAGE_SIZE)
59 59 EXCEPTION_TABLE(8)
60 _etext = .; /* End of text and rodata section */ 60 _etext = .; /* End of text and rodata section */
61 61
62 . = ALIGN(PAGE_SIZE); 62 . = ALIGN(PAGE_SIZE);
@@ -99,14 +99,6 @@ SECTIONS
99 READ_MOSTLY_DATA(64) 99 READ_MOSTLY_DATA(64)
100 100
101 /* 101 /*
102 * The exception fixup table (might need resorting at runtime)
103 */
104 . = ALIGN(32);
105 __start___ex_table = .;
106 *(__ex_table)
107 __stop___ex_table = .;
108
109 /*
110 * and the usual data section 102 * and the usual data section
111 */ 103 */
112 DATA_DATA 104 DATA_DATA