[PATCH] D109109: [MC] Recursively calculate symbol offset

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 10 12:35:10 PDT 2021


MaskRay added a comment.

With a recursive `getSymbolOffsetImpl`, I am worried about infinite loop if two symbols are variables referencing each other.

`chained-alias-offset.s` works for ELF where `l_c is l_a + 1`.

So we should understand why it fails on Mach-O.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109109



More information about the llvm-commits mailing list