Displaying 3 results from an estimated 3 matches for "applep".
Did you mean:
apple
2017 Jun 06
4
LLD support for ld64 mach-o linker synthesised symbols
.../
typedef void (*__init_fn)(int, char **, char **, char **);
extern __init_fn __init_start __asm("section$start$__DATA$__mod_init_func");
extern __init_fn __init_end __asm("section$end$__DATA$__mod_init_func”);
static void __init_mod(int argc, char **argv, char **envp, char **applep)
{
for (__init_fn *p = &__init_start; p < &__init_end; ++p) {
(*p)(argc, argv, envp, applep);
}
}
Michael.
[1] https://github.com/opensource-apple/xnu/blob/dc0628e187c3148723505cf1f1d35bb948d3195b/bsd/kern/kern_exec.c#L1072-L1111 <https://github.com/o...
2017 Jun 06
2
LLD support for ld64 mach-o linker synthesised symbols
...init_fn)(int, char **, char **, char **);
> extern __init_fn __init_start __asm("section$start$__DATA$__mod_init_func");
> extern __init_fn __init_end __asm("section$end$__DATA$__mod_init_func”);
>
> static void __init_mod(int argc, char **argv, char **envp, char **applep)
> {
> for (__init_fn *p = &__init_start; p < &__init_end; ++p) {
> (*p)(argc, argv, envp, applep);
> }
> }
>
> Michael.
>
> [1] https://github.com/opensource-apple/xnu/blob/dc0628e187c3148723505cf1f1d35bb948d3195b/bsd/kern/ker...
2017 Jun 07
3
LLD support for ld64 mach-o linker synthesised symbols
...r **);
>> extern __init_fn __init_start __asm("section$start$__DATA$__mod_
>> init_func");
>> extern __init_fn __init_end __asm("section$end$__DATA$__
>> mod_init_func”);
>>
>> static void __init_mod(int argc, char **argv, char **envp, char **applep)
>> {
>> for (__init_fn *p = &__init_start; p < &__init_end; ++p) {
>> (*p)(argc, argv, envp, applep);
>> }
>> }
>>
>>
>> Michael.
>>
>> [1] https://github.com/opensource-apple/xnu/blob/dc0628e187...