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: Add function and function pointer tests


On Thu, Nov 20, 2014 at 01:30:48PM -0800, H.J. Lu wrote:
> On Thu, Nov 20, 2014 at 12:50:38PM -0800, H.J. Lu wrote:
> > Hi,
> > 
> > I checked in this patch to adds tests for function and function pointer.
> > 
> > H.J.
> > ---
> > diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
> > index 63f145e..5c5fe88 100644
> > --- a/ld/testsuite/ChangeLog
> > +++ b/ld/testsuite/ChangeLog
> > @@ -1,5 +1,21 @@
> >  2014-11-20  H.J. Lu  <hongjiu.lu@intel.com>
> >  
> > +	* ld-x86-64/plt-lib.c: New file.
> > +	* ld-x86-64/plt-main.out: Likewise.
> > +	* ld-x86-64/plt-main1.c: Likewise.
> > +	* ld-x86-64/plt-main1.rd: Likewise.
> > +	* ld-x86-64/plt-main2.c: Likewise.
> > +	* ld-x86-64/plt-main2.rd: Likewise.
> > +	* ld-x86-64/plt-main3.c: Likewise.
> > +	* ld-x86-64/plt-main3.rd: Likewise.
> > +	* ld-x86-64/plt-main4.c: Likewise.
> > +	* ld-x86-64/plt-main4.rd: Likewise.
> > +	* ld-x86-64/plt-main5.c: Likewise.
> > +
> > +	* ld-x86-64/x86-64.exp: Run plt-main tests.
> > +
> 
> I checked in this for x32.
> 
> H.J.
> ---
> diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
> index 5c5fe88..f959d55 100644
> --- a/ld/testsuite/ChangeLog
> +++ b/ld/testsuite/ChangeLog
> @@ -1,5 +1,12 @@
>  2014-11-20  H.J. Lu  <hongjiu.lu@intel.com>
>  
> +	* ld-x86-64/plt-main1.rd: Updated for x32.
> +	* ld-x86-64/plt-main2.rd: Likewise.
> +	* ld-x86-64/plt-main3.rd: Likewise.
> +	* ld-x86-64/plt-main4.rd: Likewise.
> +
> +2014-11-20  H.J. Lu  <hongjiu.lu@intel.com>
> +

I checked in this patch to add PIE test.

H.J.
---
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 0068a85..9a264b6 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* ld-x86-64/x86-64.exp: Run plt-main test with -pie.
+
 2014-11-21  Terry Guo  <terry.guo@arm.com>
 
 	* ld-arm/tls-longplt-lib.s: Require ARMv6T2.
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index ecc1194..ab1bfd1 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -386,6 +386,16 @@ if { [isnative] && [which $CC] != 0 } {
 	    "plt-main" \
 	    "plt-main.out" \
 	] \
+	[list \
+	    "Run plt-main with PIE" \
+	    "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
+	     tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie" \
+	    "" \
+	    { plt-main5.c } \
+	    "plt-main-pie" \
+	    "plt-main.out" \
+	    "-fPIC" \
+	] \
     ]
 }
 


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