# formats. This procedure is defined in a separate file so that it can be
# included by other expect library files.
-proc gcc_target_object_format { } {
+proc gcc_target_object_format { } {
global gcc_target_object_format_saved
global tool
} elseif { [istarget *-*-aix*] } {
# AIX doesn't necessarily have objdump, so hand-code it.
set gcc_target_object_format_saved coff
+ } elseif { [istarget *-*-solaris*] } {
+ # Solaris doesn't necessarily have objdump, so hand-code it.
+ set gcc_target_object_format_saved elf
} elseif { [istarget *-*-amdhsa*] } {
# AMD GCN uses LLVM objdump which is not CLI-compatible
set gcc_target_object_format_saved elf