]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[build] Use weak definitions instead of weak declarations
authorJoshua Oreman <oremanj@rwcr.net>
Thu, 27 May 2010 00:52:44 +0000 (17:52 -0700)
committerMichael Brown <mcb30@ipxe.org>
Thu, 27 May 2010 09:19:14 +0000 (10:19 +0100)
commit2aad3fab233f0235f9a8f677ae7bb402f1647eb6
treec4630d1f9e5a2c9d21b7018c63fe20878d1c00af
parentba27168c2e9122859f4d722445e0637a77aab19c
[build] Use weak definitions instead of weak declarations

This removes the need for inline safety wrappers, marginally reducing
the size penalty of weak functions, and works around an apparent
binutils bug that causes undefined weak symbols to not actually be
NULL when compiling with -fPIE (as EFI builds do).

A bug in versions of binutils prior to 2.16 (released in 2005) will
cause same-file weak definitions to not work with those
toolchains. Update the README to reflect our new dependency on
binutils >= 2.16.

Signed-off-by: Joshua Oreman <oremanj@rwcr.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
12 files changed:
README [deleted file]
src/arch/i386/include/pxe_call.h
src/arch/i386/interface/pxe/pxe_call.c
src/arch/i386/interface/pxeparent/pxeparent_dhcp.c
src/arch/i386/interface/syslinux/comboot_call.c
src/include/compiler.h
src/include/ipxe/dhcp.h
src/include/ipxe/sec80211.h
src/include/usr/autoboot.h
src/net/80211/net80211.c
src/net/udp/dhcp.c
src/usr/autoboot.c