]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Skip sizeof/startof tests on targets with leading char
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 14 Jun 2017 12:49:02 +0000 (05:49 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 14 Jun 2017 12:49:24 +0000 (05:49 -0700)
Symbol lookup in linker will always fail on targets with leading char
in symbol name since __start_SECNAME and __stop_SECNAME in C may be
___start_SECNAME and ___stop_SECNAME in assembly.

* testsuite/ld-elf/sizeofa.d: Skip on targets with leading char
in symbol name.
* testsuite/ld-elf/sizeofb.d: Likewise.
* testsuite/ld-elf/startofa.d: Likewise.
* testsuite/ld-elf/startofb.d: Likewise.

ld/ChangeLog
ld/testsuite/ld-elf/sizeofa.d
ld/testsuite/ld-elf/sizeofb.d
ld/testsuite/ld-elf/startofa.d
ld/testsuite/ld-elf/startofb.d

index 44064fd45fb01de6541b2548c797d695b16d4a00..371859a6db141f471df524a71a2590f172de0913 100644 (file)
@@ -1,3 +1,11 @@
+2017-06-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/sizeofa.d: Skip on targets with leading char
+       in symbol name.
+       * testsuite/ld-elf/sizeofb.d: Likewise.
+       * testsuite/ld-elf/startofa.d: Likewise.
+       * testsuite/ld-elf/startofb.d: Likewise.
+
 2017-06-14  Georg-Johann Lay  <gjl@gcc.gnu.org>
 
        PR ld/21583
index 0aac60770ff193e5469b3c2a5da62d0dd77fc333..d4432a0f068d9bf5620c54360757338285367048 100644 (file)
@@ -1,6 +1,10 @@
 #source: sizeof.s
 #ld: -Ur
 #readelf: -sW
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
 
 Symbol table '\.symtab' contains [0-9]+ entries:
  +Num: +Value +Size Type +Bind +Vis +Ndx Name
index 331c386492006407abfdf6d32b512af050ddfc1e..cd3920b006d0b4a63fbe095532b9d936e97e4b09 100644 (file)
@@ -2,6 +2,10 @@
 #ld: -shared
 #readelf: -sW
 #target: *-*-linux* *-*-gnu*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
 
 Symbol table '\.dynsym' contains [0-9]+ entries:
  +Num: +Value +Size Type +Bind +Vis +Ndx Name
index 00ab27e7ee66491b21734dddbd9b58fd5515209f..cb261df7f5a819e320881ae66497302f20ef1c8f 100644 (file)
@@ -1,6 +1,10 @@
 #source: startof.s
 #ld: -Ur
 #readelf: -sW
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
 
 Symbol table '\.symtab' contains [0-9]+ entries:
  +Num: +Value +Size Type +Bind +Vis +Ndx Name
index e03bd23c06848d17b9db9731bf347a2cc86f2805..0d1da663bdd5be17bcc4bfc4a90d463a5d4597c2 100644 (file)
@@ -2,6 +2,10 @@
 #ld: -shared
 #readelf: -sW
 #target: *-*-linux* *-*-gnu*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
 
 Symbol table '\.dynsym' contains [0-9]+ entries:
  +Num: +Value +Size Type +Bind +Vis +Ndx Name