mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +08:00
Properly check x32 support
* gas/i386/ilp32/ilp32.exp (gas_64_check): Renamed to ... (gas_x32_check): This. Check elf32-x86-64. Remove Solaris check. * gas/i386/ilp32/cfi/ilp32.exp: Likewise. * gas/i386/ilp32/elf/ilp32.exp: Likewise. * gas/i386/ilp32/lns/ilp32.exp: Likewise.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* gas/i386/ilp32/ilp32.exp (gas_64_check): Renamed to ...
|
||||||
|
(gas_x32_check): This. Check elf32-x86-64.
|
||||||
|
Remove Solaris check.
|
||||||
|
* gas/i386/ilp32/cfi/ilp32.exp: Likewise.
|
||||||
|
* gas/i386/ilp32/elf/ilp32.exp: Likewise.
|
||||||
|
* gas/i386/ilp32/lns/ilp32.exp: Likewise.
|
||||||
|
|
||||||
2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
|
2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* gas/i386/ilp32/ilp32.exp: Skip Solaris.
|
* gas/i386/ilp32/ilp32.exp: Skip Solaris.
|
||||||
|
@ -1,19 +1,15 @@
|
|||||||
#
|
#
|
||||||
# x86-64 ILP32 tests
|
# x86-64 ILP32 tests
|
||||||
#
|
#
|
||||||
proc gas_64_check { } {
|
proc gas_x32_check { } {
|
||||||
global NM
|
global NM
|
||||||
global NMFLAGS
|
global NMFLAGS
|
||||||
|
|
||||||
set status [gas_host_run "$NM $NMFLAGS --help" ""]
|
set status [gas_host_run "$NM $NMFLAGS --help" ""]
|
||||||
return [regexp "targets:.*x86-64" [lindex $status 1]];
|
return [regexp "targets:.*elf32-x86-64" [lindex $status 1]];
|
||||||
}
|
}
|
||||||
|
|
||||||
if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then {
|
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then {
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
|
|
||||||
|
|
||||||
global ASFLAGS
|
global ASFLAGS
|
||||||
set old_ASFLAGS "$ASFLAGS"
|
set old_ASFLAGS "$ASFLAGS"
|
||||||
|
@ -1,19 +1,15 @@
|
|||||||
#
|
#
|
||||||
# x86-64 ILP32 tests
|
# x86-64 ILP32 tests
|
||||||
#
|
#
|
||||||
proc gas_64_check { } {
|
proc gas_x32_check { } {
|
||||||
global NM
|
global NM
|
||||||
global NMFLAGS
|
global NMFLAGS
|
||||||
|
|
||||||
set status [gas_host_run "$NM $NMFLAGS --help" ""]
|
set status [gas_host_run "$NM $NMFLAGS --help" ""]
|
||||||
return [regexp "targets:.*x86-64" [lindex $status 1]];
|
return [regexp "targets:.*elf32-x86-64" [lindex $status 1]];
|
||||||
}
|
}
|
||||||
|
|
||||||
if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then {
|
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then {
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
|
|
||||||
|
|
||||||
global ASFLAGS
|
global ASFLAGS
|
||||||
set old_ASFLAGS "$ASFLAGS"
|
set old_ASFLAGS "$ASFLAGS"
|
||||||
|
@ -1,19 +1,15 @@
|
|||||||
#
|
#
|
||||||
# x86-64 ILP32 tests
|
# x86-64 ILP32 tests
|
||||||
#
|
#
|
||||||
proc gas_64_check { } {
|
proc gas_x32_check { } {
|
||||||
global NM
|
global NM
|
||||||
global NMFLAGS
|
global NMFLAGS
|
||||||
|
|
||||||
set status [gas_host_run "$NM $NMFLAGS --help" ""]
|
set status [gas_host_run "$NM $NMFLAGS --help" ""]
|
||||||
return [regexp "targets:.*x86-64" [lindex $status 1]];
|
return [regexp "targets:.*elf32-x86-64" [lindex $status 1]];
|
||||||
}
|
}
|
||||||
|
|
||||||
if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then {
|
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then {
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
|
|
||||||
|
|
||||||
global ASFLAGS
|
global ASFLAGS
|
||||||
set old_ASFLAGS "$ASFLAGS"
|
set old_ASFLAGS "$ASFLAGS"
|
||||||
|
@ -1,19 +1,15 @@
|
|||||||
#
|
#
|
||||||
# x86-64 ILP32 tests
|
# x86-64 ILP32 tests
|
||||||
#
|
#
|
||||||
proc gas_64_check { } {
|
proc gas_x32_check { } {
|
||||||
global NM
|
global NM
|
||||||
global NMFLAGS
|
global NMFLAGS
|
||||||
|
|
||||||
set status [gas_host_run "$NM $NMFLAGS --help" ""]
|
set status [gas_host_run "$NM $NMFLAGS --help" ""]
|
||||||
return [regexp "targets:.*x86-64" [lindex $status 1]];
|
return [regexp "targets:.*elf32-x86-64" [lindex $status 1]];
|
||||||
}
|
}
|
||||||
|
|
||||||
if [expr [istarget "i*86-*-solaris*"] || [istarget "x86_64-*-solaris*"]] then {
|
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_x32_check] && [is_elf_format]] then {
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
|
|
||||||
|
|
||||||
global ASFLAGS
|
global ASFLAGS
|
||||||
set old_ASFLAGS "$ASFLAGS"
|
set old_ASFLAGS "$ASFLAGS"
|
||||||
|
Reference in New Issue
Block a user