mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
fix(build): don't generate build-id
1. build-id takes space in memory 2. in some cases for lto build linker decided to put new .note.gnu.build-id section before .text section. The result was non-working image, because entry point wasn't at __BLXX_START__ anymore. Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com> Change-Id: Id78ccbc51e5ef82296069444ab438a1964a74e78
This commit is contained in:
parent
49ba1df522
commit
304ad94b34
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -361,6 +361,7 @@ else ifneq ($(findstring gcc,$(notdir $(LD))),)
|
|||
|
||||
TF_LDFLAGS += -Wl,-z,common-page-size=4096 #Configure page size constants
|
||||
TF_LDFLAGS += -Wl,-z,max-page-size=4096
|
||||
TF_LDFLAGS += -Wl,--build-id=none
|
||||
|
||||
ifeq ($(ENABLE_LTO),1)
|
||||
ifeq (${ARCH},aarch64)
|
||||
|
@ -388,6 +389,7 @@ else
|
|||
|
||||
TF_LDFLAGS += -z common-page-size=4096 # Configure page size constants
|
||||
TF_LDFLAGS += -z max-page-size=4096
|
||||
TF_LDFLAGS += --build-id=none
|
||||
|
||||
# ld.lld doesn't recognize the errata flags,
|
||||
# therefore don't add those in that case.
|
||||
|
|
Loading…
Add table
Reference in a new issue