bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm


From: nickc at redhat dot com
Subject: [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build
Date: Mon, 06 Jan 2025 12:45:40 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=32435

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com

--- Comment #20 from Nick Clifton <nickc at redhat dot com> ---
(In reply to John Paul Adrian Glaubitz from comment #19)

> It depends. If it affects too many projects, a bug can become a feature.

Maybe.  But in this case we only have one known tool that was affected
(modpost).  The maintainer for that tool has already created a patch to fix the
problem (thanks Masahiro), and the change not only does not break the ELF
specification but also results in smaller object file sizes, which is a benefit
to all builders.  So to me I think that Jan's patch was correct and should not
be reverted.

Plus, if I have read Jan's v2 patch correctly, sections in object files will
still be aligned, but just aligned to the architecture's minimum file
alignment, rather than the sections specified alignment.  This means that the
sections can still be fetched using aligned reads, and so the problem of a bus
error resulting from an unaligned read should no longer occur.

So all in all, I do not see that there is anything else that needs to be done
here.

If it turns out that there are other tools that do need fully aligned sections
in object files then we can do something about it when they report problems too
us.  (I suspect that there are no such tools).  It would not be too hard to add
a new command line option to force full alignment for sections in object files,
and/or a configure time option to control the alignment decisions.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]