[rtems commit] microblaze: Align exception-related sections
Joel Sherrill
joel at rtems.org
Wed Aug 30 15:43:11 UTC 2023
Module: rtems
Branch: master
Commit: a1b23d0e233e544994017a1786a79eb50e198429
Changeset: http://git.rtems.org/rtems/commit/?id=a1b23d0e233e544994017a1786a79eb50e198429
Author: Alex White <alex.white at oarcorp.com>
Date: Fri Aug 25 16:04:22 2023 -0500
microblaze: Align exception-related sections
This fixes unaligned data access exceptions found while debugging test
dl05.
---
spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml b/spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml
index 9a3ca11b51..4f9b310ad3 100644
--- a/spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml
+++ b/spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml
@@ -104,20 +104,20 @@ content: |
} > REGION_RODATA AT > REGION_RODATA_LOAD
_frodata = . ;
- .rodata : {
+ .rodata : ALIGN_WITH_INPUT {
*(.rodata)
*(.rodata.*)
*(.gnu.linkonce.r.*)
CONSTRUCTORS; /* Is this needed? */
} > REGION_RODATA AT > REGION_RODATA_LOAD
_erodata = .;
- .eh_frame : {
- *(.eh_frame)
+ .eh_frame : ALIGN_WITH_INPUT {
+ KEEP (*(.eh_frame))
} > REGION_RODATA AT > REGION_RODATA_LOAD
.jcr : {
*(.jcr)
} > REGION_RODATA AT > REGION_RODATA_LOAD
- .gcc_except_table : {
+ .gcc_except_table : ALIGN_WITH_INPUT {
*(.gcc_except_table)
} > REGION_RODATA AT > REGION_RODATA_LOAD
.tdata : ALIGN_WITH_INPUT {
More information about the vc
mailing list