Skip to contentSkip to conversation

How to get COFF-format code

DISCUSSION Lin, Nan-Hung 2 participants 3 messages Mar 9, 2001

lore
Share & tools
lore
#0 lore raw

Hello,

I use linux-2.4.0-test13-pre2 and
Processor Type as 8xx
Machine Type as TQM855L

The "make" only generates ELF-format code.
How to generate COFF-format code ?

Thanks for help.

------------------------------------------
Carl Lin [email protected]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

objcopy should be able to do this (it does everything else!), just specify that the output format be coff (ecoff?). I have not actually done this, so I'll leave it as an exercise to determine the proper set of flags.

objdump -i # list known target formats
objcopy -h # help: last line shows supported target formats

If *coff* is listed, you are in luck. If not, it will be some more work (I'm sure that was an understatement :-).

My reference linux system is x86 and doesn't support coff. Your mileage may vary.

gvb

Quoted 6 lines · Nan-Hung

Hello,

I use linux-2.4.0-test13-pre2 and
Processor Type as 8xx
Machine Type as TQM855L

Quoted 9 lines

The "make" only generates ELF-format code.
How to generate COFF-format code ?

Thanks for help.

------------------------------------------
Carl Lin [email protected]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Lin, Nan-Hung

Hey, look at that. Tornado-2 (gcc-based) cross compiler supports a flavor of coff:

C:\tmp>objdumpppc -i
BFD header file version cygnus-2.6
elf32-powerpc
(header big endian, data big endian)
powerpc:common
aixcoff-rs6000
(header big endian, data big endian)
powerpc:common
rs6000:6000

gvb

Quoted 6 lines · Nan-Hung

Hello,

I use linux-2.4.0-test13-pre2 and
Processor Type as 8xx
Machine Type as TQM855L

Quoted 9 lines

The "make" only generates ELF-format code.
How to generate COFF-format code ?

Thanks for help.

------------------------------------------
Carl Lin [email protected]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/