This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: H8300-elf-as DWARF problem preliminary analysis


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]