H8300-elf-as DWARF problem preliminary analysis

Jeff Law law@porcupine.slc.redhat.com
Mon Aug 12 15:16:00 GMT 2002


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



More information about the Binutils mailing list