Generates GOT entry, R_X86_64_TPOFF64 is added to RelaDyn.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I was need to upgrade it because of code changes in r252979. Could this please be reviewed again ?
ELF/InputSection.cpp | ||
---|---|---|
143 | Target->getGotReloc(Body) ? |
Comment Actions
Problem here is that currently there are two places in code that looks very similiar:
1) Type = Body.isTLS() ? Target->getTlsGotReloc() : Target->getGotRefReloc(); ... 2) unsigned GotReloc = Body->isTLS() ? Target->getTlsGotReloc() : Target->getGotReloc();
But getGotRefReloc() and getGotReloc() are different calls. And it seems I cant just use the body argument to know which one relocation return for them in that places.
Comment Actions
Problem here is that currently there are two places in code that looks very similiar:
- Type = Body.isTLS() ? Target->getTlsGotReloc() : Target->getGotRefReloc(); ...
- unsigned GotReloc = Body->isTLS() ? Target->getTlsGotReloc() : Target->getGotReloc();
But getGotRefReloc() and getGotReloc() are different calls. And it seems I cant just use the body argument to know which one relocation return for them in that places.
Fair enough.
Maybe just pass body to getGotReloc?