mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
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.
This commit is contained in:
parent
ae380b4573
commit
5cfd5a0c98
@ -1,3 +1,7 @@
|
|||||||
|
2005-05-05 Paul Brook <paul@codesourcery.com>
|
||||||
|
|
||||||
|
* lib/gas-defs.exp (regexp_diff): Pass test if last line is "#...".
|
||||||
|
|
||||||
2005-04-26 H.J. Lu <hongjiu.lu@intel.com>
|
2005-04-26 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* gas/all/assign.s: Make `x' and `y' global.
|
* gas/all/assign.s: Make `x' and `y' global.
|
||||||
|
@ -663,6 +663,7 @@ proc regexp_diff { file_1 file_2 } {
|
|||||||
} elseif [ string match "#..." $line_b ] {
|
} elseif [ string match "#..." $line_b ] {
|
||||||
if { [gets $file_b line_b] == $eof } {
|
if { [gets $file_b line_b] == $eof } {
|
||||||
set end_2 1
|
set end_2 1
|
||||||
|
set diff_pass 1
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
verbose "looking for \"^$line_b$\"" 3
|
verbose "looking for \"^$line_b$\"" 3
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2005-05-05 Paul Brook <paul@codesourcery.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2005-04-26 Mark Kettenis <kettenis@gnu.org>
|
2005-04-26 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* ld-fastcall/fastcall.exp: Don't run on i*86-*-openbsd*.
|
* ld-fastcall/fastcall.exp: Don't run on i*86-*-openbsd*.
|
||||||
|
@ -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 "" ""
|
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
|
||||||
|
8
ld/testsuite/ld-elfweak/size2.d
Normal file
8
ld/testsuite/ld-elfweak/size2.d
Normal file
@ -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
|
||||||
|
#...
|
6
ld/testsuite/ld-elfweak/size2a.s
Normal file
6
ld/testsuite/ld-elfweak/size2a.s
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.text
|
||||||
|
.global _start
|
||||||
|
.type _start, "function"
|
||||||
|
_start:
|
||||||
|
.byte 0
|
||||||
|
.size _start, 1
|
7
ld/testsuite/ld-elfweak/size2b.s
Normal file
7
ld/testsuite/ld-elfweak/size2b.s
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.text
|
||||||
|
.weak _start
|
||||||
|
.type _start, "function"
|
||||||
|
_start:
|
||||||
|
.byte 0
|
||||||
|
.byte 0
|
||||||
|
.size _start, 2
|
@ -1029,6 +1029,7 @@ proc regexp_diff { file_1 file_2 } {
|
|||||||
} elseif [ string match "#..." $line_b ] {
|
} elseif [ string match "#..." $line_b ] {
|
||||||
if { [gets $file_b line_b] == $eof } {
|
if { [gets $file_b line_b] == $eof } {
|
||||||
set end_2 1
|
set end_2 1
|
||||||
|
set diff_pass 1
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
verbose "looking for \"^$line_b$\"" 3
|
verbose "looking for \"^$line_b$\"" 3
|
||||||
|
Loading…
Reference in New Issue
Block a user