diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-06-14 05:49:02 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-06-14 05:49:24 -0700 |
commit | b6947a7f08011375120186688bf2efd866f7d148 (patch) | |
tree | b6cc3ec84147eafc3b356d4d324952d72f66662f /ld/testsuite | |
parent | db5fa770268baf8cc82cf9b141d69799fd485fe2 (diff) | |
download | gdb-b6947a7f08011375120186688bf2efd866f7d148.zip gdb-b6947a7f08011375120186688bf2efd866f7d148.tar.gz gdb-b6947a7f08011375120186688bf2efd866f7d148.tar.bz2 |
Skip sizeof/startof tests on targets with leading char
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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-elf/sizeofa.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/sizeofb.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/startofa.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/startofb.d | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/sizeofa.d b/ld/testsuite/ld-elf/sizeofa.d index 0aac607..d4432a0 100644 --- a/ld/testsuite/ld-elf/sizeofa.d +++ b/ld/testsuite/ld-elf/sizeofa.d @@ -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 diff --git a/ld/testsuite/ld-elf/sizeofb.d b/ld/testsuite/ld-elf/sizeofb.d index 331c386..cd3920b 100644 --- a/ld/testsuite/ld-elf/sizeofb.d +++ b/ld/testsuite/ld-elf/sizeofb.d @@ -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 diff --git a/ld/testsuite/ld-elf/startofa.d b/ld/testsuite/ld-elf/startofa.d index 00ab27e..cb261df 100644 --- a/ld/testsuite/ld-elf/startofa.d +++ b/ld/testsuite/ld-elf/startofa.d @@ -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 diff --git a/ld/testsuite/ld-elf/startofb.d b/ld/testsuite/ld-elf/startofb.d index e03bd23..0d1da66 100644 --- a/ld/testsuite/ld-elf/startofb.d +++ b/ld/testsuite/ld-elf/startofb.d @@ -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 |