[PATCH] Add OpenBSD ARM Little Endian BFD support.

Frederic Cambus fred@statdns.com
Wed Aug 31 22:12:25 GMT 2022


On Tue, Aug 30, 2022 at 02:55:00PM +0100, Richard Earnshaw wrote:

> On 27/08/2022 18:28, Frederic Cambus wrote:

> > +  arm-*-openbsd*)
> > +    targ_defvec=arm_elf32_le_vec
> > +    targ_selvecs="arm_elf32_be_vec"
> > +    ;;
> 
> This is exactly the same content as the entry directly above it (netbsd), so
> please merge the two.  It's a maintenance burden to have a lot of duplicated
> entries.

Makes sense, and note taken. Revised diff inline below, and full patch
attached for convenience.

diff --git a/bfd/config.bfd b/bfd/config.bfd
index 8c7be5da38a..a79a0e2bf5b 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -90,7 +90,6 @@ case $targ in
  arm*-*-aout | \
  arm-*-coff | \
  arm*-*-netbsdaout* | \
- arm-*-openbsd* | \
  arm-*-oabi | \
  arm-*-riscix* | \
  arm*-*-symbianelf* | \
@@ -383,7 +382,7 @@ case "${targ}" in
     targ_defvec=arm_elf32_be_vec
     targ_selvecs="arm_elf32_le_vec"
     ;;
-  arm-*-netbsd*)
+  arm-*-netbsd* | arm-*-openbsd*)
     targ_defvec=arm_elf32_le_vec
     targ_selvecs="arm_elf32_be_vec"
     ;;

-------------- next part --------------
>From 076f37ac639b142cd4db2de835b047b57bb349e3 Mon Sep 17 00:00:00 2001
From: Frederic Cambus <fred@statdns.com>
Date: Wed, 31 Aug 2022 15:27:57 +0200
Subject: [PATCH] Add OpenBSD ARM Little Endian BFD support.

bfd/ChangeLog:

2022-08-31  Frederic Cambus  <fred@statdns.com>

	* config.bfd (arm-*-openbsd*): Add target.
---
 bfd/config.bfd | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bfd/config.bfd b/bfd/config.bfd
index 8c7be5da38a..a79a0e2bf5b 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -90,7 +90,6 @@ case $targ in
  arm*-*-aout | \
  arm-*-coff | \
  arm*-*-netbsdaout* | \
- arm-*-openbsd* | \
  arm-*-oabi | \
  arm-*-riscix* | \
  arm*-*-symbianelf* | \
@@ -383,7 +382,7 @@ case "${targ}" in
     targ_defvec=arm_elf32_be_vec
     targ_selvecs="arm_elf32_le_vec"
     ;;
-  arm-*-netbsd*)
+  arm-*-netbsd* | arm-*-openbsd*)
     targ_defvec=arm_elf32_le_vec
     targ_selvecs="arm_elf32_be_vec"
     ;;



More information about the Binutils mailing list