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

@@ -39,8 +39,10 @@ extern char _max_align[];
/* Linker symbols */
extern char _text[];
extern char _end[];
extern struct post_reloc_fn post_reloc_fns[];
extern struct post_reloc_fn post_reloc_fns_end[];
/* Post-relocation function table */
static struct post_reloc_fn post_reloc_fns[0] __table_start(post_reloc_fn);
static struct post_reloc_fn post_reloc_fns_end[0] __table_end(post_reloc_fn);
static void relocate ( void ) {
unsigned long addr, eaddr, size;