This is an archive of the discontinued LLVM Phabricator instance.

Do not create R_X86_64_32S in dyna relo tbl
AcceptedPublic

Authored by shenhan on Mar 28 2018, 12:21 PM.

Details

Summary

We have a case that creates in the dynamic relocation table an R_X86_64_32S entry, which is not a valid dynamic relocation type at all.

Fixed by properly handle this in the back end.

BUG

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

shenhan created this revision.Mar 28 2018, 12:21 PM
ruiu accepted this revision.Mar 28 2018, 12:30 PM

LGTM

ELF/Arch/X86_64.cpp
160

Please use clang-format. I believe that clang-format would align them vertically like before.

This revision is now accepted and ready to land.Mar 28 2018, 12:30 PM
shenhan updated this revision to Diff 140641.Apr 2 2018, 9:52 AM
shenhan marked an inline comment as done.

clang-format the changed lines in X86_64.cpp

ruiu added a comment.Apr 2 2018, 10:24 AM

LGTM'ed already. Please commit.

MaskRay added a subscriber: MaskRay.Apr 4 2018, 2:59 PM
MaskRay added inline comments.
test/ELF/x86-64-reloc-32s.s
10

space between , and @

espindola accepted this revision.Apr 6 2018, 9:13 AM

LGTM, but it needs to be rebased now.

Do you have commit access?