diff options
Diffstat (limited to 'lld/ELF/InputSection.h')
-rw-r--r-- | lld/ELF/InputSection.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h index 1e243e8b084..d182e0ae065 100644 --- a/lld/ELF/InputSection.h +++ b/lld/ELF/InputSection.h @@ -59,6 +59,12 @@ enum RelExpr { R_TLSLD_PC }; +inline bool refersToGotEntry(RelExpr Expr) { + return Expr == R_GOT || Expr == R_GOT_OFF || Expr == R_MIPS_GOT || + Expr == R_MIPS_GOT_LOCAL || Expr == R_GOT_PAGE_PC || + Expr == R_GOT_PC || Expr == R_GOT_FROM_END; +} + struct Relocation { RelExpr Expr; uint32_t Type; |