[PATCH] D43383: [llvm-mc] - Produce R_X86_64_PLT32 for "call/jmp foo".

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 06:02:15 PST 2018


grimar created this revision.
grimar added reviewers: espindola, craig.topper.
Herald added subscribers: arichardson, emaste.

This is PR36370,

For instructions like call foo and jmp foo patch changes
relocation produced from R_X86_64_PC32 to R_X86_64_PLT32.
Relocation can be used as a marker for 32-bit PC-relative branches.
Linker will reduce PLT32 relocation to PC32 if function is defined locally.

Not sure who should be reviewer for that.

Note: with that patch few LLD testcases are failing atm,
but since it is independent, I plan to post patch for them in a separate
review.


https://reviews.llvm.org/D43383

Files:
  lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
  lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
  lib/Target/X86/MCTargetDesc/X86FixupKinds.h
  lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
  lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
  lib/Target/X86/MCTargetDesc/X86WinCOFFObjectWriter.cpp
  test/CodeGen/X86/cmp.ll
  test/CodeGen/X86/fma.ll
  test/CodeGen/X86/x86-interrupt_cc.ll
  test/MC/ELF/basic-elf-64.s
  test/MC/ELF/ifunc-reloc.s
  test/MC/ELF/weak-diff.s
  test/MC/ELF/weak-relocation.s
  test/MC/ELF/weakref-reloc.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43383.134599.patch
Type: text/x-patch
Size: 12216 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180216/7dbc20d8/attachment.bin>


More information about the llvm-commits mailing list