[05/13] ld/alpha: Update tests for _edata, __bss_start, and _end changes

Message ID 20180601184357.10746-6-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-alpha/tlsbin.rd: Updated.
	* testsuite/ld-alpha/tlsbin.sd: Likewise.
	* testsuite/ld-alpha/tlsbinr.rd: Likewise.
	* testsuite/ld-alpha/tlspic.rd: Likewise.
	* testsuite/ld-alpha/tlspic.sd: Likewise.
---
 ld/testsuite/ld-alpha/tlsbin.rd  | 3 ---
 ld/testsuite/ld-alpha/tlsbin.sd  | 2 +-
 ld/testsuite/ld-alpha/tlsbinr.rd | 5 +----
 ld/testsuite/ld-alpha/tlspic.rd  | 6 ------
 ld/testsuite/ld-alpha/tlspic.sd  | 2 +-
 5 files changed, 3 insertions(+), 15 deletions(-)

-- 
2.17.0

Patch

diff --git a/ld/testsuite/ld-alpha/tlsbin.rd b/ld/testsuite/ld-alpha/tlsbin.rd
index 6918611dd3..ca811ddefe 100644
--- a/ld/testsuite/ld-alpha/tlsbin.rd
+++ b/ld/testsuite/ld-alpha/tlsbin.rd
@@ -59,10 +59,7 @@  Symbol table '\.dynsym' contains [0-9]+ entries:
 [0-9 ]+: [0-9a-f]+ +0 +NOTYPE +LOCAL +DEFAULT +UND *
 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +UND sG2
 [0-9 ]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +UND __tls_get_addr
-[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 __bss_start
 [0-9 ]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +UND sG1
-[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _edata
-[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _end
 
 Symbol table '\.symtab' contains [0-9]+ entries:
  +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
diff --git a/ld/testsuite/ld-alpha/tlsbin.sd b/ld/testsuite/ld-alpha/tlsbin.sd
index c67a88a448..f9bb001c63 100644
--- a/ld/testsuite/ld-alpha/tlsbin.sd
+++ b/ld/testsuite/ld-alpha/tlsbin.sd
@@ -10,7 +10,7 @@ 
 
 Contents of section .got:
  [0-9a-f]+ 00000000 00000000 00000000 00000000  .*
- [0-9a-f]+ 00000000 00000000 74030020 01000000  .*
+ [0-9a-f]+ 00000000 00000000 04030020 01000000  .*
  [0-9a-f]+ 56000000 00000000 00000000 00000000  .*
  [0-9a-f]+ 00000000 00000000 01000000 00000000  .*
  [0-9a-f]+ 00000000 00000000 01000000 00000000  .*
diff --git a/ld/testsuite/ld-alpha/tlsbinr.rd b/ld/testsuite/ld-alpha/tlsbinr.rd
index c3a275f566..d2001ca8d3 100644
--- a/ld/testsuite/ld-alpha/tlsbinr.rd
+++ b/ld/testsuite/ld-alpha/tlsbinr.rd
@@ -47,17 +47,14 @@  Program Headers:
 Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 2 entries:
  +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
 [0-9a-f]+ +0+100000026 R_ALPHA_TPREL64 +0+ sG2 \+ 0
-[0-9a-f]+ +0+400000026 R_ALPHA_TPREL64 +0+ sG1 \+ 0
+[0-9a-f]+ +0+300000026 R_ALPHA_TPREL64 +0+ sG1 \+ 0
 
 Symbol table '\.dynsym' contains [0-9]+ entries:
  +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
 [0-9 ]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND 
 [0-9 ]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2
 [0-9 ]+: 0+ +0 +FUNC +GLOBAL +DEFAULT +UND __tls_get_addr
-[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 __bss_start
 [0-9 ]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1
-[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _edata
-[0-9 ]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +13 _end
 
 Symbol table '\.symtab' contains [0-9]+ entries:
  +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
diff --git a/ld/testsuite/ld-alpha/tlspic.rd b/ld/testsuite/ld-alpha/tlspic.rd
index 0b287a5919..6b28d87d5b 100644
--- a/ld/testsuite/ld-alpha/tlspic.rd
+++ b/ld/testsuite/ld-alpha/tlspic.rd
@@ -64,12 +64,9 @@  Symbol table '\.dynsym' contains [0-9]+ entries:
 .* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg1
 .* [0-9a-f]+ +172 +FUNC +GLOBAL +DEFAULT +\[<other>: 88\] +7 fn1
-.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start
 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg2
 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg6
 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg7
-.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _edata
-.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end
 
 Symbol table '\.symtab' contains [0-9]+ entries:
  +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
@@ -122,9 +119,6 @@  Symbol table '\.symtab' contains [0-9]+ entries:
 .* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg1
 .* [0-9a-f]+ +172 +FUNC +GLOBAL +DEFAULT +\[<other>: 88\] +7 fn1
-.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start
 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg2
 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg6
 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +9 sg7
-.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _edata
-.* [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end
diff --git a/ld/testsuite/ld-alpha/tlspic.sd b/ld/testsuite/ld-alpha/tlspic.sd
index 7d02cf1ce5..12dec599e8 100644
--- a/ld/testsuite/ld-alpha/tlspic.sd
+++ b/ld/testsuite/ld-alpha/tlspic.sd
@@ -10,7 +10,7 @@ 
 
 Contents of section .got:
  11278 00000000 00000000 00000000 00000000  .*
- 11288 44040000 00000000 00000000 00000000  .*
+ 11288 c4030000 00000000 00000000 00000000  .*
  11298 00000000 00000000 71000000 00000000  .*
  112a8 00000000 00000000 00000000 00000000  .*
  112b8 00000000 00000000 44000000 00000000  .*