This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: [PATCH v3] Fix dynamic linker issue with bind-now
- From: "Petar Jovanovic" <petar dot jovanovic at rt-rk dot com>
- To: "'Mike Frysinger'" <vapier at gentoo dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Tue, 3 Mar 2015 19:54:54 +0100
- Subject: RE: [PATCH v3] Fix dynamic linker issue with bind-now
- Authentication-results: sourceware.org; auth=none
- References: <1425312822-25143-1-git-send-email-petar dot jovanovic at rt-rk dot com> <20150302173916 dot GK8519 at vapier>
For x86-32, it will break. So, as it appears, the test is not portable.
I can simplify it in the following way:
--- /dev/null
+++ b/elf/tst-split-dynreloc.lds
@@ -0,0 +1,10 @@
+SECTIONS
+{
+ .rela.dyn : { *(.rela.dyn) }
+ .rel.dyn : { *(.rel.dyn) }
+ . += 1000;
+ .rela.plt : { *(.rela.plt) }
+ .rel.plt : { *(.rel.plt) }
+}
+INSERT BEFORE .init;
+
This would also remove the need for __((section(".bar"))) in the test.
What do you think?
Regards,
Petar
-----Original Message-----
From: Mike Frysinger [mailto:vapier@gentoo.org]
Sent: Monday, March 2, 2015 6:39 PM
To: Petar Jovanovic
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH v3] Fix dynamic linker issue with bind-now
On 02 Mar 2015 17:13, Petar Jovanovic wrote:
> --- /dev/null
> +++ b/elf/tst-split-dynreloc.lds
> @@ -0,0 +1,6 @@
> +SECTIONS
> +{
> + .bar : { *(.bar) }
> +}
> +INSERT AFTER .rela.dyn;
what about arches that don't use RELA relocations ? x86 (32-bit) should be such a target and easy for you to test.
-mike