File tree Expand file tree Collapse file tree 3 files changed +23
-40
lines changed Expand file tree Collapse file tree 3 files changed +23
-40
lines changed Original file line number Diff line number Diff line change @@ -73,26 +73,7 @@ SECTIONS
73
73
74
74
_etext = .; /* End of text and rodata section */
75
75
76
- /*
77
- * The vectors and stubs are relocatable code, and the
78
- * only thing that matters is their relative offsets
79
- */
80
- __vectors_start = .;
81
- .vectors 0xffff0000 : AT(__vectors_start) {
82
- *(.vectors)
83
- }
84
- . = __vectors_start + SIZEOF(.vectors);
85
- __vectors_end = .;
86
-
87
- __stubs_start = .;
88
- .stubs ADDR(.vectors) + 0x1000 : AT(__stubs_start) {
89
- *(.stubs)
90
- }
91
- . = __stubs_start + SIZEOF(.stubs);
92
- __stubs_end = .;
93
-
94
- PROVIDE(vector_fiq_offset = vector_fiq - ADDR(.vectors));
95
-
76
+ ARM_VECTORS
96
77
INIT_TEXT_SECTION(8 )
97
78
.exit.text : {
98
79
ARM_EXIT_KEEP(EXIT_TEXT)
Original file line number Diff line number Diff line change @@ -86,26 +86,7 @@ SECTIONS
86
86
#endif
87
87
__init_begin = .;
88
88
89
- /*
90
- * The vectors and stubs are relocatable code, and the
91
- * only thing that matters is their relative offsets
92
- */
93
- __vectors_start = .;
94
- .vectors 0xffff0000 : AT(__vectors_start) {
95
- *(.vectors)
96
- }
97
- . = __vectors_start + SIZEOF(.vectors);
98
- __vectors_end = .;
99
-
100
- __stubs_start = .;
101
- .stubs ADDR(.vectors) + 0x1000 : AT(__stubs_start) {
102
- *(.stubs)
103
- }
104
- . = __stubs_start + SIZEOF(.stubs);
105
- __stubs_end = .;
106
-
107
- PROVIDE(vector_fiq_offset = vector_fiq - ADDR(.vectors));
108
-
89
+ ARM_VECTORS
109
90
INIT_TEXT_SECTION(8 )
110
91
.exit.text : {
111
92
ARM_EXIT_KEEP(EXIT_TEXT)
Original file line number Diff line number Diff line change 92
92
*(.ARM.extab*) \
93
93
__stop_unwind_tab = .; \
94
94
}
95
+
96
+ /*
97
+ * The vectors and stubs are relocatable code, and the
98
+ * only thing that matters is their relative offsets
99
+ */
100
+ #define ARM_VECTORS \
101
+ __vectors_start = .; \
102
+ .vectors 0xffff0000 : AT(__vectors_start) { \
103
+ *(.vectors) \
104
+ } \
105
+ . = __vectors_start + SIZEOF(.vectors); \
106
+ __vectors_end = .; \
107
+ \
108
+ __stubs_start = .; \
109
+ .stubs ADDR(.vectors) + 0x1000 : AT(__stubs_start) { \
110
+ *(.stubs) \
111
+ } \
112
+ . = __stubs_start + SIZEOF(.stubs); \
113
+ __stubs_end = .; \
114
+ \
115
+ PROVIDE(vector_fiq_offset = vector_fiq - ADDR(.vectors));
You can’t perform that action at this time.
0 commit comments