Skip to content

Commit

Permalink
lib: tag _start and _exit as functions
Browse files Browse the repository at this point in the history
objdump only disassembles stuff tagged as functions.
  • Loading branch information
arsv committed Jan 25, 2018
1 parent 6895035 commit 3cf2bbb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/arch/aarch64/_start.s
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ _start:
_exit:
mov x8, NR_exit
svc 0

.type _start,function
.type _exit,function
3 changes: 3 additions & 0 deletions lib/arch/arm/_start.s
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ _start:
_exit:
mov r7, $NR_exit
swi $0

.type _start,function
.type _exit,function
3 changes: 3 additions & 0 deletions lib/arch/mips/_start.s
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ _exit:

.size _exit,.-_exit
.size _start,_exit-_start

.type _start,function
.type _exit,function
3 changes: 3 additions & 0 deletions lib/arch/riscv64/_start.s
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ _start:
_exit:
li a7, NR_exit
ecall

.type _start,function
.type _exit,function
3 changes: 3 additions & 0 deletions lib/arch/x86_64/_start.s
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ _exit:
movq %rcx, %r10
syscall
hlt

.type _start,function
.type _exit,function

0 comments on commit 3cf2bbb

Please sign in to comment.