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: matz at suse dot de
Subject: [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning
Date: Tue, 30 May 2023 16:22:00 +0000

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

--- Comment #2 from Michael Matz <matz at suse dot de> ---
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.

In _this_ specific case everything works out and the resulting alignment of
'com2_' is 64.  But that might not always be possible, which I guess is the
reason for the warning in the first place.  And changing the wording to suggest
that the bigger alignment is actually used always is then misleading.

So one point for not changing the warning :)

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