This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Can I generate debug info without relocations?
- From: Jim Wilson <wilson at specifixinc dot com>
- To: Prashanth T <prasht at in dot ibm dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 05 Jan 2004 17:28:21 -0800
- Subject: Re: Can I generate debug info without relocations?
- References: <3FE83256.4020703@in.ibm.com>
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