[patch] Add bfd_target_info function to bfd and unify windres/windmc target information gathering

View: New views
2 Messages — Rating Filter:   Alert me  

[patch] Add bfd_target_info function to bfd and unify windres/windmc target information gathering

by Kai Tietz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

this patch adds to bfd's targets.c an new function, which is mainly a
move from code in windres/windmc about target information gathering.
This function is mainly the same as bfd_find_target function, but it
allows to query optional for endianess, underscoring-character, and
architecture for the target, too.
This function I want to use in gas, dlltool, and ld for implementing
the underscoring detection for specific targets in a future patch.

ChangeLog for bfd

2009-11-05  Kai Tietz  <kai.tietz@...>

        * targets.c (bfd_target_info): New function.
        * bfd-in2.h: Regenerated.

ChangeLog for binutils

2009-11-05  Kai Tietz  <kai.tietz@...>

        * windmc.c (set_endianess): Use bfd_target_info.
        * windres.c (set_endianess): Likewise.
        (find_arch_match): Removed.


Tested for i686-pc-cygwin, i686-pc-mingw32, and x86_64-pc-mingw32. Ok for apply?

Cheers,
Kai

--
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


bfd_target_info.diff (10K) Download Attachment

Re: [patch] Add bfd_target_info function to bfd and unify windres/windmc target information gathering

by Kai Tietz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Just want to ping this.

Cheers,
Kai

2009/11/5 Kai Tietz <ktietz70@...>:

> Hello,
>
> this patch adds to bfd's targets.c an new function, which is mainly a
> move from code in windres/windmc about target information gathering.
> This function is mainly the same as bfd_find_target function, but it
> allows to query optional for endianess, underscoring-character, and
> architecture for the target, too.
> This function I want to use in gas, dlltool, and ld for implementing
> the underscoring detection for specific targets in a future patch.
>
> ChangeLog for bfd
>
> 2009-11-05  Kai Tietz  <kai.tietz@...>
>
>        * targets.c (bfd_target_info): New function.
>        * bfd-in2.h: Regenerated.
>
> ChangeLog for binutils
>
> 2009-11-05  Kai Tietz  <kai.tietz@...>
>
>        * windmc.c (set_endianess): Use bfd_target_info.
>        * windres.c (set_endianess): Likewise.
>        (find_arch_match): Removed.
>
>
> Tested for i686-pc-cygwin, i686-pc-mingw32, and x86_64-pc-mingw32. Ok for apply?
>
> Cheers,
> Kai
>
> --
> |  (\_/) This is Bunny. Copy and paste
> | (='.'=) Bunny into your signature to help
> | (")_(") him gain world domination
>



--
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination