This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v6] Fix dynamic linker issue with bind-now
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Petar Jovanovic <petar dot jovanovic at rt-rk dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Roland McGrath <roland at hack dot frob dot com>, Mike Frysinger <vapier at gentoo dot org>, Andreas Schwab <schwab at linux-m68k dot org>
- Date: Wed, 15 Jul 2015 11:32:45 -0700
- Subject: Re: [PATCH v6] Fix dynamic linker issue with bind-now
- Authentication-results: sourceware.org; auth=none
- References: <003301d0bf2c$214f3650$63eda2f0$ at rt-rk dot com>
On Wed, Jul 15, 2015 at 11:29 AM, Petar Jovanovic
<petar.jovanovic@rt-rk.com> wrote:
> Fix the bind-now case when DT_REL and DT_JMPREL sections are separate and
> there is a gap between them. This patch fixes bug #14341.
> ---
> v6:
> - Addressed comments by H.J. Lu
> - modified the test to fail with the latest binutils
> - style changes addressed
Please use
int const __attribute__ ((section(".bar"))) bar = 0x12345678;
and put it in a separate file.
--
H.J.