[06/13] ld/frv: Update tests for _edata, __bss_start, and _end changes

Message ID 20180601184357.10746-7-hjl.tools@gmail.com
State New
Headers show
Series
  • Define _edata, __bss_start, and _end only for executables
Related show

Commit Message

H.J. Lu June 1, 2018, 6:43 p.m.
Since _edata, __bss_start, and _end are no longer defined in shared
libraries, adjust linker tests for address changes.

	PR ld/23161
	* testsuite/ld-frv/fdpic-shared-2.d: Updated.
	* testsuite/ld-frv/fdpic-shared-5.d: Likewise.
	* testsuite/ld-frv/tls-dynamic-2.d: Likewise.
---
 ld/testsuite/ld-frv/fdpic-shared-2.d |  8 ++++----
 ld/testsuite/ld-frv/fdpic-shared-5.d |  8 ++++----
 ld/testsuite/ld-frv/tls-dynamic-2.d  | 18 +++++++++---------
 3 files changed, 17 insertions(+), 17 deletions(-)

-- 
2.17.0

Patch

diff --git a/ld/testsuite/ld-frv/fdpic-shared-2.d b/ld/testsuite/ld-frv/fdpic-shared-2.d
index 85ab28d19a..22d82a0dda 100644
--- a/ld/testsuite/ld-frv/fdpic-shared-2.d
+++ b/ld/testsuite/ld-frv/fdpic-shared-2.d
@@ -56,16 +56,16 @@  Disassembly of section \.dat[0-9a-f ]+:
 [0-9A-F ]+isassembly of section \.got:
 
 [0-9a-f ]+<.got>:
-[0-9a-f ]+:	00 00 04 a4 	.*
+[0-9a-f ]+:	00 00 04 3c 	.*
 [0-9a-f	 ]+: R_FRV_FUNCDESC_VALUE	GF9
 [0-9a-f ]+:	00 00 00 00 	.*
-[0-9a-f ]+:	00 00 04 9c 	.*
+[0-9a-f ]+:	00 00 04 34 	.*
 [0-9a-f	 ]+: R_FRV_FUNCDESC_VALUE	GF8
 [0-9a-f ]+:	00 00 00 00 	.*
-[0-9a-f ]+:	00 00 04 ac 	.*
+[0-9a-f ]+:	00 00 04 44 	.*
 [0-9a-f	 ]+: R_FRV_FUNCDESC_VALUE	GF7
 [0-9a-f ]+:	00 00 00 00 	.*
-[0-9a-f ]+:	00 00 04 94 	.*
+[0-9a-f ]+:	00 00 04 2c 	.*
 [0-9a-f	 ]+: R_FRV_FUNCDESC_VALUE	GF0
 [0-9a-f ]+:	00 00 00 00 	.*
 
diff --git a/ld/testsuite/ld-frv/fdpic-shared-5.d b/ld/testsuite/ld-frv/fdpic-shared-5.d
index 6ec516a14d..9f8f8ba83f 100644
--- a/ld/testsuite/ld-frv/fdpic-shared-5.d
+++ b/ld/testsuite/ld-frv/fdpic-shared-5.d
@@ -49,16 +49,16 @@  Disassembly of section \.dat[0-9a-f ]+:
 Disassembly of section \.got:
 
 [0-9a-f ]+<.got>:
-[0-9a-f ]+:	00 00 04 7c 	.*
+[0-9a-f ]+:	00 00 04 14 	.*
 [0-9a-f	 ]+: R_FRV_FUNCDESC_VALUE	UF9
 [0-9a-f ]+:	00 00 00 00 	.*
-[0-9a-f ]+:	00 00 04 64 	.*
+[0-9a-f ]+:	00 00 03 fc 	.*
 [0-9a-f	 ]+: R_FRV_FUNCDESC_VALUE	UF8
 [0-9a-f ]+:	00 00 00 00 	.*
-[0-9a-f ]+:	00 00 04 74 	.*
+[0-9a-f ]+:	00 00 04 0c 	.*
 [0-9a-f	 ]+: R_FRV_FUNCDESC_VALUE	UF0
 [0-9a-f ]+:	00 00 00 00 	.*
-[0-9a-f ]+:	00 00 04 6c 	.*
+[0-9a-f ]+:	00 00 04 04 	.*
 [0-9a-f	 ]+: R_FRV_FUNCDESC_VALUE	UF7
 [0-9a-f ]+:	00 00 00 00 	.*
 
diff --git a/ld/testsuite/ld-frv/tls-dynamic-2.d b/ld/testsuite/ld-frv/tls-dynamic-2.d
index be7e6c89ba..b1ac524152 100644
--- a/ld/testsuite/ld-frv/tls-dynamic-2.d
+++ b/ld/testsuite/ld-frv/tls-dynamic-2.d
@@ -156,32 +156,32 @@  Disassembly of section \.text:
 Disassembly of section \.got:
 
 [0-9a-f ]+<.*>:
-[0-9a-f ]+:	00 01 02 c0 	.*
+[0-9a-f ]+:	00 01 02 58 	.*
 [0-9a-f ]+:	00 00 08 21 	.*
-[0-9a-f ]+:	00 01 02 c0 	.*
+[0-9a-f ]+:	00 01 02 58 	.*
 [0-9a-f ]+:	00 00 f8 21 	.*
-[0-9a-f ]+:	00 01 02 c0 	.*
+[0-9a-f ]+:	00 01 02 58 	.*
 [0-9a-f ]+:	00 00 00 01 	.*
 [0-9a-f ]+:	00 00 00 00 	.*
 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
 [0-9a-f ]+:	00 00 00 01 	.*
-[0-9a-f ]+:	00 01 02 c0 	.*
+[0-9a-f ]+:	00 01 02 58 	.*
 [0-9a-f ]+:	ff ff f8 11 	.*
-[0-9a-f ]+:	00 01 02 c0 	.*
+[0-9a-f ]+:	00 01 02 58 	.*
 [0-9a-f ]+:	00 00 10 01 	.*
 [0-9a-f ]+:	00 00 00 00 	.*
 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
 [0-9a-f ]+:	00 00 10 01 	.*
-[0-9a-f ]+:	00 01 02 c0 	.*
+[0-9a-f ]+:	00 01 02 58 	.*
 [0-9a-f ]+:	00 00 08 11 	.*
-[0-9a-f ]+:	00 01 02 c0 	.*
+[0-9a-f ]+:	00 01 02 58 	.*
 [0-9a-f ]+:	00 01 00 01 	.*
 [0-9a-f ]+:	00 00 00 00 	.*
 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
 [0-9a-f ]+:	00 01 00 01 	.*
-[0-9a-f ]+:	00 01 02 c0 	.*
+[0-9a-f ]+:	00 01 02 58 	.*
 [0-9a-f ]+:	00 00 f8 11 	.*
-[0-9a-f ]+:	00 01 02 c0 	.*
+[0-9a-f ]+:	00 01 02 58 	.*
 [0-9a-f ]+:	ff ff f8 21 	.*
 
 [0-9a-f ]+<_GLOBAL_OFFSET_TABLE_>: