[PATCH] D89257: [lld-macho] Emit STABS symbols for debugging, and drop debug sections
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 20:14:32 PST 2020
int3 marked 2 inline comments as done.
int3 added inline comments.
================
Comment at: lld/MachO/SyntheticSections.cpp:610
+ stab.strx = stringTableSection.addString(saver.save(path.str()));
+ stab.desc = 1;
+ stabs.emplace_back(std::move(stab));
----------------
int3 wrote:
> clayborg wrote:
> > stab.value should be set to the modification date of the .o file here. If this is a path to a .o file, then the mod time of the .o file, and if this is a "foo.a(bar.o)", it needs to be the modification time of the .o file as mentioned in the BSD archive file data structures. This is important because sometimes .a file have multiple .o files with the same name and the only way to tell them apart is the mod time.
> yeah I was going to do it in a follow-up. Will add a TODO here. Didn't think about the archive case though, thanks for the tip!
Done in {D91318}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89257/new/
https://reviews.llvm.org/D89257
More information about the llvm-commits
mailing list