This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: bfd/elfnn-aarch64, veneer stub alignment
- From: Nick Clifton <nickc at redhat dot com>
- To: Pekka Seppänen <pexu at kapsi dot fi>, binutils at sourceware dot org
- Date: Wed, 28 Feb 2018 14:04:36 +0000
- Subject: Re: bfd/elfnn-aarch64, veneer stub alignment
- Authentication-results: sourceware.org; auth=none
- References: <03417514908a935571ad62f976f354d7@kapsi.fi>
Hi Pekka,
> Is is possible to set the minimum alignment for the generated veneers?
No.
> should the veneer stub land on a word (i.e. 4 byte) aligned address,
> things might not go so well.
Indeed.
Please could you file a bug report for this problem using the binutils
bugzilla system:
https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils
I have a patch to fix the problem, (by enforcing an 8-byte alignment
for the long branch stubs) but I expect that it will raise complaints
from people, along the lines of: "that nop you insert for alignment
purposes is not needed on my system - I am not using hardware
alignment checking". So it may need to be re-evaluated and a command
line option added to control its behaviour...
Cheers
Nick