[PATCH v2 2/6] microblaze: Align exception-related sections
Alex White
alex.white at oarcorp.com
Wed Aug 30 02:05:25 UTC 2023
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 {
--
2.34.1
More information about the devel
mailing list