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]

RE: [PATCH: re-submit] - fix offsets in DWARF when linking relocatable (-r)


> OK, then, the last time _that_ came up, I think I said that if you
> want to run the debugger on .o files than it should understand relocs,
> as these are an essential part of the .o file format, and that
> includes knowing that RELA relocs generally replace the contents of
> the location they're relocating.
>
> ... but I also said that I don't care that much, so long as there's a
> comment saying this is for compatibility with the vxworks debugger, so
> that future generations won't be puzzled over the code.

It's not only for vxworks debugger compatibility. Readelf for example is not
able to dump debug information correctly from .o file without that patch.

Igor


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