Skip to content

Commit

Permalink
Merge pull request #253 from ia0/fix
Browse files Browse the repository at this point in the history
Make sure .heap is 4-byte aligned
  • Loading branch information
romancardenas authored Jan 7, 2025
2 parents 4038a13 + e6c37f3 commit bc21d25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions riscv-rt/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed

- Ensure the `.heap` section is 4-byte aligned
- Limit rustc cfg flags to `riscvi`, `riscvm`, `riscvf`, and `riscvd`.
- Temporary use of `RISCV_RT_LLVM_ARCH_PATCH` environment variable to include the
temporary patch required for avoid LLVM spurious errors.
Expand Down
2 changes: 1 addition & 1 deletion riscv-rt/link.x.in
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ SECTIONS
__ebss = .;

/* fictitious region that represents the memory available for the heap */
.heap (NOLOAD) :
.heap (NOLOAD) : ALIGN(4)
{
__sheap = .;
. += _heap_size;
Expand Down

0 comments on commit bc21d25

Please sign in to comment.