diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-07-11 17:32:32 +0200 |
---|---|---|
committer | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-10-12 08:58:04 +0200 |
commit | 399e16b3f77cda49e6a92af401415f6e8f4faa0d (patch) | |
tree | c4d5cf7d3b6c8926249a2027bbecb193c3e6e18e /lib/libelf | |
parent | f06450c2e5909ff97e58007e7c602ed69a956dd9 (diff) | |
download | SLOF-399e16b3f77cda49e6a92af401415f6e8f4faa0d.zip SLOF-399e16b3f77cda49e6a92af401415f6e8f4faa0d.tar.gz SLOF-399e16b3f77cda49e6a92af401415f6e8f4faa0d.tar.bz2 |
Make net-snk and modules relocatable, too.
Cleaned up the toc-relative assembly of net-snk, fixed the Makefiles, save the
modules as ELF files instead of raw binaries, adjust the net-snk base address
and the load-base variable... a lot of changes were required to make the net-snk
and the snk modules relocatable, too. But now it should be possible to relocate
all files so that the firmware also runs with less than 256 MiB RAM.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'lib/libelf')
-rw-r--r-- | lib/libelf/elf64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libelf/elf64.c b/lib/libelf/elf64.c index dbf6b47..78b7697 100644 --- a/lib/libelf/elf64.c +++ b/lib/libelf/elf64.c @@ -360,6 +360,8 @@ elf_apply_rela64(void *file_addr, signed long offset, struct rela *relaentry, case R_PPC64_REL14: case R_PPC64_REL24: /* (S + A - P) >> 2 */ case R_PPC64_REL64: /* S + A - P */ + case R_PPC64_GOT16_DS: + case R_PPC64_GOT16_LO_DS: // printf("\t\tignoring relocation type %i\n", // ELF_R_TYPE(relaentry->r_info)); break; |