[PATCH] ARM: force linker to use PIC veneers

Ard Biesheuvel ard.biesheuvel at linaro.org
Thu Mar 26 05:20:16 PDT 2015


On 26 March 2015 at 12:36, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> On Wed, Mar 25, 2015 at 10:46:14AM +0000, Dave Martin wrote:
>> Hmmm, you seem to be right.
>>
>> Thumb has no bx <label> instruction, and veneers introduced by ld are
>> always ARM code, so this looks tricky to avoid without patching ld.
>>
>> As you observe, this only impacts large kernels anyway.
>>
>> So,
>>
>> Reviewed-by: Dave Martin <Dave.Martin at arm.com>
>
> Someone needs to check what the result is like for older CPUs too.
>

Any specific concerns? The --pic-veneer switch dates back to 2009, so
it's been around for a while



More information about the linux-arm-kernel mailing list