This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Error for out-of-range R_X86_64_[REX_]GOTPCRELX
ClosedPublic

Authored by MaskRay on Dec 14 2020, 4:19 PM.

Diff Detail

Event Timeline

MaskRay created this revision.Dec 14 2020, 4:19 PM
MaskRay requested review of this revision.Dec 14 2020, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 14 2020, 4:19 PM
grimar accepted this revision.Dec 15 2020, 12:27 AM

LGTM

lld/test/ELF/x86-64-gotpc-err.s
9

I'd perhaps use --implicit-check-not=error: instead. It feels a bit safer because doesn't depend on the order.
Though I don't really think that the order of this error messages might change too.

This revision is now accepted and ready to land.Dec 15 2020, 12:27 AM

Looks good to me aside from @grimar's comment.

lld/test/ELF/x86-64-gotpc-err.s
9

I guess in theory something else could cause an error before or between the two existing errors. Do we really care though?

MaskRay added inline comments.Dec 15 2020, 9:14 AM
lld/test/ELF/x86-64-gotpc-err.s
9

That's too unlikely. I'll stick with the current version.

This revision was landed with ongoing or failed builds.Dec 15 2020, 9:20 AM
This revision was automatically updated to reflect the committed changes.