This is the mail archive of the binutils@sourceware.org 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: dwarf2 and linker relaxation problem


> > presence of modern Dwarf line info, the linker needs to read the line
> > number info, do the relaxations while adjusting the machine / source
> > mapping as needed, and then re-emit the line number info.
> >
> > I didn't see anything to do this in the BFD code --- thus my question.
>

So, it seems tha only one opcode/line advance should be changed in .debug_line 
in case of relaxation. Namely (for my target): 
  Special opcode 35: advance Address by 2 to 0x48140014 and Line by 2 to 18
  Special opcode 35: advance Address by 2 to 0x48140016 and Line by 2 to 20
  Special opcode 90: advance Address by 6 to 0x4814001c and Line by 1 to 21  
<- relaxed insn is here.
  Special opcode 34: advance Address by 2 to 0x4814001e and Line by 1 to 22
  Special opcode 34: advance Address by 2 to 0x48140020 and Line by 1 to 23
 
So, if the code 90 will be changed properly, everything should be Ok. Am I 
correct?

Cheers,
Dmitry.



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