Added x86_64 ELF64 relocation functions for the bootloader. All that's left to do now is handle the 64-bit load address properly.
This commit is contained in:
@@ -154,7 +154,7 @@ typedef struct image_queue_t {
|
||||
|
||||
#define STRING(image, offset) ((char *)(&(image)->strtab[(offset)]))
|
||||
#define SYMNAME(image, sym) STRING(image, (sym)->st_name)
|
||||
#define SYMBOL(image, num) ((struct Elf32_Sym *)&(image)->syms[num])
|
||||
#define SYMBOL(image, num) (&(image)->syms[num])
|
||||
#define HASHTABSIZE(image) ((image)->symhash[0])
|
||||
#define HASHBUCKETS(image) ((unsigned int *)&(image)->symhash[2])
|
||||
#define HASHCHAINS(image) ((unsigned int *)&(image)->symhash[2+HASHTABSIZE(image)])
|
||||
|
||||
Reference in New Issue
Block a user