How to get COFF-format code

3 messages, 2 authors, 2001-03-09 · open the first message on its own page

How to get COFF-format code

From: Lin, Nan-Hung <hidden>
Date: 2001-03-09 09:57:02

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               carl@fiberlogic.com

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

Re: How to get COFF-format code

From: Jerry Van Baren <hidden>
Date: 2001-03-09 12:21:30

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


At 05:57 PM 3/9/01 +0800, Lin, Nan-Hung wrote:
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               carl@fiberlogic.com

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

Re: How to get COFF-format code

From: Jerry Van Baren <hidden>
Date: 2001-03-09 12:23:26

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


At 05:57 PM 3/9/01 +0800, Lin, Nan-Hung wrote:
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               carl@fiberlogic.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help