Skip to content

Commit bc21d25

Browse files
Merge pull request #253 from ia0/fix
Make sure .heap is 4-byte aligned
2 parents 4038a13 + e6c37f3 commit bc21d25

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

riscv-rt/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Changed
1111

12+
- Ensure the `.heap` section is 4-byte aligned
1213
- Limit rustc cfg flags to `riscvi`, `riscvm`, `riscvf`, and `riscvd`.
1314
- Temporary use of `RISCV_RT_LLVM_ARCH_PATCH` environment variable to include the
1415
temporary patch required for avoid LLVM spurious errors.

riscv-rt/link.x.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ SECTIONS
168168
__ebss = .;
169169

170170
/* fictitious region that represents the memory available for the heap */
171-
.heap (NOLOAD) :
171+
.heap (NOLOAD) : ALIGN(4)
172172
{
173173
__sheap = .;
174174
. += _heap_size;

0 commit comments

Comments
 (0)