Commit Graph

243 Commits

Author SHA1 Message Date
Mike Hommey
8ef022ae33 Remove unused broken clone function
The base class doesn't have a clone member function, so the code was
never valid. As it was unused, that didn't cause problems until clang
caught this earlier than instantiation in
https://github.com/llvm/llvm-project/pull/84050
2024-11-02 13:43:05 -07:00
Andrew Hyatt
6cad9309cd Disable warnings 2022-11-24 02:01:37 -05:00
Ariel Abreu
37ee7bd4a6
Use libexecinfo when it's available
This is necessary for musl libc systems.
2021-06-12 22:03:02 -04:00
Ariel Abreu
7c3ba59c54
Add a workaround for some libc's...
...with regards to `-fblocks`. They try to use `__block` as a variable name (which is illegal with `-fblocks`).

Should fix darlinghq/darling#931.
2021-02-17 21:51:50 -05:00
Thomas A
9fef19abd9 Use Generic Target 2020-09-26 22:25:24 -07:00
Ariel Abreu
55197a7077
Apply workaround for conflicting types when including mach-o headers
This workaround was copied from Darling's `platform-include/mach-o/{fat,loader}.h`
2020-05-13 22:45:19 -04:00
Ariel Abreu
55c3dd7697
Add a CMakeLists for as 2020-05-13 22:44:59 -04:00
Thomas A
9b9ef9cde8 cctools/ld64: Add ARM64 support 2020-04-17 17:10:41 -07:00
Lubos Dolezel
eb9ad97331 Fix more build problems 2020-04-17 17:54:12 +02:00
Lubos Dolezel
3c541ad72a Darling build 2020-04-17 16:59:28 +02:00
Lubos Dolezel
def5435990 Merge remote-tracking branch 'upstream/master' into HEAD 2020-04-17 16:44:55 +02:00
Thomas Pöchtrager
8d34d0fbb0
Merge pull request #80 from mstorsjo/sdk-ver
Fix the logic for the default fallback sdk version in ld64
2020-04-13 12:36:54 +02:00
Martin Storsjö
b909882f93 Fix the logic for the default fallback sdk version in ld64
The apple case for the default uses sysctl to get the kernel
version, which is a version number like 18.7.0, where the major
version, minus 4, is used for setting the minor version of
the macOS version number, translating 18.7.0 into 10.14.

The previous ld64-port specific case of trying to hardcode 10.5,
just ends up parsed as kernel version 10, i.e. 10.6, regardless of
which version the default string is set to.

Instead of passing the cctools/ld64-port specific default to the
kernel version parsing logic, just set the result of
parseVersionNumber32 as the version number.

Change the default to 10.6, which is what actually was set before
in practice.
2020-04-13 12:36:14 +03:00
Thomas Pöchtrager
fe91a8e6a2 Fix for https://github.com/tpoechtrager/osxcross/issues/222 2020-04-12 10:53:08 +02:00
Thomas Pöchtrager
da7e12751a Update fix_liblto.sh (for otool) 2020-03-24 12:42:18 +01:00
Thomas Pöchtrager
06ec0bf765 Remove no longer needed workaround 2020-03-22 22:05:56 +01:00
Thomas Pöchtrager
a78261d5b4 Attempt to fix travis build 2020-03-22 21:29:06 +01:00
Thomas Pöchtrager
35702aa0ce Silence compiler warning 2020-03-22 21:28:58 +01:00
Thomas Pöchtrager
dab693c2eb Fix a merge oversight 2020-03-22 16:34:44 +01:00
Thomas Pöchtrager
6c73d3127c Update autogenerated files 2020-03-22 16:18:21 +01:00
Thomas Pöchtrager
8bef2093b9 Build efitools 2020-03-22 16:17:56 +01:00
Thomas Pöchtrager
e6e0ca7904 Fix link order 2020-03-22 16:17:00 +01:00
Thomas Pöchtrager
ddd070162d Fix OpenBSD build 2020-03-22 13:52:21 +01:00
Thomas Pöchtrager
3d8ed37cfe Fix warning check 2020-03-22 13:52:15 +01:00
Thomas Pöchtrager
49b8b65f3d Precise OSXCross check a little more to avoid false positives 2020-03-22 12:47:33 +01:00
Thomas Pöchtrager
6c40ead59d [OSXCross] Silence 'operator new[]' warning when linking GCC libstdc++ statically 2020-03-21 22:24:13 +01:00
Thomas Pöchtrager
0f75213ae0 Build with -Wno-misleading-indentation 2020-03-21 22:23:52 +01:00
Thomas Pöchtrager
320e0b0295 Silence warning 2020-03-20 16:28:29 +01:00
Thomas Pöchtrager
80a127f521 Attempt to fix build error 2020-03-20 13:51:18 +01:00
Thomas Pöchtrager
11dc49ae17 Update README.md 2020-03-20 13:35:53 +01:00
Thomas Pöchtrager
466063c7f7 ld64 512.4 & cctools 949.0.1 (WIP) 2020-03-20 13:33:04 +01:00
Thomas Pöchtrager
606eb7dcb2 Fix for https://github.com/tpoechtrager/osxcross/issues/216#issuecomment-599044727 2020-03-14 17:51:11 +01:00
Thomas Pöchtrager
4e1faecce8 Fix LLVM trunk build
ld: error: duplicate symbol: dis_info
>>> defined at i386_disasm.c:1665
>>>            otool-i386_disasm.o:(dis_info)
>>> defined at arm_disasm.c:163
>>>            otool-arm_disasm.o:(.bss+0x8)

ld: error: duplicate symbol: dis_info
>>> defined at i386_disasm.c:1665
>>>            otool-i386_disasm.o:(dis_info)
>>> defined at arm64_disasm.c:62
>>>            otool-arm64_disasm.o:(.bss+0x0)
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
2020-03-11 19:49:44 +01:00
Thomas Pöchtrager
2ac55b7503 Silence warning on AArch64 too
Useless warning because it's silenced by default on all of their platforms
2020-02-22 22:13:44 +01:00
Thomas Pöchtrager
ae83e7fcde Fix for #74 2020-01-23 14:30:08 +01:00
Thomas Pöchtrager
aff98cdb9e arm64e 2020-01-07 16:26:07 +01:00
Thomas Pöchtrager
168e4ad2e0 arm64e 2020-01-07 16:24:49 +01:00
Thomas Pöchtrager
707ac80aa8 arm64e: Patch the header file instead of changing sources to avoid merge conflicts 2020-01-07 16:22:22 +01:00
Thomas Pöchtrager
23f21436e0
Merge pull request #76 from sbingner/master
Add arm64e patches from elucubratus
2020-01-07 15:34:58 +01:00
Sam Bingner
7c5dc14232 Add arm64e patches from elucubratus 2020-01-06 16:37:23 -10:00
Thomas Pöchtrager
f2890afb8a Fix LLVM trunk build 2019-12-29 20:44:50 +01:00
Thomas Pöchtrager
8239a5211b Add another missing change for Android 2019-11-06 18:21:03 +01:00
Thomas Pöchtrager
9fa76fb95a Add missing file 2019-11-06 17:56:26 +01:00
Thomas Pöchtrager
5e9c52005f Fixes to make cctools and ld64 work on Android 2019-11-06 17:54:58 +01:00
Thomas Pöchtrager
406ce466ac Fix building with older clang compilers 2019-11-04 20:25:36 +01:00
Thomas Pöchtrager
a889ea66b7 Fix Linux/AArch32 and iOS builds 2019-11-01 18:45:25 +01:00
Thomas Pöchtrager
c8def74264 Update README.md 2019-10-31 20:33:03 +01:00
Thomas Pöchtrager
bef74700f8 Revert "Make 'as' relocatable"
This reverts commit 5674c31aac.

I accidentally committed this again...
2019-10-31 20:29:29 +01:00
Thomas Pöchtrager
cfc428bc52 Update autogenerated files 2019-10-31 20:07:19 +01:00
Thomas Pöchtrager
a4f3a3e0ea ld64 450.3 & cctools 927.0.2 2019-10-31 20:06:41 +01:00