This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Objcopy and binary files
- To: mail at stefan-geuken dot de (Stefan Geuken)
- Subject: Re: Objcopy and binary files
- From: cgd at sibyte dot com (Chris G. Demetriou)
- Date: 01 Mar 2001 10:32:38 -0800
- Cc: binutils at sources dot redhat dot com
- References: <200102161845.KAA09028@elmo.cygnus.com> <3A9E90B2.AE84C3A7@stefan-geuken.de> <mailpost.983470725.23054@postal.sibyte.com>
mail@stefan-geuken.de (Stefan Geuken) writes:
> I called the new parameter --binary-architecture=arg respectively -B, where arg is the architecture for the output file (e.g. i386, powerpc, ...).
>
> Example:
>
> objcopy -I binary -O elf32-i386 -B i386 pic.bmp pic.bmp.o
> objdump -f pic.o
Is this capable of taking the same set of values that the objdump -m
flag is?
It might make sense to use -m, so that people who know about it in
objdump will have an easier time with it, but it doesn't matter
much...
It might also be best to call the long option '--output-architecture',
and make it generally settable, i.e. not just for binary files.
chris