serenity/Toolchain/Patches
Tim Schumacher 292398b585 Toolchain: Load x64 executables at a higher address
Serenity defines a protected range of memory that must not be mmapped,
and is apparently reserved for kernel tasks. In this case, the protected
range is anything below 0x800000.

However, in its default setting, binutils chooses the memory address
0x400000 as the mapping address for executables that do not have PIE
enabled, resulting in mmap being unable to map the file unless the load
address has been overwritten at link time or if it's a PIE.

To mitigate this, move the default base address somewhere outside of
that range (and preferably not anywhere close near the beginning of the
useable virtual memory space, to avoid running into it during sequential
allocations).
2021-11-14 22:25:15 +01:00
..
binutils.patch Toolchain: Load x64 executables at a higher address 2021-11-14 22:25:15 +01:00
gcc.patch Toolchain: Enough to make rebuild-toolchain aarch64 work 2021-08-28 14:43:07 +01:00
gdb.patch Toolchain: Build aarch64-gdb for cross-debugging on x86 2021-09-07 12:58:46 +02:00
llvm.patch Toolchain: Add aligned allocation support to libc++ 2021-11-14 16:46:21 +00:00