This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH COMMITTED: Fix alignment of copied symbols
- From: David Miller <davem at davemloft dot net>
- To: iant at google dot com
- Cc: binutils at sourceware dot org
- Date: Tue, 17 Jun 2008 21:53:05 -0700 (PDT)
- Subject: Re: PATCH COMMITTED: Fix alignment of copied symbols
- References: <m3r6av4ang.fsf@google.com>
From: Ian Lance Taylor <iant@google.com>
Date: Tue, 17 Jun 2008 21:41:55 -0700
> I discovered that copied symbols always use the alignment of the first
> copied symbol seen. If later copied symbols require a larger
> alignment, that is not reflected in the dynbss section. This is a bug
> in the Output_section::Input_section class when used with an
> Output_section_data: it always uses the initial alignment rather than
> the final one.
>
> I committed this patch to fix the bug, along with a test case.
I'm pretty sure I was seeing side effects of this bug on Sparc
at one point.