This is the mail archive of the gcc-bugs@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: Dwarf2 FDE CIE offset


On Fri, Dec 07, 2001 at 07:48:11PM +1030, Alan Modra wrote:
> Why is the dwarf2 unwind FDE CIE offset calculated as
> ". - section_start_label" while dwarf2 debug info uses
> "section_start_label - 0"?  In particular, why the sign change?

To not require a runtime relocation.

> If gcc used "section_start_label - ." instead, then the assembler could
> use a pc-relative reloc referring to .Lframe1.

True, that would also have worked.  Not all target object files
(even in elf) have pc-relative relocs though, so it seems that
you'd not really have solved the problem.

> Any hope of a change here?

No.


r~


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