Changeset 2eadda9 in mainline for uspace/lib/c/arch/riscv64
- 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/riscv64
- Files:
-
- 2 edited
-
_link.ld.in (modified) (1 diff)
-
src/entry.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/riscv64/_link.ld.in
rc2c4127 r2eadda9 54 54 55 55 .init_array : { 56 #ifndef SHLIB 56 57 PROVIDE_HIDDEN (__init_array_start = .); 58 #endif 57 59 KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) 58 60 KEEP (*(.init_array .ctors)) 61 #ifndef SHLIB 59 62 PROVIDE_HIDDEN (__init_array_end = .); 63 #endif 60 64 } 61 65 62 66 .fini_array : { 67 #ifndef SHLIB 63 68 PROVIDE_HIDDEN (__fini_array_start = .); 69 #endif 64 70 KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) 65 71 KEEP (*(.fini_array .dtors)) 72 #ifndef SHLIB 66 73 PROVIDE_HIDDEN (__fini_array_end = .); 74 #endif 67 75 } 68 76 -
uspace/lib/c/arch/riscv64/src/entry.c
rc2c4127 r2eadda9 30 30 */ 31 31 32 #include "../../../generic/private/libc.h"33 34 32 extern void _start(void); 33 extern void __c_start(void *); 35 34 36 35 // FIXME: Implement properly. … … 38 37 void _start(void) 39 38 { 40 __ libc_main((void *)0);39 __c_start(0); 41 40 } 42 41
Note:
See TracChangeset
for help on using the changeset viewer.
