[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/30499] New: reword "alignment ... is smaller than alignment ..."
From: |
matz at suse dot de |
Subject: |
[Bug ld/30499] New: reword "alignment ... is smaller than alignment ..." warning |
Date: |
Tue, 30 May 2023 15:39:12 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30499
Bug ID: 30499
Summary: reword "alignment ... is smaller than alignment ..."
warning
Product: binutils
Version: 2.41 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: matz at suse dot de
Target Milestone: ---
A customer of a customer of ours is requesting that the warning about
mismatching symbol alignments be reworded. Given this:
% cat test1.s
.type com2_,@object
.comm com2_,8,64
.quad com2_
% cat test2.s
.globl com2_
.data
.align 32
.type com2_, @object
.size com2_, 8
com2_:
.quad 2
% cat main.c
int main () {
return 0;
}
% cc -c main.c test1.s test2.s
% cc main.o test1.o test2.o
The current warning is:
warning: alignment 32 of symbol `com2_' in test2.o is smaller than 64 in
test1.o
The proposal would be:
warning: alignment 32 of symbol `com2_' in test2.o changed to 64 to match
test1.o
I think the proposed warning is a little bit nicer as being explicit what the
resolution to the situation is. I'm undecided if it's nicer enough to warrant
changing a translated warning, which is why I'm creating this PR, perhaps I
get opinions :-)
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/30499] New: reword "alignment ... is smaller than alignment ..." warning,
matz at suse dot de <=