Skip to content

Commit 6c784fa

Browse files
committed
pbio/platform/ev3: Rearrange sections so that .pru comes earlier
Without this change, the ELF file contains padding for the .bss section. After this change, the .bss section is omitted in the file.
1 parent 4a73ffa commit 6c784fa

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/pbio/platform/ev3/platform.ld

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ SECTIONS
2929
*(.rodata.*)
3030
} > DDR
3131

32+
.pru :
33+
{
34+
. = ALIGN(4);
35+
_pru0_start = .;
36+
KEEP(*(.pru0));
37+
. = ALIGN(4);
38+
_pru0_end = .;
39+
} >DDR
40+
3241
.data :
3342
{
3443
. = ALIGN(4);
@@ -46,15 +55,6 @@ SECTIONS
4655
_bss_end = .;
4756
} > DDR
4857

49-
.pru :
50-
{
51-
. = ALIGN(4);
52-
_pru0_start = .;
53-
KEEP(*(.pru0));
54-
. = ALIGN(4);
55-
_pru0_end = .;
56-
} >DDR
57-
5858
/* Uninitialized (not zeroed at startup) data section */
5959

6060
.noinit (NOLOAD) :

0 commit comments

Comments
 (0)