diff options
author | Joshua Oreman | 2009-08-02 23:01:36 +0200 |
---|---|---|
committer | Marty Connor | 2009-11-21 02:27:25 +0100 |
commit | 572e61754adca6739b17e8604da964ce2aa98eef (patch) | |
tree | a046b319d7b7048df1884e0d884a678acea6e2bf /src/arch/x86/scripts/efi.lds | |
parent | [pxebs] Consistently interpret PXE type field as little-endian (diff) | |
download | ipxe-572e61754adca6739b17e8604da964ce2aa98eef.tar.gz ipxe-572e61754adca6739b17e8604da964ce2aa98eef.tar.xz ipxe-572e61754adca6739b17e8604da964ce2aa98eef.zip |
[linker] Expand and correct symbol requirement macros
REQUIRE_SYMBOL() formerly used a formulation of symbol requirement
that would allow a link to succeed despite lacking a required symbol,
because it did not introduce any relocations. Fix by renaming it to
REQUEST_SYMBOL() (since the soft-requirement behavior can be useful)
and add a REQUIRE_SYMBOL() that truly requires.
Add EXPORT_SYMBOL() and IMPORT_SYMBOL() for REQUEST_SYMBOL()-like
behavior that allows one to make use of the symbol, by combining a
weak external on the symbol itself with a REQUEST_SYMBOL() of a second
symbol.
Signed-off-by: Marty Connor <mdc@etherboot.org>
Diffstat (limited to 'src/arch/x86/scripts/efi.lds')
-rw-r--r-- | src/arch/x86/scripts/efi.lds | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/x86/scripts/efi.lds b/src/arch/x86/scripts/efi.lds index aac31056..7525b81b 100644 --- a/src/arch/x86/scripts/efi.lds +++ b/src/arch/x86/scripts/efi.lds @@ -101,5 +101,6 @@ SECTIONS { *(.eh_frame.*) *(.rel) *(.rel.*) + *(.discard) } } |