1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-11 05:46:58 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-02 15:56:41 +09:00
parent ea3023f76c
commit 771408cbf8
2 changed files with 2 additions and 16 deletions

View File

@ -129,16 +129,9 @@ void InputSection::relocate(u8 *buf) {
case R_X86_64_TLSGD:
case R_X86_64_TLSLD:
case R_X86_64_DTPOFF32:
error(toString(this) + ": unknown relocation: " + std::to_string(rel.getType(false)));
// TODO
break;
case R_X86_64_GOTTPOFF:
#if 0
llvm::outs() << "rel sym=" << (sym ? sym->name : "")
<< " gottp=" << Twine::utohexstr(sym ? sym->gottp_offset : 0)
<< " GOT=" << Twine::utohexstr(GOT)
<< " A=" << Twine::utohexstr(A)
<< " P=" << Twine::utohexstr(P)
<< "\n";
#endif
if (loc[-3] == 0x48 && loc[-2] == 0x8b) {
loc[-3] = 0x48;
loc[-2] = 0xc7;

View File

@ -196,13 +196,6 @@ void GotSection::relocate(u8 *buf) {
break;
case TPOFF:
*(u64 *)buf = sym->addr - out::tls_end;
#if 0
llvm::outs() << "tls_end=" << Twine::utohexstr(out::tls_end)
<< " sym=" << sym->name
<< " sym->gottp_offset=" << Twine::utohexstr(sym->gottp_offset)
<< " sym->addr=" << Twine::utohexstr(sym->addr)
<< "\n";
#endif
break;
case IREL:
break;