Skip to content

Commit

Permalink
Move .asm section below .text
Browse files Browse the repository at this point in the history
  • Loading branch information
taikiy committed Dec 31, 2023
1 parent ff3f410 commit f7607d1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
11 changes: 6 additions & 5 deletions programs/blank/src/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ OUTPUT_FORMAT(binary)
SECTIONS
{
. = 0x400000; /* USER_PROGRAM_VIRTUAL_ADDRESS_START in config.h */

.text : ALIGN(4096)
{
*(.text)
}

.asm : ALIGN(4096)
{
*(.asm)
}

.rodata : ALIGN(4096)
{
*(.rodata)
Expand All @@ -23,9 +29,4 @@ SECTIONS
*(COMMON)
*(.bss)
}

.asm : ALIGN(4096)
{
*(.asm)
}
}
11 changes: 6 additions & 5 deletions programs/syscall/src/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ OUTPUT_FORMAT(binary)
SECTIONS
{
. = 0x400000; /* USER_PROGRAM_VIRTUAL_ADDRESS_START in config.h */

.text : ALIGN(4096)
{
*(.text)
}

.asm : ALIGN(4096)
{
*(.asm)
}

.rodata : ALIGN(4096)
{
*(.rodata)
Expand All @@ -23,9 +29,4 @@ SECTIONS
*(COMMON)
*(.bss)
}

.asm : ALIGN(4096)
{
*(.asm)
}
}
11 changes: 6 additions & 5 deletions src/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ OUTPUT_FORMAT(binary)
SECTIONS
{
. = 1M;

.text : ALIGN(4096)
{
*(.text)
}

.asm : ALIGN(4096)
{
*(.asm)
}

.rodata : ALIGN(4096)
{
*(.rodata)
Expand All @@ -23,9 +29,4 @@ SECTIONS
*(COMMON)
*(.bss)
}

.asm : ALIGN(4096)
{
*(.asm)
}
}

0 comments on commit f7607d1

Please sign in to comment.