i386: Ajdust more tests for opcodes/i386: remove trailing whitespace
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 31 May 2022 21:55:41 +0000 (14:55 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 31 May 2022 21:55:41 +0000 (14:55 -0700)
This fixes:

FAIL: Build ifunc-1a with -z ibtplt
FAIL: Build ifunc-1a with PIE -z ibtplt
FAIL: Build libno-plt-1b.so
FAIL: No PLT (dynamic 1a)
FAIL: No PLT (dynamic 1b)
FAIL: No PLT (dynamic 1c)
FAIL: No PLT (static 1d)
FAIL: No PLT (PIE 1e)
FAIL: No PLT (PIE 1f)
FAIL: No PLT (PIE 1g)
FAIL: No PLT (dynamic 1h)
FAIL: No PLT (dynamic 1i)
FAIL: No PLT (static 1j)

* ld-i386/libno-plt-1b.dd: Remove trailing whitespaces.
* ld-i386/no-plt-1a.dd: Likewise.
* ld-i386/no-plt-1b.dd: Likewise.
* ld-i386/no-plt-1c.dd: Likewise.
* ld-i386/no-plt-1d.dd: Likewise.
* ld-i386/no-plt-1e.dd: Likewise.
* ld-i386/no-plt-1f.dd: Likewise.
* ld-i386/no-plt-1g.dd: Likewise.
* ld-i386/no-plt-1h.dd: Likewise.
* ld-i386/no-plt-1i.dd: Likewise.
* ld-i386/no-plt-1j.dd: Likewise.
* ld-i386/plt-main-ibt.dd: Likewise.
* ld-i386/plt-pie-ibt.dd: Likewise.

13 files changed:
ld/testsuite/ld-i386/libno-plt-1b.dd
ld/testsuite/ld-i386/no-plt-1a.dd
ld/testsuite/ld-i386/no-plt-1b.dd
ld/testsuite/ld-i386/no-plt-1c.dd
ld/testsuite/ld-i386/no-plt-1d.dd
ld/testsuite/ld-i386/no-plt-1e.dd
ld/testsuite/ld-i386/no-plt-1f.dd
ld/testsuite/ld-i386/no-plt-1g.dd
ld/testsuite/ld-i386/no-plt-1h.dd
ld/testsuite/ld-i386/no-plt-1i.dd
ld/testsuite/ld-i386/no-plt-1j.dd
ld/testsuite/ld-i386/plt-main-ibt.dd
ld/testsuite/ld-i386/plt-pie-ibt.dd

index 507ed16217f92c3de2ab77a66b0458f9f349e58d..eec9d4ac45aa4403d0ac1ecaebbeda1bef876446 100644 (file)
@@ -10,7 +10,7 @@ Disassembly of section .text:
  +[a-f0-9]+:   e8 ([0-9a-f]{2} ){4}[   ]+call +[a-f0-9]+ <__x86.get_pc_thunk.ax>
  +[a-f0-9]+:   05 ([0-9a-f]{2} ){4}[   ]+add +\$0x[a-f0-9]+,%eax
  +[a-f0-9]+:   8b 80 ([0-9a-f]{2} ){4}[        ]+mov +-0x[a-f0-9]+\(%eax\),%eax
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
 #...
 [0-9a-f]+ <call_func>:
  +[a-f0-9]+:   e8 ([0-9a-f]{2} ){4}[   ]+call +[a-f0-9]+ <__x86.get_pc_thunk.ax>
index e5bd9bdcd1eed61798b937f38bffe73d45b2df2c..8c76d9b5e370060bf9b0d5023b2a3e53cfbcf13a 100644 (file)
@@ -29,14 +29,14 @@ Disassembly of section .text:
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
  +[a-f0-9]+:   83 c4 18                add    \$0x18,%esp
  +[a-f0-9]+:   5b                      pop    %ebx
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
 #...
 [0-9a-f]+ <get_func>:
  +[a-f0-9]+:   e8 ([0-9a-f]{2} ){4}[   ]+call +[a-f0-9]+ <__x86.get_pc_thunk.ax>
  +[a-f0-9]+:   05 ([0-9a-f]{2} ){4}[   ]+add +\$0x[a-f0-9]+,%eax
  +[a-f0-9]+:   c7 c0 ([0-9a-f]{2} ){4}[        ]+mov +\$0x[a-f0-9]+,%eax
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
 #...
 [0-9a-f]+ <call_func>:
  +[a-f0-9]+:   e8 ([0-9a-f]{2} ){4}[   ]+call +[a-f0-9]+ <__x86.get_pc_thunk.ax>
index 2d35336945e2ca729add8e4df7434a82fd53b703..431011cf2cd13c895a3abc8095fb1784018c4bcb 100644 (file)
@@ -29,6 +29,6 @@ Disassembly of section .text:
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
  +[a-f0-9]+:   83 c4 18                add    \$0x18,%esp
  +[a-f0-9]+:   5b                      pop    %ebx
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
 #pass
index cc5fc1738a0ab60a36002d371b68cc51c980cd3b..ae31742756206325dafa2864696652f55ad13e48 100644 (file)
@@ -29,6 +29,6 @@ Disassembly of section .text:
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
  +[a-f0-9]+:   83 c4 18                add    \$0x18,%esp
  +[a-f0-9]+:   5b                      pop    %ebx
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
 #pass
index 396dbf390c67aaf2eeaf3064f731d7dbe55b0c62..e97c8c43111fc672bb9cb9bf653ae51774ce9022 100644 (file)
@@ -29,14 +29,14 @@ Disassembly of section .text:
  +[a-f0-9]+:   67 e8 ([0-9a-f]{2} ){4}[        ]+addr16 call [0-9a-f]+ <.*puts.*>
  +[a-f0-9]+:   83 c4 18                add    \$0x18,%esp
  +[a-f0-9]+:   5b                      pop    %ebx
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
  +[a-f0-9]+:   67 e8 ([0-9a-f]{2} ){4}[        ]+addr16 call [0-9a-f]+ <abort>
 #...
 [0-9a-f]+ <get_func>:
  +[a-f0-9]+:   e8 ([0-9a-f]{2} ){4}[   ]+call +[a-f0-9]+ <__x86.get_pc_thunk.ax>
  +[a-f0-9]+:   05 ([0-9a-f]{2} ){4}[   ]+add +\$0x[a-f0-9]+,%eax
  +[a-f0-9]+:   c7 c0 ([0-9a-f]{2} ){4}[        ]+mov +\$0x[a-f0-9]+,%eax
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
 #...
 [0-9a-f]+ <call_func>:
  +[a-f0-9]+:   e8 ([0-9a-f]{2} ){4}[   ]+call +[a-f0-9]+ <__x86.get_pc_thunk.ax>
index 6f271992f90294f0f683598cc95234a7a56bbd14..56b1a7629443f019e9ce8588110609277247b34c 100644 (file)
@@ -29,14 +29,14 @@ Disassembly of section .text:
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
  +[a-f0-9]+:   83 c4 18                add    \$0x18,%esp
  +[a-f0-9]+:   5b                      pop    %ebx
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
 #...
 [0-9a-f]+ <get_func>:
  +[a-f0-9]+:   e8 ([0-9a-f]{2} ){4}[   ]+call +[a-f0-9]+ <__x86.get_pc_thunk.ax>
  +[a-f0-9]+:   05 ([0-9a-f]{2} ){4}[   ]+add +\$0x[a-f0-9]+,%eax
  +[a-f0-9]+:   8d 80 ([0-9a-f]{2} ){4}[        ]+lea +-0x[a-f0-9]+\(%eax\),%eax
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
 #...
 [0-9a-f]+ <call_func>:
  +[a-f0-9]+:   e8 ([0-9a-f]{2} ){4}[   ]+call +[a-f0-9]+ <__x86.get_pc_thunk.ax>
index 2d35336945e2ca729add8e4df7434a82fd53b703..431011cf2cd13c895a3abc8095fb1784018c4bcb 100644 (file)
@@ -29,6 +29,6 @@ Disassembly of section .text:
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
  +[a-f0-9]+:   83 c4 18                add    \$0x18,%esp
  +[a-f0-9]+:   5b                      pop    %ebx
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
 #pass
index f9464e7135c01896ca6393364c4d56c4552deea0..4f184533cbecb005ed61c874e8bcba181288f8e8 100644 (file)
@@ -29,6 +29,6 @@ Disassembly of section .text:
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
  +[a-f0-9]+:   83 c4 18                add    \$0x18,%esp
  +[a-f0-9]+:   5b                      pop    %ebx
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
  +[a-f0-9]+:   ff 93 ([0-9a-f]{2} ){4}[        ]+call +\*-0x[0-9a-f]+\(%ebx\)
 #pass
index 0d662c930d79a3fe48b8a605377cf92f9d19d22c..b24697aa42986dc3e07ac4e272dd87537a0e511e 100644 (file)
@@ -24,12 +24,12 @@ Disassembly of section .text:
  +[a-f0-9]+:   68 ([0-9a-f]{2} ){4}[   ]+push +\$0x[0-9a-f]+
  +[a-f0-9]+:   ff 15 ([0-9a-f]{2} ){4}[        ]+call +\*0x[0-9a-f]+
  +[a-f0-9]+:   83 c4 1c                add    \$0x1c,%esp
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
  +[a-f0-9]+:   ff 15 ([0-9a-f]{2} ){4}[        ]+call +\*0x[0-9a-f]+
 #...
 [0-9a-f]+ <get_func>:
  +[a-f0-9]+:   c7 c0 ([0-9a-f]{2} ){4}[        ]+mov +\$0x[a-f0-9]+,%eax
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
 #...
 [0-9a-f]+ <call_func>:
  +[a-f0-9]+:   e9 ([0-9a-f]{2} ){4}[   ]+jmp +[0-9a-f]+ <func>
index 05e2d6de4d3407ac50416f81a72c90aecd5c0e44..e86d21c1e3d9d01e11304863e37181d41360f10f 100644 (file)
@@ -24,12 +24,12 @@ Disassembly of section .text:
  +[a-f0-9]+:   68 ([0-9a-f]{2} ){4}[   ]+push +\$0x[0-9a-f]+
  +[a-f0-9]+:   ff 15 ([0-9a-f]{2} ){4}[        ]+call +\*0x[0-9a-f]+
  +[a-f0-9]+:   83 c4 1c                add    \$0x1c,%esp
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
  +[a-f0-9]+:   ff 15 ([0-9a-f]{2} ){4}[        ]+call +\*0x[0-9a-f]+
 #...
 [0-9a-f]+ <get_func>:
  +[a-f0-9]+:   8b 05 ([0-9a-f]{2} ){4}[        ]+mov +0x[a-f0-9]+,%eax
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
 #...
 [0-9a-f]+ <call_func>:
  +[a-f0-9]+:   ff 25 ([0-9a-f]{2} ){4}[        ]+jmp +\*0x[0-9a-f]+
index 258b0a04d6407c1b5aea9fc940489751621a62c4..eaeaf188373218f2f4f229cb677901d9e7eeecc9 100644 (file)
@@ -24,12 +24,12 @@ Disassembly of section .text:
  +[a-f0-9]+:   68 ([0-9a-f]{2} ){4}[   ]+push +\$0x[0-9a-f]+
  +[a-f0-9]+:   67 e8 ([0-9a-f]{2} ){4}[        ]+addr16 call [0-9a-f]+ <.*puts.*>
  +[a-f0-9]+:   83 c4 1c                add    \$0x1c,%esp
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
  +[a-f0-9]+:   67 e8 ([0-9a-f]{2} ){4}[        ]+addr16 call [0-9a-f]+ <abort>
 #...
 [0-9a-f]+ <get_func>:
  +[a-f0-9]+:   c7 c0 ([0-9a-f]{2} ){4}[        ]+mov +\$0x[a-f0-9]+,%eax
- +[a-f0-9]+:   c3                      ret    
+ +[a-f0-9]+:   c3                      ret
 #...
 [0-9a-f]+ <call_func>:
  +[a-f0-9]+:   e9 ([0-9a-f]{2} ){4}[   ]+jmp +[0-9a-f]+ <func>
index 6a1d4bf979da574cba76ba6cb358d05ab9e91367..9140deed884c72a7bf603e58d387520362adeab7 100644 (file)
@@ -2,6 +2,6 @@
 Disassembly of section .plt.(sec|got):
 
 [a-f0-9]+ <[_a-z]+@plt>:
-[      ]*[a-f0-9]+:    f3 0f 1e fb             endbr32 
+[      ]*[a-f0-9]+:    f3 0f 1e fb             endbr32
 [      ]*[a-f0-9]+:    ff 25 .. .. .. ..       jmp +\*0x[a-f0-9]+
 #pass
index 2dc016c3b2494ae21c0e5e307130a44105f710fa..4cc37cbb56afdeaee63ddbbc729eb446af2d61a8 100644 (file)
@@ -2,6 +2,6 @@
 Disassembly of section .plt.got:
 
 [a-f0-9]+ <[_a-z]+@plt>:
-[      ]*[a-f0-9]+:    f3 0f 1e fb             endbr32 
+[      ]*[a-f0-9]+:    f3 0f 1e fb             endbr32
 [      ]*[a-f0-9]+:    ff a3 .. .. .. ..       jmp +\*\-0x[a-f0-9]+\(%ebx\)
 #pass