summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndrey Panov <rockford@yandex.ru>2017-05-11 20:54:15 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-17 08:18:20 +0200
commit333ff7b1e4c444df565c3e4bbec51da27add0076 (patch)
tree9610aa98b2fa66e56cc5eec2375fc725d84d9eab /Makefile
parent0d86982d3dbcde7ca958fffe3bc57850bc7f43d8 (diff)
downloadbarebox-333ff7b1e4c444df565c3e4bbec51da27add0076.tar.gz
Fix linking with new ld, based on u-boot
U-boot commit info: http://git.denx.de/?p=u-boot.git;a=commit;h=e391b1e64b0bd65709a28a4764afe4f32d408243 Signed-off-by: Andrey Panov <rockford@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 09be653..3b8d73d 100644
--- a/Makefile
+++ b/Makefile
@@ -306,6 +306,9 @@ AFLAGS := -D__ASSEMBLY__
LDFLAGS_barebox := -Map barebox.map
+# Avoid 'Not enough room for program headers' error on binutils 2.28 onwards.
+LDFLAGS_barebox += $(call ld-option, --no-dynamic-linker)
+
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)