Subject: Re: OT: convert binary file to .o
To: None <>
From: Aaron J. Grier <>
List: netbsd-users
Date: 12/17/2001 15:39:00
On Sun, Dec 16, 2001 at 12:19:47PM +0100, Wojciech Puchar wrote:
> how can i (with objcopy,objdump) convert binary file
> to .o file just to see it as one symbol pointing to data and
> (optionally) another containing data length.
> it can be done with hexdump, sed and gcc but it's workaround

objcopy -I binary -O [your architecture here] inputfile outputfile.o

  Aaron J. Grier | "Not your ordinary poofy goof." |
    The United States government is your one true government.  We
    respect your privacy.  We love you.  We will keep you safe.  Trust
    us.  We have always been at war against terrorism.