[patch][pr10367] Add support for offsets in GlobalAlias

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue May 20 07:21:40 PDT 2014


Thanks Reid and Tim.

An updated patch is attached. The main changes are
* Update documentation.
* Make it support 64 bit offsets.
* Handle offsets pointing out of objects and because of that, use a
signed offset.
* Updated globalopt to be aware of offsets.

The reason I decided to go with Reid's suggestion is that is valid on
ELF (and on some special cases on MachO) to have a relocation that
points outside of an object. Given that it seems natural to allow a
name (alias) for things like "the byte immediately after this string".

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 17409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140520/1459c335/attachment.obj>


More information about the llvm-commits mailing list