This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Magic number in BFD
- From: Nick Clifton <nickc at redhat dot com>
- To: "Vineet Sharma, Noida" <vineets at noida dot hcltech dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 25 Nov 2003 17:11:05 +0000
- Subject: Re: Magic number in BFD
- References: <1B3885BC15C7024C845AAC78314766C5EBB811@EXCH-01>
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