This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Magic number in BFD


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
        





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]