Skip to content

Commit 08fde96

Browse files
committed
check ABSOLUTE before TLS
1 parent 7cdff15 commit 08fde96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lld/wasm/SyntheticSections.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,10 @@ void GlobalSection::generateRelocationCode(raw_ostream &os, bool TLS) const {
440440
: WASM_OPCODE_I32_ADD;
441441

442442
for (const Symbol *sym : internalGotSymbols) {
443-
if (TLS != sym->isTLS())
444-
continue;
445443
if (sym->flags & WASM_SYMBOL_ABSOLUTE)
446444
continue;
445+
if (TLS != sym->isTLS())
446+
continue;
447447

448448
if (auto *d = dyn_cast<DefinedData>(sym)) {
449449
// Get __memory_base

0 commit comments

Comments
 (0)