This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR ld/4504: Copy relocation doesn't preserve section alignment


Hi,

I just checked up the CVS, but your patch doesn't applied.
Why so?

TIA

2007/5/15, H. J. Lu <hjl@lucon.org>:
On Mon, May 14, 2007 at 12:52:44PM -0700, H. J. Lu wrote:
> This patch fixes the longstanding ELF linker bug by applying
> the maximum alignment to all symbols needing copy relocation.  We
> can get the maximum alignment from the section alignment where
> they are defined.
>
>

Here are an updated patch and a testcase patch.

There may be more than one shared libraries with different section
alignments. The alignment of .dynbss is the maximum alignment among
all section alignments.  When we align the symbol in .dynbss, we only
need to apply the current section alignment, not the maximum alignment
of .dynbss.


H.J. ---




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]