]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Testsuite: Return ELF as object format for Solaris targets
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 4 Jan 2026 22:22:38 +0000 (23:22 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 6 Jan 2026 10:27:29 +0000 (11:27 +0100)
Like for Darwin/HP-UX/AIX, this avoids requiring the presence of objdump.

gcc/testsuite/
* lib/file-format.exp (gcc_target_object_format): Always return ELF
for Solaris targets.

gcc/testsuite/lib/file-format.exp

index 151354ec8d3d29e9d6e13eb6c006bc688fa6f372..ff6a70aeb6938e9d55637920f99193ab195e75ea 100644 (file)
@@ -22,7 +22,7 @@
 # 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
 
@@ -41,6 +41,9 @@ proc gcc_target_object_format { } {
     } 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