mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-13 19:06:54 +08:00
Enable "size" as a dumpprog in ld
binutils/ * testsuite/lib/binutils-common.exp (run_dump_test): Reference global SIZE and SIZEFLAGS. ld/ * testsuite/config/default.exp: Define SIZE and SIZEFLAGS.
This commit is contained in:
@ -866,6 +866,7 @@ proc run_dump_test { name {extra_options {}} } {
|
|||||||
global ADDR2LINE ADDR2LINEFLAGS AS ASFLAGS CC_FOR_TARGET CFLAGS_FOR_TARGET
|
global ADDR2LINE ADDR2LINEFLAGS AS ASFLAGS CC_FOR_TARGET CFLAGS_FOR_TARGET
|
||||||
global ELFEDIT ELFEDITFLAGS LD LDFLAGS NM NMFLAGS OBJCOPY OBJCOPYFLAGS
|
global ELFEDIT ELFEDITFLAGS LD LDFLAGS NM NMFLAGS OBJCOPY OBJCOPYFLAGS
|
||||||
global OBJDUMP OBJDUMPFLAGS READELF READELFFLAGS STRIP STRIPFLAGS
|
global OBJDUMP OBJDUMPFLAGS READELF READELFFLAGS STRIP STRIPFLAGS
|
||||||
|
global SIZE SIZEFLAGS
|
||||||
global copyfile env runtests srcdir subdir verbose
|
global copyfile env runtests srcdir subdir verbose
|
||||||
global DT_RELR_LDFLAGS NO_DT_RELR_LDFLAGS
|
global DT_RELR_LDFLAGS NO_DT_RELR_LDFLAGS
|
||||||
|
|
||||||
|
@ -301,6 +301,14 @@ if ![info exists READELFFLAGS] then {
|
|||||||
set READELFFLAGS {}
|
set READELFFLAGS {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ![info exists SIZE] then {
|
||||||
|
set SIZE [findfile $base_dir/../binutils/size]
|
||||||
|
}
|
||||||
|
|
||||||
|
if ![info exists SIZEFLAGS] then {
|
||||||
|
set SIZEFLAGS ""
|
||||||
|
}
|
||||||
|
|
||||||
if ![info exists ELFEDIT] then {
|
if ![info exists ELFEDIT] then {
|
||||||
set ELFEDIT [findfile $base_dir/../binutils/elfedit]
|
set ELFEDIT [findfile $base_dir/../binutils/elfedit]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user