Adjust testsuite/ld-plugin/pr22983.d
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 20 Mar 2018 16:20:57 +0000 (09:20 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 20 Mar 2018 16:21:35 +0000 (09:21 -0700)
* testsuite/ld-plugin/pr22983.d: Allow leading underscore as
well as extra lines between symbols.

ld/ChangeLog
ld/testsuite/ld-plugin/pr22983.d

index 7270ac0d31744f6d5c18e821041d9c5bc2c71d5b..68d898af02bed78e94fdcc7b081658ceb290263c 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-plugin/pr22983.d: Allow leading underscore as
+       well as extra lines between symbols.
+
 2018-03-20  Maciej W. Rozycki  <macro@mips.com>
 
        * testsuite/ld-gc/gc.exp: Remove extraneous LD flags from the
index af1d710d3f0a425b25ef96d1eec9a55db4b25b8f..c9b8243a45a26873373a28ddf6ecfc4969627611 100644 (file)
@@ -1,9 +1,11 @@
 Symbol table '\.dynsym' contains [0-9]+ entries:
  +Num: +Value +Size Type +Bind +Vis +Ndx Name
 #...
- +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +OBJECT +GLOBAL +DEFAULT +[0-9]+ +var_attr_used_enabled
- +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +OBJECT +GLOBAL +DEFAULT +[0-9]+ +var_attr_used_disabled
+ +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +OBJECT +GLOBAL +DEFAULT +[0-9]+ +_?var_attr_used_enabled
 #...
- +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +func_attr_used_enabled
- +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +func_attr_used_disabled
+ +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +OBJECT +GLOBAL +DEFAULT +[0-9]+ +_?var_attr_used_disabled
+#...
+ +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +_?func_attr_used_enabled
+#...
+ +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +_?func_attr_used_disabled
 #...