mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-27 15:24:54 +00:00
build(trp): sort sections by alignment by default
This change forces LD to sort all input sections by alignment when allocating them within an output section. This is done in some places explicitly in the linker scripts today, but this makes sure we don't miss any easy targets. Change-Id: Ife89a8bb9e592b55c761d9a3dfefc2aeeb07802f Signed-off-by: Chris Kay <chris.kay@arm.com>
This commit is contained in:
parent
3cad06b351
commit
2ed0936dd0
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ RMM_SOURCES += services/std_svc/rmmd/trp/trp_entry.S \
|
||||||
|
|
||||||
RMM_DEFAULT_LINKER_SCRIPT_SOURCE := services/std_svc/rmmd/trp/linker.ld.S
|
RMM_DEFAULT_LINKER_SCRIPT_SOURCE := services/std_svc/rmmd/trp/linker.ld.S
|
||||||
|
|
||||||
|
ifneq ($(findstring gcc,$(notdir $(LD))),)
|
||||||
|
RMM_LDFLAGS += -Wl,--sort-section=alignment
|
||||||
|
else ifneq ($(findstring ld,$(notdir $(LD))),)
|
||||||
|
RMM_LDFLAGS += --sort-section=alignment
|
||||||
|
endif
|
||||||
|
|
||||||
# Include the platform-specific TRP Makefile
|
# Include the platform-specific TRP Makefile
|
||||||
# If no platform-specific TRP Makefile exists, it means TRP is not supported
|
# If no platform-specific TRP Makefile exists, it means TRP is not supported
|
||||||
# on this platform.
|
# on this platform.
|
||||||
|
|
Loading…
Add table
Reference in a new issue