diff options
author | Ed Maste <emaste@FreeBSD.org> | 2018-04-19 20:58:09 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2018-04-19 20:58:09 +0000 |
commit | b25a46f7f75c5f28b4ee67a4b92dd5c2315bdd09 (patch) | |
tree | e20a45ad48f247febf8fe11eee34756858336040 /stand | |
parent | 3b05ffaf6fc768425b18cd88e8091ef0681abfaf (diff) | |
download | src-b25a46f7f75c5f28b4ee67a4b92dd5c2315bdd09.tar.gz src-b25a46f7f75c5f28b4ee67a4b92dd5c2315bdd09.zip |
Add support for linker-type-specific flags
r332090 added a LINKER_TYPE test to add the --no-rosegment flag when
linking the i386 loader components with lld. Instead, introduce a
general mechanism for setting LDFLAGS for a specific linker type,
and use it for --no-rosegment.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D14998
Notes
Notes:
svn path=/head/; revision=332794
Diffstat (limited to 'stand')
-rw-r--r-- | stand/i386/Makefile.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/stand/i386/Makefile.inc b/stand/i386/Makefile.inc index 788365bbdf30..3f0ae158ceb6 100644 --- a/stand/i386/Makefile.inc +++ b/stand/i386/Makefile.inc @@ -2,13 +2,9 @@ # # $FreeBSD$ -.sinclude <bsd.linker.mk> - LOADER_ADDRESS?=0x200000 LDFLAGS+= -nostdlib -.if defined(LINKER_TYPE) && ${LINKER_TYPE} == "lld" -LDFLAGS+= -Wl,--no-rosegment -.endif +LDFLAGS.lld+= -Wl,--no-rosegment # BTX components BTXDIR= ${BOOTOBJ}/i386/btx |