[PATCH] D92366: [lld-macho] Flesh out STABS implementation
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 30 22:30:01 PST 2020
int3 created this revision.
int3 added reviewers: lld-macho, clayborg.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
int3 requested review of this revision.
This addresses a lot of the comments in D89257: [lld-macho] Emit STABS symbols for debugging, and drop debug sections <https://reviews.llvm.org/D89257>. Ideally it'd have been
done in the same diff, but the commits in between make that difficult.
This diff implements:
- N_GSYM and N_STSYM, the STABS for global and static symbols
- Has the STABS reflect the section IDs of their referent symbols
- Ensures we don't fail when encountering absolute symbols or files with no debug info
- Sorts STABS symbols by file to minimize the number of N_OSO entries
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D92366
Files:
lld/MachO/InputFiles.cpp
lld/MachO/InputFiles.h
lld/MachO/SyntheticSections.cpp
lld/MachO/SyntheticSections.h
lld/test/MachO/stabs.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92366.308545.patch
Type: text/x-patch
Size: 11374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201201/44366656/attachment.bin>
More information about the llvm-commits
mailing list