This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: List of bfdnames?
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