This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Can I generate debug info without relocations?


Prashanth T wrote:
Is there a possibility to generate debug information (dwarf2) without relocations on IA64 or
S390?

I am not sure what question you are asking here.


All debug info formats used by all targets require the use of relocations. Otherwise, it is impossible to emit debug info containing variable addresses. These relocations get satisified by the linker which it assigns addresses to variables. Fully linked executables should not contain any debug info relocations, regardless of the debug info format.

If you meant to ask some other question, then please be more specific. This is probably more of a binutils question than a gcc question, if you are asking about section contents. I don't know the exact circumstances under which ld will create .rela sections.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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