Skip to content

Commit

Permalink
* src/arch-s390.c (s390_prelink_conflict_rela): For R_390_IRELATIVE,
Browse files Browse the repository at this point in the history
	always use that relocation type in the conflict section.


git-svn-id: http://sourceware.org/svn/prelink@209 94c539fb-cf18-0410-b60f-edeeb537fa16
  • Loading branch information
jakub committed Oct 5, 2013
1 parent b6bceb1 commit 79cc642
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions trunk/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2013-10-05 Jakub Jelinek <[email protected]>

* src/arch-s390.c (s390_prelink_conflict_rela): For R_390_IRELATIVE,
always use that relocation type in the conflict section.

2013-10-01 Jakub Jelinek <[email protected]>

* testsuite/ifunc.h (IFUNC_ASM): Add s390x and s390 version.
Expand Down
5 changes: 4 additions & 1 deletion trunk/src/arch-s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,14 @@ s390_prelink_conflict_rela (DSO *dso, struct prelink_info *info,
ret->r_info = GELF_R_INFO (0, R_390_IRELATIVE);
break;
case R_390_32:
case R_390_IRELATIVE:
ret->r_addend = (Elf32_Sword) value;
if (conflict != NULL && conflict->ifunc)
ret->r_info = GELF_R_INFO (0, R_390_IRELATIVE);
break;
case R_390_IRELATIVE:
ret->r_addend = (Elf32_Sword) value;
ret->r_info = GELF_R_INFO (0, R_390_IRELATIVE);
break;
case R_390_PC32:
ret->r_addend = (Elf32_Sword) (value - rela->r_offset);
break;
Expand Down

0 comments on commit 79cc642

Please sign in to comment.