/[osn-commons]/trunk/plibc/x86_64/main.s
ViewVC logotype

Annotation of /trunk/plibc/x86_64/main.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 47 - (hide annotations)
Thu Aug 15 18:10:51 2024 UTC (7 months, 2 weeks ago) by rakinar2
File MIME type: text/x-asm
File size: 499 byte(s)
feat: add plibc to the project
1 rakinar2 47 .section .rodata
2     .globl __uar_data_start
3     __uar_data_start:
4     .incbin "test-archive.uar"
5     .globl __uar_data_end
6     __uar_data_end:
7     .byte 0x00
8     __uar_data_size:
9     .quad __uar_data_end - __uar_data_start
10    
11     .text
12     .globl _start
13    
14     .type main, @function
15     main:
16     call libuar_init
17     call _c_start
18     push %rax
19     call libuar_deinit
20     pop %rax
21     ret
22    
23     _start:
24     mov $0, %rdi
25     mov %rsp, %rsi
26     mov $0, %rdx
27     call main
28     mov %rax, %rdi
29     call exit
30    
31     .section .note.GNU-stack,"",@progbits

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26