[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dwarf changes
From: |
Nick Clifton |
Subject: |
Re: Dwarf changes |
Date: |
Mon, 20 Nov 2017 11:02:08 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
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
- Dwarf changes, Parul Chahar, 2017/11/20
- Re: Dwarf changes,
Nick Clifton <=