diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-08-23 02:47:59 -0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-08-23 22:33:33 +0200 |
commit | 6ac9f47977a9fc1876979871eeb14f26ba1bdbe6 (patch) | |
tree | 49a04782109977087bb9adfea3feac51e073821e /config.mk | |
parent | 2ed0869d30602eb660569eababb8fedff36bd23a (diff) | |
download | u-boot-imx-6ac9f47977a9fc1876979871eeb14f26ba1bdbe6.zip u-boot-imx-6ac9f47977a9fc1876979871eeb14f26ba1bdbe6.tar.gz u-boot-imx-6ac9f47977a9fc1876979871eeb14f26ba1bdbe6.tar.bz2 |
start a linker script helper file
Start a common header file for common linker script code (such as
workarounds for older linkers) rather than doing this in the build system.
As fallout, we no longer execute the linker every time config.mk is
included by a build file (which can easily be 70+ times), but rather only
execute it once.
This also fixes a bug in the major version checking by creating a macro to
easily compare versions and keep people from making the same common
mistake (forgetting to check major and minor together).
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -171,16 +171,6 @@ ifneq ($(TEXT_BASE),) LDFLAGS += -Ttext $(TEXT_BASE) endif -# Special flags for CPP when processing the linker script -# Linker versions prior to 2.16 don't understand the builting -# functions SORT_BY_ALIGNMENT() and SORT_BY_NAME(), so disable these -ifeq ($(shell $(LD) -v | \ - sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\) .*/[ \1 -lt 2 ] || [ \2 -lt 16 ] \&\& echo old_ld/p' | \ - sh),old_ld) -LDPPFLAGS += -D'SORT_BY_ALIGNMENT(x)=x' -D'SORT_BY_NAME(x)=x' -endif - - # Location of a usable BFD library, where we define "usable" as # "built for ${HOST}, supports ${TARGET}". Sensible values are # - When cross-compiling: the root of the cross-environment |