bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/30499] reword "alignment ... is smaller than alignment ..." warn


From: nickc at redhat dot com
Subject: [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning
Date: Mon, 05 Jun 2023 10:37:39 +0000

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

Nick Clifton <nickc at redhat dot com> changed:

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

--- Comment #3 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Michael Matz from comment #2)
> Hmm, on reflection this proposed message might not actually be correct.
> Generally one can't just increase the alignment of random data symbols like
> here: they might be part of a larger object with known relative offsets, and
> changing the alignment of such data symbol will then break such knowledge.

Can this happen ?

More to the point, if a meta-object does contain sub-objects with their own
symbols, shouldn't the offsets of those sub-objects be computed by calculating
the difference between the symbol's address and the meta-object's start
address.  Rather than just by being pre-calculated to some fixed value ?

If it is possible however then maybe the message should be:

  warning: alignment 32 of symbol `com2_' in test2.o changed to 64 to match
test1.o 
  warning: beware: this might break code that relies upon the alignment being
32.

-- 
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]