mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
Correct ordering problem in comm-data.exp
* testsuite/ld-elf/comm-data.exp: Build libcomm-data.so before attempting to read it to set ELF64.
This commit is contained in:
@ -48,19 +48,8 @@ if { [istarget "mips*vr4100*-*-elf*"] \
|
|||||||
append LFLAGS " -call_shared"
|
append LFLAGS " -call_shared"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set the pointer size according to the ELF flavor.
|
|
||||||
set AFLAGS ""
|
|
||||||
if [is_elf64 "tmpdir/libcomm-data.so"] {
|
|
||||||
append AFLAGS " --defsym ELF64=1"
|
|
||||||
}
|
|
||||||
# HPUX targets use a different .comm syntax.
|
|
||||||
if [istarget "*-*-hpux*"] {
|
|
||||||
append AFLAGS " --defsym HPUX=1"
|
|
||||||
}
|
|
||||||
|
|
||||||
set testname "Common symbol override test"
|
|
||||||
|
|
||||||
# Define a global symbol.
|
# Define a global symbol.
|
||||||
|
set testname "Common symbol override test"
|
||||||
run_ld_link_tests [list \
|
run_ld_link_tests [list \
|
||||||
[list \
|
[list \
|
||||||
"$testname (auxiliary shared object build)" \
|
"$testname (auxiliary shared object build)" \
|
||||||
@ -72,16 +61,18 @@ run_ld_link_tests [list \
|
|||||||
} \
|
} \
|
||||||
"libcomm-data.so" \
|
"libcomm-data.so" \
|
||||||
] \
|
] \
|
||||||
[list \
|
|
||||||
"libpr26580-1.so" \
|
|
||||||
"$LFLAGS -shared" "" \
|
|
||||||
"$AFLAGS_PIC $AFLAGS" \
|
|
||||||
{ pr26580-b.s } \
|
|
||||||
{ } \
|
|
||||||
"libpr26580-1.so" \
|
|
||||||
] \
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Set the pointer size according to the ELF flavor.
|
||||||
|
set AFLAGS ""
|
||||||
|
if [is_elf64 "tmpdir/libcomm-data.so"] {
|
||||||
|
append AFLAGS " --defsym ELF64=1"
|
||||||
|
}
|
||||||
|
# HPUX targets use a different .comm syntax.
|
||||||
|
if [istarget "*-*-hpux*"] {
|
||||||
|
append AFLAGS " --defsym HPUX=1"
|
||||||
|
}
|
||||||
|
|
||||||
# bfin-elf does not currently support copy relocs.
|
# bfin-elf does not currently support copy relocs.
|
||||||
setup_xfail "bfin-*-*"
|
setup_xfail "bfin-*-*"
|
||||||
clear_xfail "bfin-*-linux-uclibc*"
|
clear_xfail "bfin-*-linux-uclibc*"
|
||||||
@ -121,6 +112,14 @@ run_ld_link_tests [list \
|
|||||||
} \
|
} \
|
||||||
"comm-data3b" \
|
"comm-data3b" \
|
||||||
] \
|
] \
|
||||||
|
[list \
|
||||||
|
"libpr26580-1.so" \
|
||||||
|
"$LFLAGS -shared" "" \
|
||||||
|
"$AFLAGS_PIC $AFLAGS" \
|
||||||
|
{ pr26580-b.s } \
|
||||||
|
{ } \
|
||||||
|
"libpr26580-1.so" \
|
||||||
|
] \
|
||||||
[list \
|
[list \
|
||||||
"pr26580-1" \
|
"pr26580-1" \
|
||||||
"$LFLAGS --as-needed -Ltmpdir -lpr26580-1" "" \
|
"$LFLAGS --as-needed -Ltmpdir -lpr26580-1" "" \
|
||||||
|
Reference in New Issue
Block a user