This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: H8300-elf-as DWARF problem preliminary analysis
- From: Jeff Law <law at porcupine dot slc dot redhat dot com>
- To: "Nitin Gupta, Noida" <niting at noida dot hcltech dot com>
- Cc: Nick Clifton <nickc at redhat dot com>, binutils at sources dot redhat dot com
- Date: Mon, 12 Aug 2002 16:20:07 -0600
- Subject: Re: H8300-elf-as DWARF problem preliminary analysis
- Reply-to: law at redhat dot com
In message <E04CF3F88ACBD5119EFE00508BBB212103E84514@exch-01.noida.hcltech.com>
, "Nitin Gupta, Noida" writes:
>The work around fix:
> I'm able to fix the problem
> by adding following lines in tc_gen_reloc
> of tc-h8300.c
>
>line 1678:
> if (fixp->fx_subsy)
> {
> rel->addend -= S_GET_VALUE (fixp->fx_subsy);
> fixp->fx_subsy = 0;
> }
>
> Is it safe? Please comment.
Instead of referring to a specific line #, produce a context diff
(diff -c3p oldfile newfile). That way we can see what code is changing
even if the line numbers do not match up.
At the very least you have to verify that the two symbols are in the
same section.
jeff