Add pei-x86-64 target to x86_64-*-rtems*

Message ID 87sh6o3ecn.fsf@mail.gmail.com
State New
Headers show
Series
  • Add pei-x86-64 target to x86_64-*-rtems*
Related show

Commit Message

Amaan Cheval May 18, 2018, 8:20 p.m.
Hi!

This patch adds the pei-x86-64 target to bfd so that the RTEMS tools like
objcopy can be used to generate UEFI application image files from ELFs.

Cheers,
Amaan
---
bfd/ChangeLog:

2018-05-19  Amaan Cheval  <amaan.cheval@gmail.com>

	* config.bfd: Add pei-x86-64 target to x86_64-*-rtems*.

---

Comments

Amaan Cheval May 23, 2018, 6:33 a.m. | #1
Hi! I just thought I'd send out a quick email to see if anyone had any
questions or wanted any changes to get this patch upstreamed. Let me
know!

On Sat, May 19, 2018 at 1:50 AM, Amaan Cheval <amaan.cheval@gmail.com> wrote:
>

> Hi!

>

> This patch adds the pei-x86-64 target to bfd so that the RTEMS tools like

> objcopy can be used to generate UEFI application image files from ELFs.

>

> Cheers,

> Amaan

> ---

> bfd/ChangeLog:

>

> 2018-05-19  Amaan Cheval  <amaan.cheval@gmail.com>

>

>         * config.bfd: Add pei-x86-64 target to x86_64-*-rtems*.

>

> ---

>

> diff --git a/bfd/config.bfd b/bfd/config.bfd

> index 0db8ed4562..f8ca72b332 100644

> --- a/bfd/config.bfd

> +++ b/bfd/config.bfd

> @@ -665,6 +665,10 @@ case "${targ}" in

>    x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia)

>      targ_defvec=x86_64_elf64_vec

>      targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"

> +    case "${targ}" in

> +      x86_64-*-rtems*)

> +    targ_selvecs="${targ_selvecs} x86_64_pei_vec"

> +    esac

>      want64=true

>      ;;

>    x86_64-*-dragonfly*)
Amaan Cheval May 30, 2018, 2:21 p.m. | #2
Hi! Just thought I'd send out another nudge in case this patch slipped
through the cracks. :)

On Wed, May 23, 2018 at 12:03 PM, Amaan Cheval <amaan.cheval@gmail.com> wrote:
> Hi! I just thought I'd send out a quick email to see if anyone had any

> questions or wanted any changes to get this patch upstreamed. Let me

> know!

>

> On Sat, May 19, 2018 at 1:50 AM, Amaan Cheval <amaan.cheval@gmail.com> wrote:

>>

>> Hi!

>>

>> This patch adds the pei-x86-64 target to bfd so that the RTEMS tools like

>> objcopy can be used to generate UEFI application image files from ELFs.

>>

>> Cheers,

>> Amaan

>> ---

>> bfd/ChangeLog:

>>

>> 2018-05-19  Amaan Cheval  <amaan.cheval@gmail.com>

>>

>>         * config.bfd: Add pei-x86-64 target to x86_64-*-rtems*.

>>

>> ---

>>

>> diff --git a/bfd/config.bfd b/bfd/config.bfd

>> index 0db8ed4562..f8ca72b332 100644

>> --- a/bfd/config.bfd

>> +++ b/bfd/config.bfd

>> @@ -665,6 +665,10 @@ case "${targ}" in

>>    x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia)

>>      targ_defvec=x86_64_elf64_vec

>>      targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"

>> +    case "${targ}" in

>> +      x86_64-*-rtems*)

>> +    targ_selvecs="${targ_selvecs} x86_64_pei_vec"

>> +    esac

>>      want64=true

>>      ;;

>>    x86_64-*-dragonfly*)

Patch

diff --git a/bfd/config.bfd b/bfd/config.bfd
index 0db8ed4562..f8ca72b332 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -665,6 +665,10 @@  case "${targ}" in
   x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia)
     targ_defvec=x86_64_elf64_vec
     targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"
+    case "${targ}" in
+      x86_64-*-rtems*)
+    targ_selvecs="${targ_selvecs} x86_64_pei_vec"
+    esac
     want64=true
     ;;
   x86_64-*-dragonfly*)