[llvm-commits] [PATCH] ARM/MC/ELF Relocation Stubs/Refactoring

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Nov 9 13:03:48 PST 2010


> The rationale for these is to support the various non-simple (i.e. not
> just a 32/64bit sequential blob) - relocation types mandated by the
> ARM architecture manual. There are over 100 of these relocation types,
> and selecting the actual ELF32_R_TYPE() field depends on the actual
> instruction sequence - and the most obvious way to do this is to
> examine the ELFSection& object directly.

Are they used? I am sure we haven't implement all the x86 relocations,
but elf writer is already fairly functional there. I would suggest
doing this one relocation at a time. And start with the simple ones
:-)

For example, first add support for a function that just calls an external one:

------
f:
bl g
------

Also, if only ARM needs support for fancier relocations, we should try
to avoid modifying other targets.

> Thanks!
> -jason
>

Cheers,
Rafael



More information about the llvm-commits mailing list