Skip to content

Commit 01a5162

Browse files
committed
[ELF] Slightly speed up Symbol::includeInDynsym. NFC
1 parent 7330fd2 commit 01a5162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/Symbols.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ bool Symbol::includeInDynsym() const {
286286
// expects undefined weak symbols not to exist in .dynsym, e.g.
287287
// __pthread_mutex_lock reference in _dl_add_to_namespace_list,
288288
// __pthread_initialize_minimal reference in csu/libc-start.c.
289-
return !(config->noDynamicLinker && isUndefWeak());
289+
return !(isUndefWeak() && config->noDynamicLinker);
290290

291291
return exportDynamic || inDynamicList;
292292
}

0 commit comments

Comments
 (0)