[LLVMbugs] [Bug 1380] NEW: EH frames must be emitted in one "atom".
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed May 2 13:23:28 PDT 2007
http://llvm.org/bugs/show_bug.cgi?id=1380
Summary: EH frames must be emitted in one "atom".
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
Currently there are two ways of registering eh function frames during runtime:
1. __register_frame_info call (and friends) in the early beginning (crtbegin.o).
2. Direct eh section inspection ("GLIBC" method).
Unfortunately, it seems the __register_frame_info call not always emitted (e.g.
crtbegin.o compiled during llvm-gcc compilation without LLVM itself lacks this
call).
The second approach uses some assumptions. One of the biggest assumption is that
entries in eh frame section are sorted according to PC's stored in entries. We
can easily achieve this, if we emit information at once in the end (like gcc
does). When we're emitting this information in separate "parts" (but in one
section, of course), linker can permute "parts" making sort assumption invalid.
This is needed for backward compatibility of generated eh information.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list