Post-relocation functions use the generic table mechanism.

This commit is contained in:
Michael Brown
2005-04-27 12:10:24 +00:00
parent d2d4978f4f
commit b9e72856b6
3 changed files with 8 additions and 10 deletions

View File

@@ -10,13 +10,12 @@ struct post_reloc_fn {
};
/* Use double digits to avoid problems with "10" < "9" on alphabetic sort */
#define POST_RELOC_LIBRM "00"
#define POST_RELOC_LIBRM 00
/* Macro for creating a post-relocation function table entry */
#define POST_RELOC_FN( post_reloc_order, post_reloc_func ) \
static struct post_reloc_fn post_reloc_functions \
__attribute__ (( used, __section__( ".post_reloc_fns." \
post_reloc_order ) )) = { \
#define POST_RELOC_FN( order, post_reloc_func ) \
static struct post_reloc_fn PREFIX_OBJECT(post_reloc_fn__) \
__attribute__ (( used, __table_section(post_reloc_fn,order) )) = {\
.post_reloc = post_reloc_func, \
};