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:
parent
0430c806c4
commit
834d0045ae
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user