diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-09-17 16:37:26 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-09-17 18:42:47 +0200 |
| commit | 5391541f11570dc444bfb79e5cf0e89aa872d0b8 (patch) | |
| tree | cb52d2a38af4581be8ef16f099e570bd5c538741 /lib/std/Thread | |
| parent | dfcadd22bb71f1137aae532b78c1785d1c35e894 (diff) | |
| download | zig-5391541f11570dc444bfb79e5cf0e89aa872d0b8.tar.gz zig-5391541f11570dc444bfb79e5cf0e89aa872d0b8.zip | |
macho: do not assume every object has a symtab
For example, building stage2 requires an empty `empty.cc` source file
compiling which generates a valid translation unit with no symtab/strtab.
In this case, we cannot simply assume that every translation unit will
have a valid symtab; instead, we cautiously default the input symtab
and strtab fields to optional `null` to signal symtab's presence or its lack of.
In case the symtab is not present, we catch this fact when splitting
input sections into subsections and create a synthetic symbol per every
suitable section.
Diffstat (limited to 'lib/std/Thread')
0 files changed, 0 insertions, 0 deletions
