diff options
author | Paul Brook <paul@codesourcery.com> | 2005-05-05 03:11:24 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2005-05-05 03:11:24 +0000 |
commit | 5cfd5a0c98ac5b7526514b7d3764be9ce0714900 (patch) | |
tree | 1d9cadb64aacfccd8af885535e87e1f23da962ac /ld/testsuite/ld-elfweak | |
parent | ae380b457346a93dc674ab191fbfbd0dd92c2583 (diff) | |
download | gdb-5cfd5a0c98ac5b7526514b7d3764be9ce0714900.zip gdb-5cfd5a0c98ac5b7526514b7d3764be9ce0714900.tar.gz gdb-5cfd5a0c98ac5b7526514b7d3764be9ce0714900.tar.bz2 |
2005-05-05 Paul Brook <paul@codesourcery.com>
gas/testsuite/
* lib/gas-defs.exp (regexp_diff): Pass test if last line is "#...".
ld/testsuite/
* lib/ld-lib.exp (regexp_diff): Pass test if last line is "#...".
* ld-elfweak/elfweak.exp: Run size2.d.
* ld-elfwaek/size2.d: New file.
* ld-elfwaek/size2a.s: New file.
* ld-elfwaek/size2b.s: New file.
Diffstat (limited to 'ld/testsuite/ld-elfweak')
-rw-r--r-- | ld/testsuite/ld-elfweak/elfweak.exp | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-elfweak/size2.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-elfweak/size2a.s | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elfweak/size2b.s | 7 |
4 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfweak/elfweak.exp b/ld/testsuite/ld-elfweak/elfweak.exp index 1560a29..9ea04b7 100644 --- a/ld/testsuite/ld-elfweak/elfweak.exp +++ b/ld/testsuite/ld-elfweak/elfweak.exp @@ -493,3 +493,6 @@ if ![ld_compile "$CC $CFLAGS" $srcdir/$subdir/size_main.c $tmpdir/size_main.o] { } build_exec "ELF weak size" size_main "size_main.o libsize_foo.so libsize_bar.so" "-Wl,-rpath,." size "" "" + +verbose "size2" +run_dump_test $srcdir/$subdir/size2 diff --git a/ld/testsuite/ld-elfweak/size2.d b/ld/testsuite/ld-elfweak/size2.d new file mode 100644 index 0000000..59d5489 --- /dev/null +++ b/ld/testsuite/ld-elfweak/size2.d @@ -0,0 +1,8 @@ +#source: size2a.s +#source: size2b.s +#ld: +#readelf: -s +Symbol table '.symtab' contains .* entries: +#... + .*: [0-9a-f]* *1 *FUNC *GLOBAL *DEFAULT *[0-9] *_start +#... diff --git a/ld/testsuite/ld-elfweak/size2a.s b/ld/testsuite/ld-elfweak/size2a.s new file mode 100644 index 0000000..d5252ce --- /dev/null +++ b/ld/testsuite/ld-elfweak/size2a.s @@ -0,0 +1,6 @@ + .text + .global _start + .type _start, "function" +_start: + .byte 0 + .size _start, 1 diff --git a/ld/testsuite/ld-elfweak/size2b.s b/ld/testsuite/ld-elfweak/size2b.s new file mode 100644 index 0000000..d4afe02 --- /dev/null +++ b/ld/testsuite/ld-elfweak/size2b.s @@ -0,0 +1,7 @@ + .text + .weak _start + .type _start, "function" +_start: + .byte 0 + .byte 0 + .size _start, 2 |