[PATCH] D143039: [AArch64] Unconditionally use DW_EH_PE_indirect|DW_EH_PE_pcrel personality/lsda/ttype encodings

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 16:04:19 PST 2023


MaskRay added a comment.

In D143039#4097973 <https://reviews.llvm.org/D143039#4097973>, @jyknight wrote:

>> For tiny and small code models, we use DW_EH_PE_sdata8 instead of GCC's
>> DW_EH_PE_sdata4. This is a deliberate choice to support personality-.eh_frame
>> offset > 2GiB.
>
> Does this actually make sense? In small/medium, these are all required to be within 2GB anyways, no?

This is what the existing comment intends to support: if .eh_frame resides at 0x30000000 while personality resides at 0x1000, this is valid small code model (4GiB instead of 2GiB!)

aarch64 small code model supports 4GiB max combined code and data.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143039/new/

https://reviews.llvm.org/D143039



More information about the llvm-commits mailing list