diff options
author | Thomas Huth <thuth@redhat.com> | 2018-06-13 17:58:16 +0200 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2018-07-02 14:16:20 +1000 |
commit | 031cb1b921694f0c8676e0b478a3dccbae9d1639 (patch) | |
tree | 33f0cf5b7d462a28feff6b3e6930ad878a771bb7 /lib/libelf | |
parent | 7d37babcfa48a6eb08e726a8d13b745cb2eebe1c (diff) | |
download | SLOF-031cb1b921694f0c8676e0b478a3dccbae9d1639.zip SLOF-031cb1b921694f0c8676e0b478a3dccbae9d1639.tar.gz SLOF-031cb1b921694f0c8676e0b478a3dccbae9d1639.tar.bz2 |
libelf: Add REL32 to the list of ignored relocations
When compiling SLOF with GCC 8.1, I currently get a lot of these errors:
ERROR: Unhandled relocation (A) type 26
Type 26 is the "relative 32-bit" relocation. We can simply ignore it
(like the other relative relocations - REL14, REL24 and REL64) to
shut up these error messages.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libelf')
-rw-r--r-- | lib/libelf/elf64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libelf/elf64.c b/lib/libelf/elf64.c index 37e9c10..775cdee 100644 --- a/lib/libelf/elf64.c +++ b/lib/libelf/elf64.c @@ -362,6 +362,7 @@ elf_apply_rela64(void *file_addr, signed long offset, struct rela *relaentry, case R_PPC64_TOC16_DS: /* (S + A - .TOC) >> 2 */ case R_PPC64_REL14: case R_PPC64_REL24: /* (S + A - P) >> 2 */ + case R_PPC64_REL32: /* S + A - P */ case R_PPC64_REL64: /* S + A - P */ case R_PPC64_GOT16_DS: case R_PPC64_GOT16_LO_DS: |