Skip to content

Commit

Permalink
Handle relocation type R_X86_64_REX_GOTPCRELX for binary rewriting of
Browse files Browse the repository at this point in the history
statically linked binaries on x86-64
  • Loading branch information
mxz297 committed Feb 17, 2019
1 parent 4a1c1e8 commit 967edfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions symtabAPI/src/emitElfStatic-x86.C
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ bool emitElfStatic::archSpecificRelocation(Symtab *, Symtab *, char *targetData,
break;
case R_X86_64_PLT32:
case R_X86_64_PC32:
case R_X86_64_REX_GOTPCRELX:
fieldSize = sizeof(Elf64_Word);
relocation = symbolOffset + addend - relOffset;
break;
Expand Down

0 comments on commit 967edfc

Please sign in to comment.