Bug 12564 - GNU ld internal ironly section should not be leaking warnings
Summary: GNU ld internal ironly section should not be leaking warnings
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: Dave Korn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 14:37 UTC by Uros Bizjak
Modified: 2022-07-23 07:13 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uros Bizjak 2011-03-10 14:37:03 UTC
This is a followup from gcc PR48055 [1], where a warning from ld is emitted:

/home/uros/gcc-svn/trunk/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c
-w -O2 -flto -lm -o /space/uros/gcc-build/gcc/testsuite/gcc5/memcpy-chk.x9^M
/usr/lib/gcc/alpha-unknown-linux-gnu/4.4.5/../../../../alpha-unknown-linux-gnu/bin/ld:
Warning: alignment 8 of symbol `buf5' in /tmp/ccgnDykf.ltrans1.ltrans.o is
smaller than 16 in /tmp/ccc3QsSw.o.ironly^D^M
/usr/lib/gcc/alpha-unknown-linux-gnu/4.4.5/../../../../alpha-unknown-linux-gnu/bin/ld:
Warning: alignment 8 of symbol `buf7' in /tmp/ccgnDykf.ltrans1.ltrans.o is
smaller than 16 in /tmp/ccc3QsSw.o.ironly^D^M
/usr/lib/gcc/alpha-unknown-linux-gnu/4.4.5/../../../../alpha-unknown-linux-gnu/bin/ld:
Warning: alignment 8 of symbol `buf1' in /tmp/ccgnDykf.ltrans1.ltrans.o is
smaller than 16 in /tmp/ccc3QsSw.o.ironly^D^M

According to Jan, these internal warnings should not be generated.

[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48055
Comment 1 H.J. Lu 2011-03-10 16:02:52 UTC
This should work with 2 stage linker.
Comment 2 Dave Korn 2011-03-10 16:26:06 UTC
Fixed on HEAD by http://sourceware.org/ml/binutils/2010-11/msg00371.html

*** This bug has been marked as a duplicate of bug 12246 ***
Comment 3 Dave Korn 2011-03-10 16:28:32 UTC
Sorry, missed that this was for the 2.21 branch; this, and most other plugin-related bugs are still there.  Current plan is to do a big backport and release a 2.21.1 in approximate synchrony with gcc 4.6

Taking assignment so I remember to include this when I do the backport.
Comment 4 Alan Modra 2022-07-23 07:13:06 UTC
Fixed a long time ago.