mirror of
https://github.com/RGBCube/serenity
synced 2026-01-19 01:31:00 +00:00
The BFD linker requires the `COMMONPAGESIZE` emulation parameter to be set in order to enable RELRO support for AArch64. As we are adding a custom `emulparams` file anyways, let's also tell LD that our ELF interpreter is called `/usr/lib/Loader.so`. This commit also removes some vestigial references to i686 SerenityOS. The one in `gas/configure.tgt` is still needed, as it also handles x86_64.
16 lines
455 B
Markdown
16 lines
455 B
Markdown
# Patches for binutils on SerenityOS
|
|
|
|
## `0001-Add-support-for-SerenityOS.patch`
|
|
|
|
Add support for SerenityOS
|
|
|
|
Teaches the assembler, BFD, and the linker about the SerenityOS target
|
|
triple.
|
|
|
|
We set '/' to not start a comment in GAS, as the QEMU port uses it for
|
|
division in constant expressions in assembly files (cf. as --divide).
|
|
|
|
`/usr/lib/Loader.so` is set as the default ELF interpreter.
|
|
|
|
On AArch64, we set `COMMONPAGESIZE` to enable RELRO support.
|
|
|