Thomas A
1f899c79a1
[kernel] Branch to __darling_bsd_syscall
instead of using svc
syscall
2021-12-11 21:03:34 -08:00
Thomas A
b50131844d
[kernel] Implement sig_restorer for ARM64. Throw error if missing assembly.
2021-12-03 19:52:30 -08:00
Thomas A
7abce5c048
Fixed and added additional ARM headers
2021-12-03 19:48:58 -08:00
Thomas A
3f5bc3e35b
[kernel] Initial implementation of MacOS and Linux syscall for ARM64
2021-11-30 21:31:03 -08:00
Thomas A
3c89ad0f6e
Fixed TARGET_ARM64 description typo
2021-11-27 19:22:16 -08:00
Thomas A
62f75f53d7
[bootstrap_cmds] Add DARLING_BOOTSTRAP_CMDS
macro. Don't define __uint64_t as uint64_t if building for ARM64.
2021-11-07 12:34:59 -08:00
Thomas A
1b98221263
[bootstrap_cmds] Add link to arm
folder
2021-11-07 12:34:59 -08:00
Thomas A
c14c626226
[libm] Use architecture/arm/math.h
2021-11-07 12:34:59 -08:00
Thomas A
bd4a08e305
Include missing ARM headers
2021-11-07 12:34:59 -08:00
Thomas A
d03970600f
[bootstrap_cmds] Add __arm64__
definition if building for arm64
2021-11-07 12:34:59 -08:00
Thomas A
d974b14b63
Stub GetCompilerInclude
if not i386 and x86_64.
...
cpuid.h only supports i386 and x86_64.
2021-11-07 12:34:59 -08:00
Thomas A
8be655a659
Added TARGET_ARM64
. Added arch and build target.
2021-11-07 12:34:59 -08:00
Luboš Doležel
61d1007de1
Merge pull request #1056 from trungnt2910/dev/trungnt2910/run-dotnet
...
feat: Implemented mlock and munlock syscalls
2021-11-07 17:04:26 +01:00
Ariel Abreu
6faf852693
Don't set CLOEXEC on "created" descriptors in posix_spawn
...
Instead of using the `inherit` action, LLDB uses `dup2` with both FDs being the same number. This is supported by XNU, so we have to support it as well. The solution is to see if each descriptor we want to set CLOEXEC on is present in the file actions list. If it is, then we *don't* set CLOEXEC on it.
Also, implement octal formatting in `__simple_vsnprintf`.
2021-11-07 01:24:06 -04:00
Ariel Abreu
14d6e83ede
Improve xtrace output for posix_spawn and fix(?) xtrace TLS
...
This makes xtrace print more useful debugging information for posix_spawn. There are other syscalls that could definitely benefit from having more detailed output (e.g. `kevent` and friends).
Also, I was noticing segfaults when processes exited with pthread_terminate; they were due to xtrace using pthread keys after pthread_terminate had been called, which cleans up pthread keys. This new static key approach should be fault free, if only at the expense of leaking some memory per-thread. TODO: add a death hook in libsystem_kernel to notify xtrace when a thread is *actually* going to die.
2021-11-07 01:20:18 -04:00
Trung Nguyen
2c033c793d
feat: Implemented mlock and munlock syscalls
2021-11-05 10:02:46 +07:00
Thomas A
c4d944ae01
Update lkm submodule
2021-11-02 20:23:51 -07:00
Ariel Abreu
9393db2c6e
Implement machdep.cpu.core_count
2021-08-01 10:01:21 -04:00
Ariel Abreu
1025c8845c
Make LSRegisterURL stub silent without STUB_VERBOSE
2021-08-01 10:01:08 -04:00
Ariel Abreu
1b1fde4a6e
Update Foundation
2021-08-01 10:00:37 -04:00
Ariel Abreu
f436078b0a
Update CF
2021-07-30 14:10:32 -04:00
Ariel Abreu
48c199cfbc
Update LKM
2021-07-25 00:08:55 -04:00
Luboš Doležel
3e4cd67db8
Merge pull request #1001 from rslsp1/fix/cups-libcups
...
update reference to cups for fix of #1000
2021-07-23 15:08:33 +02:00
rsl
dc1c4d892f
update reference to cups for fix of #1000
...
https://github.com/darlinghq/darling/issues/1000
2021-07-23 11:51:53 +02:00
Ariel Abreu
e03a33d7f0
Update openpam and openssh
...
This was an attempt to get sshd to run properly, but unfortunately, it still fails to do so
2021-07-07 15:46:34 -04:00
Ariel Abreu
464e4f1587
Add some more stubs in some authentication frameworks
...
This is for the remaining PAM modules
2021-07-07 15:37:10 -04:00
Ariel Abreu
68c043779a
Stub NetFS framework
2021-07-07 15:33:36 -04:00
Ariel Abreu
50ad72b403
Stub ServerInformation framework
2021-07-07 15:32:41 -04:00
Ariel Abreu
c719e9983b
Add Jenkinsfile for my CI
2021-07-07 12:34:54 -04:00
Ariel Abreu
dd18f7bb25
Merge branch 'master' of https://github.com/darlinghq/darling
2021-07-05 11:15:08 -04:00
Ariel Abreu
9d3a2d29b9
Prevent closing the special LKM fd
...
Fixes #987
2021-07-05 11:15:06 -04:00
Andrew Hyatt
2761c84286
PPA source package build script
2021-07-05 09:53:48 -04:00
Ariel Abreu
26f4be2c42
Merge pull request #980 from JJTech0130/JJTech0130-clang-update
...
Update CMake supported clang versions
2021-07-04 21:07:53 -04:00
Ariel Abreu
6dd1d47fe3
Update cocotron, python, and python_modules
2021-07-04 18:10:28 -04:00
Ariel Abreu
ee4f2c17de
Merge remote-tracking branch 'origin/vchroot-abs-symlinks' into pyobjc
2021-07-04 10:49:30 -04:00
Ariel Abreu
1d3aa5dae9
Tell ld about the SDK version we're emulating
2021-06-29 22:45:36 -04:00
Ariel Abreu
9648ea83f4
Update some submodules
2021-06-29 22:16:12 -04:00
Ariel Abreu
831131aa86
Update CF and Foundation
2021-06-29 11:15:51 -04:00
Ariel Abreu
b248894547
Many, many fixes/additions for PyObjC
...
* Fix the Carbon framework to properly reexport the right frameworks
* Add many missing Carbon-related type definitions
* A couple of fixes in some submodules (see their commits)
2021-06-28 23:48:24 -04:00
Ariel Abreu
b806f089fe
Add SyncServices stubs
2021-06-28 23:44:29 -04:00
Ariel Abreu
2aa2f32784
Add ScreenSaver stubs
2021-06-28 23:43:11 -04:00
Ariel Abreu
b6808ef1da
Add InputMethodKit stubs
2021-06-28 23:42:04 -04:00
JJTech0130
d3d43c66f4
added clang 11 and 12 support
2021-06-25 13:02:09 -04:00
Ariel Abreu
4fbf800df4
FIx build with older clang versions
...
This has been tested with Clang 7, but Clang 6 should work as well.
2021-06-24 23:22:26 -04:00
Ariel Abreu
4fd969bf1e
Implement __simple_vsnprintf
...
...and use it in the various printing functions, instead of `__simple_vsprintf`. This fixes some buffer overflow issues with really long messages (like for applications with long path names when logging the execv expansion message).
Also, install an empty `/Library/Preferences` directory.
2021-06-22 08:13:45 -04:00
Ariel Abreu
39d818146f
Update cocotron
2021-06-13 09:17:45 -04:00
Ariel Abreu
6e269146cb
Make Darling compatible with musl libc
...
Also update Cocotron
2021-06-12 22:25:17 -04:00
Ariel Abreu
5c27e7e19a
Use a more compiler-specific header...
...
...for the compiler include path detection
This fixes include issues with musl libc
2021-06-12 17:09:41 -04:00
Ariel Abreu
eec85acce6
Include stdarg.h in xtracemig.c
2021-06-12 17:07:36 -04:00
Ariel Abreu
3761b3d7f1
Resolve absolute symlinks relative to the prefix
...
This requires a change in libelfloader to ensure the interpreter is resolved according to the Linux root and not the prefix.
2021-06-12 09:03:07 -04:00