diff options
author | Christian Eggers <ceggers@arri.de> | 2020-01-27 14:30:43 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-10 09:42:43 +0100 |
commit | 07c4c069475fec43bd99e021afb3839d7b27fd5a (patch) | |
tree | 79c485537d7d537bbc567dce75fef9dc26081779 /arch/mips | |
parent | 9fcd7fcd5c6028a77b6339c48a0d90f7f2dd3955 (diff) | |
download | barebox-07c4c069475fec43bd99e021afb3839d7b27fd5a.tar.gz barebox-07c4c069475fec43bd99e021afb3839d7b27fd5a.tar.xz |
images: Use separate LDFLAGS for PBL
When setting CONFIG_PBL_RELOCATABLE=y (selected by PBL_MULTI_IMAGES) and
CONFIG_RELOCATABLE=n (trying to reduce image size), the PBL is also
linked with "-static" instead of "-pie". The result is a non-working
PBL.
As a side effect, also get rid of erroneous "-Map barebox.map" when
linking the PBL.
Only changed for ARM, are any other platforms affected?
Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 72b77adc4c..486dfd8253 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -44,6 +44,7 @@ endif LDFLAGS += $(ldflags-y) -m $(ld-emul) LDFLAGS_barebox += $(ldflags-y) +LDFLAGS_pbl += $(ldflags-y) # # CPU-dependent compiler/assembler options for optimization. |