-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1188 from avdgrinten/managarm-riscv
sysdeps/managarm: make RISC-V compile and link
- Loading branch information
Showing
7 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.section .text | ||
.global _start | ||
_start: | ||
.weak __global_pointer$ | ||
.hidden __global_pointer$ | ||
.option push | ||
.option norelax | ||
lla gp, __global_pointer$ | ||
.option pop | ||
|
||
mv a0, sp | ||
la a1, main | ||
call __mlibc_entry@plt | ||
unimp | ||
|
||
|
||
.section .note.GNU-stack,"",%progbits | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.section .text | ||
.global _start | ||
_start: | ||
.weak __global_pointer$ | ||
.hidden __global_pointer$ | ||
.option push | ||
.option norelax | ||
lla gp, __global_pointer$ | ||
.option pop | ||
|
||
mv a0, sp | ||
la a1, main | ||
call __mlibc_entry | ||
.section .note.GNU-stack,"",%progbits | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.section .init | ||
.global _init | ||
_init: | ||
unimp | ||
|
||
.section .fini | ||
.global _fini | ||
_fini: | ||
unimp | ||
.section .note.GNU-stack,"",%progbits | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.section .init | ||
unimp | ||
|
||
.section .fini | ||
unimp | ||
.section .note.GNU-stack,"",%progbits | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <bits/ensure.h> | ||
|
||
extern "C" void __mlibc_start_thread() { | ||
__ensure(!"unimplemented"); | ||
} | ||
|
||
extern "C" void __mlibc_signal_restore() { | ||
__ensure(!"unimplemented"); | ||
} |