1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-13 09:39:13 +03:00

[Mach-O] wip

This commit is contained in:
Rui Ueyama 2021-10-23 10:59:13 +09:00
parent 0430c806c4
commit 834d0045ae
3 changed files with 5 additions and 1 deletions

View File

@ -168,6 +168,8 @@ int main(int argc, char **argv) {
<< " install_name=" << tbd.install_name
<< " current_version=" << tbd.current_version
<< " parent_umbrella=" << tbd.parent_umbrella;
for (std::string_view sym : tbd.exports)
SyncOut(ctx) << " sym=" << sym;
exit(0);
}

View File

@ -78,7 +78,7 @@ public:
void parse(Context &ctx);
void resolve_symbols(Context &ctx);
std::string install_name;
std::string_view install_name;
private:
DylibFile() = default;

View File

@ -183,6 +183,8 @@ void DylibFile::parse(Context &ctx) {
switch (get_file_type(mf)) {
case FileType::TAPI: {
TextDylib tbd = parse_tbd(ctx, mf);
for (std::string_view sym : tbd.exports)
syms.push_back(intern(ctx, sym));
install_name = tbd.install_name;
}
case FileType::MACH_DYLIB: