mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:37:35 +00:00
Toolchain: Enable RELRO support for AArch64
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.
This commit is contained in:
parent
07918b79b7
commit
02fe3feb71
2 changed files with 133 additions and 44 deletions
|
@ -6,3 +6,11 @@ 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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue