Skip to content

Commit

Permalink
ヒープ領域の開始アドレスをアラインさせる
Browse files Browse the repository at this point in the history
  • Loading branch information
nuta committed Aug 20, 2023
1 parent 619659e commit bf34de1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/user/riscv32/user.ld.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ SECTIONS {
. = ALIGN(16);
*(.sbss .sbss.*);

. = ALIGN(16);

// ヒープ領域 (mallocが管理)
__heap = .;
. += 4 * 1024 * 1024; // 4MiB
Expand Down

0 comments on commit bf34de1

Please sign in to comment.