From ef3e178ab588d75208e52d8db1cf83af484c2077 Mon Sep 17 00:00:00 2001 From: benno Date: Tue, 22 Jan 2013 04:14:27 +0000 Subject: Fix linking of loader.efi. gcc handles -symbolic by passing -Bsymbolic through to ld. clang ignores -symbolic and thus invokes ld without -Bsymbolic which leads to some symbols not being properly linked in loader.efi. Fix this by using -Wl,-Bsymbolic which passes -Bsymbolic to ld in both the gcc and clang cases. Approved by: rpaulo --- sys/boot/i386/efi/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/boot/i386') diff --git a/sys/boot/i386/efi/Makefile b/sys/boot/i386/efi/Makefile index 95c219d..25df59b 100644 --- a/sys/boot/i386/efi/Makefile +++ b/sys/boot/i386/efi/Makefile @@ -36,7 +36,7 @@ FILES= loader.efi FILESMODE_loader.efi= ${BINMODE} LDSCRIPT= ${.CURDIR}/ldscript.i386 -LDFLAGS= -Wl,-T${LDSCRIPT} -shared -symbolic +LDFLAGS= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared ${PROG}: ${LDSCRIPT} -- cgit v1.1