Skip to content

Commit d9a46e6

Browse files
author
Nicolas Pitre
committed
ARM: linker script: factor out unwinding table sections
Signed-off-by: Nicolas Pitre <nico@linaro.org> Tested-by: Chris Brandt <Chris.Brandt@renesas.com>
1 parent 47b4c77 commit d9a46e6

3 files changed

Lines changed: 16 additions & 28 deletions

File tree

‎arch/arm/kernel/vmlinux-xip.lds.S‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,7 @@ SECTIONS
6666
}
6767

6868
#ifdef CONFIG_ARM_UNWIND
69-
/*
70-
* Stack unwinding tables
71-
*/
72-
. = ALIGN(8);
73-
.ARM.unwind_idx : {
74-
__start_unwind_idx = .;
75-
*(.ARM.exidx*)
76-
__stop_unwind_idx = .;
77-
}
78-
.ARM.unwind_tab : {
79-
__start_unwind_tab = .;
80-
*(.ARM.extab*)
81-
__stop_unwind_tab = .;
82-
}
69+
ARM_UNWIND_SECTIONS
8370
#endif
8471

8572
NOTES

‎arch/arm/kernel/vmlinux.lds.S‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,7 @@ SECTIONS
7474
}
7575

7676
#ifdef CONFIG_ARM_UNWIND
77-
/*
78-
* Stack unwinding tables
79-
*/
80-
. = ALIGN(8);
81-
.ARM.unwind_idx : {
82-
__start_unwind_idx = .;
83-
*(.ARM.exidx*)
84-
__stop_unwind_idx = .;
85-
}
86-
.ARM.unwind_tab : {
87-
__start_unwind_tab = .;
88-
*(.ARM.extab*)
89-
__stop_unwind_tab = .;
90-
}
77+
ARM_UNWIND_SECTIONS
9178
#endif
9279

9380
NOTES

‎arch/arm/kernel/vmlinux.lds.h‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,17 @@
7878
. = ALIGN(4); \
7979
*(.got) /* Global offset table */ \
8080
ARM_CPU_KEEP(PROC_INFO)
81+
82+
/* Stack unwinding tables */
83+
#define ARM_UNWIND_SECTIONS \
84+
. = ALIGN(8); \
85+
.ARM.unwind_idx : { \
86+
__start_unwind_idx = .; \
87+
*(.ARM.exidx*) \
88+
__stop_unwind_idx = .; \
89+
} \
90+
.ARM.unwind_tab : { \
91+
__start_unwind_tab = .; \
92+
*(.ARM.extab*) \
93+
__stop_unwind_tab = .; \
94+
}

0 commit comments

Comments
 (0)