Hi Parul,
> I have done porting of GNU binutils for a new architecture.
> Can you tell me if I have to do any changes for dwarf, while porting.
There are a few places where you will need to add dwarf support:
* In your assembler function that generates an instruction (usually
md_assemble or one of its subroutines) you should call dwarf2_emit_insn
to let the dwarf code know how many bytes have been generated.
* In the binutils/readelf.c source file you should make sure that any of
the relocations that you generate against DWARF sections are covered
by one of the is_32bit_abs_reloc() ... is_none_reloc() functions.
That should be it. Running the testsuites may expose a couple of places
that I have forgotten however.
Cheers
Nick
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils