Changeset 2eadda9 in mainline for uspace/lib/c/arch/mips32
- Timestamp:
- 2018-07-11T17:45:30Z (8 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/mips32
- Files:
-
- 2 edited
-
_link.ld.in (modified) (1 diff)
-
src/entry.S (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/mips32/_link.ld.in
rc2c4127 r2eadda9 62 62 63 63 .init_array : { 64 #ifndef SHLIB 64 65 PROVIDE_HIDDEN (__init_array_start = .); 66 #endif 65 67 KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) 66 68 KEEP (*(.init_array .ctors)) 69 #ifndef SHLIB 67 70 PROVIDE_HIDDEN (__init_array_end = .); 71 #endif 68 72 } 69 73 70 74 .fini_array : { 75 #ifndef SHLIB 71 76 PROVIDE_HIDDEN (__fini_array_start = .); 77 #endif 72 78 KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) 73 79 KEEP (*(.fini_array .dtors)) 80 #ifndef SHLIB 74 81 PROVIDE_HIDDEN (__fini_array_end = .); 82 #endif 75 83 } 76 84 -
uspace/lib/c/arch/mips32/src/entry.S
rc2c4127 r2eadda9 31 31 32 32 .text 33 .section .init, "ax"34 33 35 34 .set noreorder … … 51 50 .cprestore 16 52 51 53 # Pass pcb_ptr to __ libc_main() as the first argument. It is already52 # Pass pcb_ptr to __c_start() as the first argument. It is already 54 53 # in $a0. As the first argument is passed in $a0, no operation 55 54 # is needed. 56 55 57 jal __ libc_main56 jal __c_start 58 57 nop 59 58
Note:
See TracChangeset
for help on using the changeset viewer.
