Details
Details
Diff Detail
Diff Detail
Event Timeline
ELF/InputFiles.cpp | ||
---|---|---|
504 | With this Body never gets to if (GV && GV->isThreadLocal()) Body->Type = STT_TLS; so STT_TLS (and on trunk CanOmitFromDynSym) is never set. Maybe we could split this function in two? One uses early returns to just construct the Body and the second one sets STT_TLS and CanOmitFromDynSym. | |
test/ELF/lto/comdat2.ll | ||
4 | I think this test already passes when linking in this order, no? I think it is "%t2.o %t.o" that is currently broken. How about just testing both orders? |
Comment Actions
Addressed comments. If you don't like the helper names, feel free to suggest better ones.
Comment Actions
LGTM with a nit.
ELF/InputFiles.cpp | ||
---|---|---|
522 | This helper doesn't help much. Please inline it. |
With this Body never gets to
so STT_TLS (and on trunk CanOmitFromDynSym) is never set.
Maybe we could split this function in two? One uses early returns to just construct the Body and the second one sets STT_TLS and CanOmitFromDynSym.