MCPcopy Create free account
hub / github.com/WAVM/WAVM / parseAndCorrectEhFrameFDEs

Function parseAndCorrectEhFrameFDEs

Lib/ObjectLinker/MachO.cpp:291–367  ·  view source on GitHub ↗

Parse FDEs in an eh_frame section, building a function-address-to-FDE-offset map for compact unwind synthesis. If correctPcRelValues is true (x86-64), also corrects pcrel pc_begin and LSDA fields that LLVM resolved at assembly time; our layout may have changed relative distances. On AArch64, LLVM emits explicit relocations for these, so no correction is needed.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

linkMachOArchFunction · 0.85

Calls 4

parseCIEEncodingsFunction · 0.85
getEncodedPointerSizeFunction · 0.85
correctEhFramePcRel64Function · 0.85
U64Function · 0.85

Tested by

no test coverage detected