Gold linker support for entire source tree

This commit is contained in:
Anton Kuijsten
2013-06-11 19:08:05 +00:00
committed by Lionel Sambuc
parent 3d257f8073
commit 1d71e39b73
36 changed files with 4653 additions and 12 deletions

View File

@@ -15,7 +15,13 @@ LDADD+= -ltimers -lsys -lexec -lminlib -L/usr/lib
LINKERSCRIPT= ${.CURDIR}/arch/${MACHINE_ARCH}/kernel.lds
.if ${HAVE_GOLD:U} != ""
GOLDLINKERSCRIPT=${LINKERSCRIPT}
LDFLAGS+= -Wl,--allow-multiple-definition
CFLAGS += -fno-common
.else
LDFLAGS+= -T ${LINKERSCRIPT}
.endif
LDFLAGS+= -nostdlib
CFLAGS += -fno-stack-protector