diff options
author | benno <benno@FreeBSD.org> | 2013-01-22 04:14:27 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2013-01-22 04:14:27 +0000 |
commit | ef3e178ab588d75208e52d8db1cf83af484c2077 (patch) | |
tree | 09570cecea7ab7c4799a25c564cc2da003719106 /sys | |
parent | 9ce6a82d5da13da50c33f3215399e9062026dc7b (diff) | |
download | FreeBSD-src-ef3e178ab588d75208e52d8db1cf83af484c2077.zip FreeBSD-src-ef3e178ab588d75208e52d8db1cf83af484c2077.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/boot/i386/efi/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
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} |