List of bfdnames?

Ian Lance Taylor iant@google.com
Sun Nov 18 08:13:00 GMT 2012


On Sat, Nov 17, 2012 at 9:07 PM, Jeffrey Walton <noloader@gmail.com> wrote:
>
> Where can I find a list of bfdnames used by objcopy? The man pages do
> not list them.
>
> The two flags giving me problems:
>
>     # 32-bit
>     --output elf32-i386 --binary-architecture i386
>
> I'm having troubles on a 64-bit platform. I have not had success with
> amd64 or x86_64. I also tried Elf64 with no success.

If you run "objcopy --help" you will see the valid options for the
--output option listed at the end, as "supported targets."

As far as I know the choices for the --binary-architecture option are
undocumented.  They are the strings in bfd/cpu-XXX.c where XXX is the
processor you are using.  There is a mapping from the target
configuration triplet to the processor in bfd/config.bfd.

Ian



More information about the Binutils mailing list