mirror of
https://github.com/rui314/mold.git
synced 2024-11-11 05:46:58 +03:00
temporary
This commit is contained in:
parent
ea3023f76c
commit
771408cbf8
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user