[PATCH] Skip MachO scattered relocations in RuntimeDyld.

Lang Hames lhames at gmail.com
Thu Aug 8 12:36:39 PDT 2013


Aaand I forgot to attach the patch. Here it is.

- Lang.


On Thu, Aug 8, 2013 at 12:35 PM, Lang Hames <lhames at gmail.com> wrote:

> Hi All,
>
> At the moment a scattered relocations will cause llvm-rtdyld to go off
> into the weeds and eventually assert while trying to look up a section that
> doesn't exist.
>
> Eventually we want to handle these relocations, but in practice they often
> aren't required. For example, section differences only matter if symbols
> are moved relative to one another, which RuntimeDyld doesn't do.
>
> This patch skips scattered relocations, which will unbreak some simple
> llvm-rtdyld use-cases while I work on proper support.
>
> Cheers,
> Lang.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130808/6c2e9063/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skip_scattered_relocations.patch
Type: application/octet-stream
Size: 2117 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130808/6c2e9063/attachment.obj>


More information about the llvm-commits mailing list