[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.
- [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning,
nickc at redhat dot com <=
- [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning, matz at suse dot de, 2023/06/05
- [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning, nickc at redhat dot com, 2023/06/06
- [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning, matz at suse dot de, 2023/06/06
- [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning, sam at gentoo dot org, 2023/06/07
- [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning, nickc at redhat dot com, 2023/06/07
- [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning, nickc at redhat dot com, 2023/06/07
- [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning, matz at suse dot de, 2023/06/07
- [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning, cvs-commit at gcc dot gnu.org, 2023/06/07
- [Bug ld/30499] reword "alignment ... is smaller than alignment ..." warning, nickc at redhat dot com, 2023/06/07