Changeset 2eadda9 in mainline for uspace/lib/c/arch/sparc64
- Timestamp:
- 2018-07-11T17:45:30Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 99d3123
- Parents:
- c2c4127
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-11 17:08:12)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-11 17:45:30)
- Location:
- uspace/lib/c/arch/sparc64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/sparc64/_link.ld.in
rc2c4127 r2eadda9 58 58 59 59 .init_array : { 60 #ifndef SHLIB 60 61 PROVIDE_HIDDEN (__init_array_start = .); 62 #endif 61 63 KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) 62 64 KEEP (*(.init_array .ctors)) 65 #ifndef SHLIB 63 66 PROVIDE_HIDDEN (__init_array_end = .); 67 #endif 64 68 } 65 69 66 70 .fini_array : { 71 #ifndef SHLIB 67 72 PROVIDE_HIDDEN (__fini_array_start = .); 73 #endif 68 74 KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) 69 75 KEEP (*(.fini_array .dtors)) 76 #ifndef SHLIB 70 77 PROVIDE_HIDDEN (__fini_array_end = .); 78 #endif 71 79 } 72 80 -
uspace/lib/c/arch/sparc64/src/entry.S
rc2c4127 r2eadda9 29 29 #include <abi/asmtool.h> 30 30 31 . section .init, "ax"31 .text 32 32 33 33 .org 0 … … 46 46 add %g0, -0x7ff, %fp 47 47 48 # Pass pcb_ptr as the first argument to __ libc_main()49 call __ libc_main48 # Pass pcb_ptr as the first argument to __c_start() 49 call __c_start 50 50 mov %i1, %o0
Note:
See TracChangeset
for help on using the changeset viewer.