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 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>
+
 	* ld-x86-64/plt-lib.c: New file.
 	* ld-x86-64/plt-main.out: Likewise.
 	* ld-x86-64/plt-main1.c: Likewise.
diff --git a/ld/testsuite/ld-x86-64/plt-main1.rd b/ld/testsuite/ld-x86-64/plt-main1.rd
index 9ce3814..421d911 100644
--- a/ld/testsuite/ld-x86-64/plt-main1.rd
+++ b/ld/testsuite/ld-x86-64/plt-main1.rd
@@ -1,3 +1,3 @@
 #...
-[0-9a-f ]+R_X86_64_GOTPCREL +0+ bar - 4
+[0-9a-f ]+R_X86_64_GOTPCREL +0+ +bar - 4
 #pass
diff --git a/ld/testsuite/ld-x86-64/plt-main2.rd b/ld/testsuite/ld-x86-64/plt-main2.rd
index 5cc55ca..f074ede 100644
--- a/ld/testsuite/ld-x86-64/plt-main2.rd
+++ b/ld/testsuite/ld-x86-64/plt-main2.rd
@@ -1,3 +1,3 @@
 #...
-[0-9a-f ]+R_X86_64_64 +0+ foo \+ 0
+[0-9a-f ]+R_X86_64_(64|32) +0+ +foo \+ 0
 #pass
diff --git a/ld/testsuite/ld-x86-64/plt-main3.rd b/ld/testsuite/ld-x86-64/plt-main3.rd
index 46d7cc9..f3d294e 100644
--- a/ld/testsuite/ld-x86-64/plt-main3.rd
+++ b/ld/testsuite/ld-x86-64/plt-main3.rd
@@ -1,5 +1,5 @@
 #...
-[0-9a-f ]+R_X86_64_GOTPCREL +0+ bar - 4
+[0-9a-f ]+R_X86_64_GOTPCREL +0+ +bar - 4
 #...
-[0-9a-f ]+R_X86_64_PLT32 +0+ bar - 4
+[0-9a-f ]+R_X86_64_PLT32 +0+ +bar - 4
 #pass
diff --git a/ld/testsuite/ld-x86-64/plt-main4.rd b/ld/testsuite/ld-x86-64/plt-main4.rd
index 8be3f86..7f33f3a 100644
--- a/ld/testsuite/ld-x86-64/plt-main4.rd
+++ b/ld/testsuite/ld-x86-64/plt-main4.rd
@@ -1,5 +1,5 @@
 #...
-[0-9a-f ]+R_X86_64_GOTPCREL +0+ foo - 4
+[0-9a-f ]+R_X86_64_GOTPCREL +0+ +foo - 4
 #...
-[0-9a-f ]+R_X86_64_PLT32 +0+ foo - 4
+[0-9a-f ]+R_X86_64_PLT32 +0+ +foo - 4
 #pass


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