ARM32: Only use 4K pages

Turns out some linkers have set page size to 64K on ARM32 aswell
so apply the same fix as ARM64

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
Callum Farmer 2023-07-06 19:16:32 +01:00 committed by Nigel Croxon
parent 5df47d3527
commit fb58e92621
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ ifeq ($(ARCH),arm)
CFLAGS += -marm
endif
ifeq ($(ARCH),aarch64)
ifneq (,$(filter $(ARCH),aarch64 arm))
LDFLAGS += -z common-page-size=4096
LDFLAGS += -z max-page-size=4096
endif

View File

@ -27,7 +27,7 @@ SECTIONS
} =0
_reloc_vsize = _evreloc - _reloc;
_reloc_size = _ereloc - _reloc;
. = ALIGN(4096);
. = ALIGN(65536);
_data = .;
.dynamic : { *(.dynamic) }
. = ALIGN(4096);