mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
arm: prevent 64K default alignment of text segment
This commit is contained in:
@@ -11,4 +11,12 @@ SPECS += 32bit
|
||||
#
|
||||
CC_OPT += -Wno-psabi
|
||||
|
||||
#
|
||||
# By default, the linker produces ELF binaries where the test segment is
|
||||
# aligned to the largest page size. On ARM this is 64K. As a result, the
|
||||
# produced binaries contain almost 64K zeros preceding the text segment.
|
||||
# The patch enforces the text segment to be aligned to 4K instead.
|
||||
#
|
||||
LD_MARCH += -z max-page-size=0x1000
|
||||
|
||||
include $(call select_from_repositories,mk/spec/32bit.mk)
|
||||
|
||||
Reference in New Issue
Block a user