Magic number in BFD

Nick Clifton nickc@redhat.com
Tue Nov 25 17:14:00 GMT 2003
Hi Vineet,

> I have ported binutils to new target, but when I enable bfd for gas,
> the bfd does not writes the magic number in the output file(COFF),
> although I have defined it(MAGIC Number) in include/coff/FOO.h. Do I
> need to write some special function or how do I handle it.

You need to add some code to bfd/coffcode.h.  Look at the functions
"coff_set_arch_mach_hook", "coff_set_flags" and
"coff_write_object_contents"

Cheers
        Nick
        






More information about the Binutils mailing list