summaryrefslogtreecommitdiffstats
path: root/arch/s390/tools/relocs.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/tools/relocs.c')
-rw-r--r--arch/s390/tools/relocs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/tools/relocs.c b/arch/s390/tools/relocs.c
index 30a732c808..a74dbd5c98 100644
--- a/arch/s390/tools/relocs.c
+++ b/arch/s390/tools/relocs.c
@@ -280,7 +280,7 @@ static int do_reloc(struct section *sec, Elf_Rel *rel)
case R_390_GOTOFF64:
break;
case R_390_64:
- add_reloc(&relocs64, offset);
+ add_reloc(&relocs64, offset - ehdr.e_entry);
break;
default:
die("Unsupported relocation type: %d\n", r_type);