This is the mail archive of the binutils@sourceware.org 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


Sterling,

Sterling Augustine wrote:
> It seems likely to me that I could construct a case that made for a
> failure even after this patch is applied.
> 
> The real bug is in the linker relaxation mechanism for not honoring
> the section's alignment request. Linking should not change the
> alignment of the subsection, without regard to special Xtensa
> extensions--that violates Elf semantics.

FWIW, I believe David looked at doing a linker fix, but found it
more complicated than he liked, and preferred Max's simpler patch.

-Marc


> Nonetheless, as the fix is likely to modify the linker so that the
> alignment of the section is propagated to the first basic block,
> pre-empting that by having the assembler do it is probably OK. So I
> approve this patch.
> 
> Now would be a good time to get write-after-approval permission, so
> you can check this in yourself.


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