iPXE
|
Macros | |
#define | PROVIDE_SYMBOL(symbol) |
Provide a symbol within this object file. More... | |
#define | REQUEST_SYMBOL(symbol) __asm__ ( ".equ __request_" #symbol ", " #symbol ) |
Request a symbol. More... | |
#define | REQUIRE_SYMBOL(symbol) |
Require a symbol. More... | |
#define | REQUIRING_SYMBOL(symbol) __asm__ ( ".equ __requiring_symbol__, " #symbol ) |
Specify the file's requiring symbol. More... | |
#define | PROVIDE_REQUIRING_SYMBOL() |
Provide a file's requiring symbol. More... | |
#define PROVIDE_SYMBOL | ( | symbol | ) |
Provide a symbol within this object file.
symbol | Symbol name |
Definition at line 84 of file compiler.h.
#define REQUEST_SYMBOL | ( | symbol | ) | __asm__ ( ".equ __request_" #symbol ", " #symbol ) |
Request a symbol.
symbol | Symbol name |
Request a symbol to be included within the link. If the symbol cannot be found, the link will succeed anyway.
Definition at line 101 of file compiler.h.
#define REQUIRE_SYMBOL | ( | symbol | ) |
Require a symbol.
symbol | Symbol name |
Require a symbol to be included within the link. If the symbol cannot be found, the link will fail.
To use this macro within a file, you must also specify the file's "requiring symbol" using the REQUIRING_SYMBOL() or PROVIDE_REQUIRING_SYMBOL() macros.
Definition at line 121 of file compiler.h.
#define REQUIRING_SYMBOL | ( | symbol | ) | __asm__ ( ".equ __requiring_symbol__, " #symbol ) |
Specify the file's requiring symbol.
symbol | Symbol name |
REQUIRE_SYMBOL() works by defining a dummy relocation record against a nominated "requiring symbol". The presence of the nominated requiring symbol will drag in all of the symbols specified using REQUIRE_SYMBOL().
Definition at line 140 of file compiler.h.
#define PROVIDE_REQUIRING_SYMBOL | ( | ) |
Provide a file's requiring symbol.
If the file contains no symbols that can be used as the requiring symbol, you can provide a dummy one-byte-long symbol using PROVIDE_REQUIRING_SYMBOL().
Definition at line 158 of file compiler.h.