Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9a46e6e authored by Nicolas Pitre's avatar Nicolas Pitre
Browse files

ARM: linker script: factor out unwinding table sections

parent 47b4c77d
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -66,20 +66,7 @@ SECTIONS
	}

#ifdef CONFIG_ARM_UNWIND
	/*
	 * Stack unwinding tables
	 */
	. = ALIGN(8);
	.ARM.unwind_idx : {
		__start_unwind_idx = .;
		*(.ARM.exidx*)
		__stop_unwind_idx = .;
	}
	.ARM.unwind_tab : {
		__start_unwind_tab = .;
		*(.ARM.extab*)
		__stop_unwind_tab = .;
	}
	ARM_UNWIND_SECTIONS
#endif

	NOTES
+1 −14
Original line number Diff line number Diff line
@@ -74,20 +74,7 @@ SECTIONS
	}

#ifdef CONFIG_ARM_UNWIND
	/*
	 * Stack unwinding tables
	 */
	. = ALIGN(8);
	.ARM.unwind_idx : {
		__start_unwind_idx = .;
		*(.ARM.exidx*)
		__stop_unwind_idx = .;
	}
	.ARM.unwind_tab : {
		__start_unwind_tab = .;
		*(.ARM.extab*)
		__stop_unwind_tab = .;
	}
	ARM_UNWIND_SECTIONS
#endif

	NOTES
+14 −0
Original line number Diff line number Diff line
@@ -78,3 +78,17 @@
		. = ALIGN(4);						\
		*(.got)			/* Global offset table */	\
		ARM_CPU_KEEP(PROC_INFO)

/* Stack unwinding tables */
#define ARM_UNWIND_SECTIONS						\
	. = ALIGN(8);							\
	.ARM.unwind_idx : {						\
		__start_unwind_idx = .;					\
		*(.ARM.exidx*)						\
		__stop_unwind_idx = .;					\
	}								\
	.ARM.unwind_tab : {						\
		__start_unwind_tab = .;					\
		*(.ARM.extab*)						\
		__stop_unwind_tab = .;					\
	}