[PATCH] D130804: [lld-macho] Support EH frame pointer encodings that use sdata4

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 29 16:02:29 PDT 2022


int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added projects: lld-macho, All.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Previously we only supporting using the system pointer size (aka the
`absptr` encoding) because `llvm-mc`'s CFI directives always generate EH
frames with that encoding. But libffi uses 4-byte-encoded, hand-rolled
EH frames, so this patch adds support for it.

Fixes #56576.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130804

Files:
  lld/MachO/EhFrame.cpp
  lld/MachO/EhFrame.h
  lld/MachO/InputFiles.cpp
  lld/test/MachO/eh-frame-sdata4.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130804.448735.patch
Type: text/x-patch
Size: 8878 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220729/b7007c3e/attachment.bin>


More information about the llvm-commits mailing list