Changeset 2eadda9 in mainline for uspace/lib/c/arch/ia64
- 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/ia64
- Files:
-
- 2 edited
-
_link.ld.in (modified) (1 diff)
-
src/entry.S (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ia64/_link.ld.in
rc2c4127 r2eadda9 65 65 66 66 .init_array : { 67 #ifndef SHLIB 67 68 PROVIDE_HIDDEN (__init_array_start = .); 69 #endif 68 70 KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) 69 71 KEEP (*(.init_array .ctors)) 72 #ifndef SHLIB 70 73 PROVIDE_HIDDEN (__init_array_end = .); 74 #endif 71 75 } 72 76 73 77 .fini_array : { 78 #ifndef SHLIB 74 79 PROVIDE_HIDDEN (__fini_array_start = .); 80 #endif 75 81 KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) 76 82 KEEP (*(.fini_array .dtors)) 83 #ifndef SHLIB 77 84 PROVIDE_HIDDEN (__fini_array_end = .); 85 #endif 78 86 } 79 87 -
uspace/lib/c/arch/ia64/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 … … 42 42 movl gp = __gp 43 43 44 # Pass PCB pointer as the first argument to __ libc_main44 # Pass PCB pointer as the first argument to __c_start 45 45 mov out0 = r2 ;; 46 br.call.sptk.many b0 = __ libc_main46 br.call.sptk.many b0 = __c_start 47 47
Note:
See TracChangeset
for help on using the changeset viewer.
