[PATCH] D76742: [lld] Add basic symbol table output
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 26 22:16:46 PDT 2020
int3 added inline comments.
================
Comment at: lld/test/MachO/symtab_basic.s:15
+# CHECK-NEXT: ]
+# CHECK-NEXT: Value:
+# CHECK-NEXT: }
----------------
Ktwu wrote:
> smeenai wrote:
> > I think we should check the values, to make sure they're written correctly. They should be consistent (they'll depend on the base address, but that should be fixed).
> I didn't put down a value because I didn't know, at this stage, how to tell if a value is correct or not. Is there another command I can invoke to see if these values are sane (like if readobj uses the value and hopefully doesn't crash, for example)?
you could use FileCheck's numeric substitution blocks to write these values as offsets from the start of the __text section. I'm doing something like that in dylink.s in D76252.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76742/new/
https://reviews.llvm.org/D76742
More information about the llvm-commits
mailing list