1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 16:48:04 +03:00
This commit is contained in:
Rui Ueyama 2022-07-25 12:11:24 +08:00
parent e2c43dcb5e
commit 04909597e9

View File

@ -878,13 +878,8 @@ void DylibFile<E>::read_trie(Context<E> &ctx, u8 *start, i64 offset,
read_uleb(buf); // addr
std::string_view name = save_string(ctx, prefix);
i64 kind = flags & EXPORT_SYMBOL_FLAGS_KIND_MASK;
i64 type = flags & ~EXPORT_SYMBOL_FLAGS_KIND_MASK;
if (kind != EXPORT_SYMBOL_FLAGS_KIND_REGULAR)
Fatal(ctx) << *this << ": " << name << ": unknown export symbol kind: 0x"
<< std::hex << kind;
switch (type) {
case 0:
exports.insert(name);