[PATCH users/roland/aarch64-elf-relro] ld: Support RELRO in aarch64-elf target
Richard Earnshaw (lists)
Richard.Earnshaw@arm.com
Tue Mar 25 10:58:20 GMT 2025
On 24/03/2025 20:28, Roland McGrath wrote:
> On Mon, Mar 24, 2025 at 9:03 AM Richard Earnshaw (lists)
> <Richard.Earnshaw@arm.com> wrote:
>> On 21/03/2025 02:30, Roland McGrath wrote:
>>> This brings aarch64-elf targets in line with other *-elf targets
>>> (x86_64-elf, riscv64-elf, etc.). No testsuite failures appeared
>>> in my build for --target=aarch64-elf.
>>
>> What page size was your platform using? I'm guessing 4k, but it would be interesting to know if this is correct on systems that use 16k or 64k pages.
>
> What platform? I ran the ld test suite in a build for
> --target=aarch64-elf as I said. There is no particular target
> platform involved in that.
>
> The linker script bits enabled for RELRO support all use
> CONSTANT(COMMONPAGESIZE) and CONSTANT(MAXPAGESIZE), so they should do
> the right thing regardless of which values you're using for those
> parameters.
When you said "brings aarch64-elf targets in line with other *-elf targets (x86_64-elf, riscv64-elf, etc.)", I hadn't realized that it was specifically the *-elf configs you were referring to and not just any aarch64 platform using ELF formats. I now see we were already using this in aarch64linux.sh (and most of the others).
So this is OK.
Apologies for the confusion.
R.
More information about the Binutils
mailing list