[PATCH] Don't print (PLT) on ARM

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 08:50:56 PDT 2016


Hello Renato, Rafael,

If it is any help, I think the only way you can generate R_ARM_PLT32
is with an old GNU assembler targeting a pre-ABI target. I'd be
surprised if llvm claimed any support for pre-ABI targets.

>From https://sourceware.org/binutils/docs/as/ARM_002dRelocations.html
"For compatibility with older toolchains the assembler also accepts
(PLT) after branch targets. On legacy targets this will generate the
deprecated `R_ARM_PLT32' relocation. On EABI targets it will encode
either the `R_ARM_CALL' or `R_ARM_JUMP24' relocation, as appropriate."

Peter

On 16 June 2016 at 16:37, Renato Golin <renato.golin at linaro.org> wrote:
> On 16 June 2016 at 16:10, Rafael EspĂ­ndola <llvm-commits at lists.llvm.org> wrote:
>> The R_ARM_PLT32 relocation is deprecated and is not produced by MC.
>>
>> This means that the code being deleted is dead from the .o point of
>> view and was making the .s more confusing.
>
> Hi Rafael,
>
> What if they came from an assembly file, would it still produce the
> PLT32 or change it to something else?
>
> cheers,
> --renato


More information about the llvm-commits mailing list