1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 16:48:04 +03:00

Fix a regression introduced in 0a8431b930

That change made test/macho/all-load.sh to hang up.
This commit is contained in:
Rui Ueyama 2022-08-16 15:43:51 +08:00
parent 000b51a60c
commit 6b27a7e9b3

View File

@ -658,7 +658,7 @@ ObjectFile<E>::mark_live_objects(Context<E> &ctx,
if (msym.is_undef() || (msym.is_common() && !sym.is_common))
if (InputFile<E> *file = sym.file)
if (file->is_alive.exchange(true) && !file->is_dylib)
if (!file->is_alive.exchange(true) && !file->is_dylib)
feeder((ObjectFile<E> *)file);
}