@@ -169,9 +169,6 @@ SECTIONS
169
169
{
170
170
KEEP(*(.got .got.*));
171
171
}
172
-
173
- .eh_frame (INFO) : { KEEP(*(.eh_frame)) }
174
- .eh_frame_hdr (INFO) : { *(.eh_frame_hdr) }
175
172
}
176
173
177
174
/* Do not exceed this mark in the error messages above | */
@@ -187,9 +184,6 @@ ERROR(riscv-rt): the start of the REGION_DATA must be ${ARCH_WIDTH}-byte aligned
187
184
ASSERT(ORIGIN(REGION_HEAP) % 4 == 0, "
188
185
ERROR(riscv-rt): the start of the REGION_HEAP must be 4-byte aligned");
189
186
190
- ASSERT(ORIGIN(REGION_TEXT) % 4 == 0, "
191
- ERROR(riscv-rt): the start of the REGION_TEXT must be 4-byte aligned");
192
-
193
187
ASSERT(ORIGIN(REGION_STACK) % 4 == 0, "
194
188
ERROR(riscv-rt): the start of the REGION_STACK must be 4-byte aligned");
195
189
@@ -216,11 +210,11 @@ ASSERT(SIZEOF(.stack) > (_max_hart_id + 1) * _hart_stack_size, "
216
210
ERROR(riscv-rt): .stack section is too small for allocating stacks for all the harts.
217
211
Consider changing `_max_hart_id` or `_hart_stack_size`.");
218
212
213
+ /* # Other checks */
219
214
ASSERT(SIZEOF(.got) == 0, "
220
- .got section detected in the input files. Dynamic relocations are not
221
- supported. If you are linking to C code compiled using the `gcc` crate
222
- then modify your build script to compile the C code _without_ the
223
- -fPIC flag. See the documentation of the `gcc::Config.fpic` method for
224
- details.");
215
+ ERROR(riscv-rt): .got section detected in the input files. Dynamic relocations are not
216
+ supported. If you are linking to C code compiled using the `cc` crate then modify your
217
+ build script to compile the C code _without_ the -fPIC flag. See the documentation of
218
+ the `cc::Build.pic` method for details.");
225
219
226
220
/* Do not exceed this mark in the error messages above | */
0 commit comments