This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix alignment for the first section frag on xtensa

On Tue, Apr 22, 2014 at 3:57 AM, Max Filippov <> wrote:
> I'd be interested to see such test case.

The thing to remember is that the misaligned entry instruction is only
a symptom of the bug. The actual bug is that the section doesn't get

So, keeping in mind that I never repro'd the original problem, my
guess is that I could get the label "bar" unaligned below, with
something along these lines:

.align 8
....//lots of code requiring relaxation
//some kind of padding that doesn't include actual text, but can be
adjusted by relaxation

.global bar
//some code to ensure the current frag is closed.
.align 16 (should be greater than foo's alignment, and applies to the
entire section.)

I'd need to play with it a bit to get the details right.

The patch only applies to the frag where the alignment directive appears.

And, of course, I haven't written Xtensa code in years, so I may be
missing something.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]