summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/include/relocate.h
diff options
context:
space:
mode:
authorMichael Brown2006-04-24 20:31:37 +0200
committerMichael Brown2006-04-24 20:31:37 +0200
commit832e86246b37c78466a5a30159bed48ed59eb811 (patch)
treec931cdff0738445ba4b5d432784ac11af323b35a /src/arch/i386/include/relocate.h
parent(librm_base-1b) is already an offset; no need to apply OFFSET(). (diff)
downloadipxe-832e86246b37c78466a5a30159bed48ed59eb811.tar.gz
ipxe-832e86246b37c78466a5a30159bed48ed59eb811.tar.xz
ipxe-832e86246b37c78466a5a30159bed48ed59eb811.zip
gcc is rather over-aggressive about optimising out static data structures
even when __atribute__ (( unused )) is correctly set...
Diffstat (limited to 'src/arch/i386/include/relocate.h')
-rw-r--r--src/arch/i386/include/relocate.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/i386/include/relocate.h b/src/arch/i386/include/relocate.h
index 5e87c693..d8002185 100644
--- a/src/arch/i386/include/relocate.h
+++ b/src/arch/i386/include/relocate.h
@@ -15,10 +15,10 @@ struct post_reloc_fn {
#define POST_RELOC_LIBRM 00
/* Macro for creating a post-relocation function table entry */
-#define POST_RELOC_FN( order, post_reloc_func ) \
- static struct post_reloc_fn PREFIX_OBJECT(post_reloc_fn__) \
- __table ( post_reloc_fn, order ) = { \
- .post_reloc = post_reloc_func, \
+#define POST_RELOC_FN( order, post_reloc_func ) \
+ struct post_reloc_fn PREFIX_OBJECT(post_reloc_fn__) \
+ __table ( post_reloc_fn, order ) = { \
+ .post_reloc = post_reloc_func, \
};
#endif