[PATCH v3] Fix dynamic linker issue with bind-now
Petar Jovanovic
petar.jovanovic@rt-rk.com
Tue Mar 3 18:55:00 GMT 2015
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
More information about the Libc-alpha
mailing list