-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: tag _start and _exit as functions
objdump only disassembles stuff tagged as functions.
- Loading branch information
Showing
5 changed files
with
15 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,6 @@ _start: | |
_exit: | ||
mov x8, NR_exit | ||
svc 0 | ||
|
||
.type _start,function | ||
.type _exit,function |
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 |
---|---|---|
|
@@ -18,3 +18,6 @@ _start: | |
_exit: | ||
mov r7, $NR_exit | ||
swi $0 | ||
|
||
.type _start,function | ||
.type _exit,function |
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 |
---|---|---|
|
@@ -55,3 +55,6 @@ _exit: | |
|
||
.size _exit,.-_exit | ||
.size _start,_exit-_start | ||
|
||
.type _start,function | ||
.type _exit,function |
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 |
---|---|---|
|
@@ -20,3 +20,6 @@ _start: | |
_exit: | ||
li a7, NR_exit | ||
ecall | ||
|
||
.type _start,function | ||
.type _exit,function |
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 |
---|---|---|
|
@@ -17,3 +17,6 @@ _exit: | |
movq %rcx, %r10 | ||
syscall | ||
hlt | ||
|
||
.type _start,function | ||
.type _exit,function |