[01/11] x86: have non-PE/COFF BEOS be recognized as ELF

Message ID 1afec482-804f-e104-1f06-fe0a6481807f@suse.com
State New
Headers show
Series
  • gas: adjustments to floating point data directives handling
Related show

Commit Message

Paul Hua via Binutils July 23, 2021, 6:51 a.m.
BEOS, unless explicitly requesting *-*-beospe* targets, uses standard
ELF. None of the newly enabled tests in the testsuite fail for me.

Comments

Paul Hua via Binutils July 23, 2021, 1:13 p.m. | #1
On Thu, Jul 22, 2021 at 11:51 PM Jan Beulich <jbeulich@suse.com> wrote:
>

> BEOS, unless explicitly requesting *-*-beospe* targets, uses standard

> ELF. None of the newly enabled tests in the testsuite fail for me.

>

> --- a/binutils/testsuite/lib/binutils-common.exp

> +++ b/binutils/testsuite/lib/binutils-common.exp

> @@ -54,10 +54,15 @@ proc is_elf_format {} {

>          && ![istarget *-*-wasm32*]

>          && ![istarget avr-*-*]

>          && ![istarget hppa*64*-*-hpux*]

> +        && ![istarget i?86-*-beos*]

>          && ![istarget ia64-*-hpux*] } {

>         return 0

>      }

>

> +    if { [istarget i?86-*-beospe*] } {

> +       return 0

> +    }

> +

>      if { [istarget *-*-linux*ecoff*]

>          || [istarget *-*-rtemscoff*] } {

>         return 0

>


OK.

Thanks.

-- 
H.J.

Patch

--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -54,10 +54,15 @@  proc is_elf_format {} {
 	 && ![istarget *-*-wasm32*]
 	 && ![istarget avr-*-*]
 	 && ![istarget hppa*64*-*-hpux*]
+	 && ![istarget i?86-*-beos*]
 	 && ![istarget ia64-*-hpux*] } {
 	return 0
     }
 
+    if { [istarget i?86-*-beospe*] } {
+	return 0
+    }
+
     if { [istarget *-*-linux*ecoff*]
 	 || [istarget *-*-rtemscoff*] } {
 	return 0