This is an archive of the discontinued LLVM Phabricator instance.

Simplify AHL handling
AbandonedPublic

Authored by rafael on Mar 29 2016, 3:36 PM.

Details

Reviewers
atanasyan
Summary

This simplifies a few things

  • Read the value as early as possible, instead of passing a pointer to the location.
  • Print the warning for missing pair close to where we find out it is missing.

This is not a complete nop for the case where there is no matching relocation. We now read the high part of the addend. Note that we were already doing that when creating a got entry, but not when computing relocations.

According to the spec (4-17 at ftp://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf) each high relocation *must* have a matching lo, so this is hopefully OK.

Diff Detail

Event Timeline

rafael updated this revision to Diff 51992.Mar 29 2016, 3:36 PM
rafael retitled this revision from to Simplify AHL handling.
rafael updated this object.
rafael added a reviewer: atanasyan.
rafael added a subscriber: llvm-commits.
rafael abandoned this revision.Mar 29 2016, 4:01 PM

Never mind, I was able to make this a nop.