mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
objcopy binary symbol type check
This exposes an error on alpha-linux-gnuecoff where the start and end syms are given the wrong storage class. * testsuite/binutils-all/objcopy.exp (binary_symbol): Tighten symbol type checking.
This commit is contained in:
@@ -1631,8 +1631,11 @@ proc binary_symbol {name file args sym_prefix} {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach sym [list "start" "end" "size"] {
|
set syms [list {D start} {D end} {A size}]
|
||||||
set exp "^\[0-9a-fA-F\]+ +\[TtDdA\] +${sym_prefix}_${sym}$"
|
foreach e $syms {
|
||||||
|
set typ [lindex $e 0]
|
||||||
|
set sym [lindex $e 1]
|
||||||
|
set exp "^\[0-9a-fA-F\]+ +${typ} +${sym_prefix}_${sym}$"
|
||||||
if ![regexp -line $exp $got] {
|
if ![regexp -line $exp $got] {
|
||||||
send_log "failed to match: $exp\n"
|
send_log "failed to match: $exp\n"
|
||||||
fail $test
|
fail $test
|
||||||
|
|||||||
Reference in New Issue
Block a user