[PATCH users/roland/aarch64-elf-relro] ld: Support RELRO in aarch64-elf target

Roland McGrath mcgrathr@google.com
Mon Mar 24 20:28:32 GMT 2025


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.


More information about the Binutils mailing list