Skip to content

Commit eafea85

Browse files
committed
Insert __etext in link.x instead of in code
1 parent acc8a51 commit eafea85

File tree

10 files changed

+2
-24
lines changed

10 files changed

+2
-24
lines changed

asm/branch.s

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.section .text.start
2-
.word __etext
3-
41
.global _start
52
_start:
63
li x1, 0

asm/large_bin.s

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.section .text.start
2-
.word __etext
3-
41
.global _start
52
_start:
63
la x1, word1

asm/load.s

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.section .text.start
2-
.word __etext
3-
41
.global _start
52
_start:
63
la x1, word

asm/math.s

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.section .text.start
2-
.word __etext
3-
41
.global _start
52
_start:
63
li x1, 0b1

asm/print.s

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.section .text.start
2-
.word __etext
3-
41
.global _start
52
_start:
63
la s0, msg

asm/store.s

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.section .text.start
2-
.word __etext
3-
41
.global _start
52
_start:
63
la x1, word

asm/system.s

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.section .text.start
2-
.word __etext
3-
41
.global _start
52
_start:
63
# PAUSE (apparently not supported by clang)

coremark/mlogv32/entry.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.section .text.start
2-
.word __etext
32

43
.global _start
54
_start:

rust/mlogv32/link.x

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ SECTIONS {
3333
.text : {
3434
__stext = .;
3535

36+
LONG(__etext);
37+
3638
KEEP(*(.text.start));
3739
*(.text.reset);
3840
*(.text .text.*);

rust/mlogv32/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ static HEAP: Heap = Heap::empty();
3030
#[rustfmt::skip]
3131
global_asm!("
3232
.section .text.start
33-
.word __etext
34-
3533
la gp, __global_pointer$
3634
3735
la t1, _stack_start

0 commit comments

Comments
 (0)