diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-01 20:59:20 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-01 20:59:20 +0000 |
| commit | 80350c116f86dbb87e055a630b1b2be0c66b244b (patch) | |
| tree | 022e6b2a1e0e5a03028fa465a30338d8f6dbbf48 /ELF/Relocations.cpp | |
| parent | cbb560c9ba3c378189c7a438bed9977b482410fb (diff) | |
Notes
Diffstat (limited to 'ELF/Relocations.cpp')
| -rw-r--r-- | ELF/Relocations.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ELF/Relocations.cpp b/ELF/Relocations.cpp index 5564ea246eeb..54cc6dd89d46 100644 --- a/ELF/Relocations.cpp +++ b/ELF/Relocations.cpp @@ -360,9 +360,9 @@ static bool isStaticLinkTimeConstant(RelExpr E, uint32_t Type, // These expressions always compute a constant if (isRelExprOneOf<R_SIZE, R_GOT_FROM_END, R_GOT_OFF, R_MIPS_GOT_LOCAL_PAGE, R_MIPS_GOT_OFF, R_MIPS_GOT_OFF32, R_MIPS_GOT_GP_PC, - R_MIPS_TLSGD, R_GOT_PAGE_PC, R_GOT_PC, R_PLT_PC, - R_TLSGD_PC, R_TLSGD, R_PPC_PLT_OPD, R_TLSDESC_CALL, - R_TLSDESC_PAGE, R_HINT>(E)) + R_MIPS_TLSGD, R_GOT_PAGE_PC, R_GOT_PC, + R_GOTONLY_PC_FROM_END, R_PLT_PC, R_TLSGD_PC, R_TLSGD, + R_PPC_PLT_OPD, R_TLSDESC_CALL, R_TLSDESC_PAGE, R_HINT>(E)) return true; // These never do, except if the entire file is position dependent or if @@ -1015,7 +1015,7 @@ ThunkSection *ThunkCreator::getISThunkSec(InputSection *IS, OutputSection *OS) { ThunkSection *TS = ThunkedSections.lookup(IS); if (TS) return TS; - auto *TOS = cast<OutputSection>(IS->OutSec); + auto *TOS = IS->getParent(); TS = make<ThunkSection>(TOS, IS->OutSecOff); ThunkSections[TOS].push_back(TS); ThunkedSections[IS] = TS; |
