This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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 v3] Fix dynamic linker issue with bind-now


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


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