Skip to content

Commit cc913f8

Browse files
committed
Make sure startup code is in .init section
1 parent 1ad5e79 commit cc913f8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

linker_bare.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ SECTIONS
1010
. = 0x00000000;
1111

1212
.text : {
13+
*(.init)
1314
*(.text._start)
1415
*(.text*)
1516
}

start_bare.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.section .text
1+
.section .init
22
.globl _start
33

44
_start:

start_newlib.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.section .text
1+
.section .init
22
.globl _start
33

44
_start:

0 commit comments

Comments
 (0)