mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-13 22:23:45 +00:00
arm: prevent 64K default alignment of text segment
This commit is contained in:
parent
2cbef82b61
commit
2127c8acf2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user