diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-22 19:44:12 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-22 19:44:12 +0000 |
| commit | c53addf38e24e4dafe992aafb3ae928bfa8fdb0a (patch) | |
| tree | 5a8f08e745d2dbfdd66c9e4838a8b7eeb7f0453f /ELF/Target.cpp | |
| parent | 2dcc0c5ee66570f02392d1fbf29f573fa47258f8 (diff) | |
Notes
Diffstat (limited to 'ELF/Target.cpp')
| -rw-r--r-- | ELF/Target.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ELF/Target.cpp b/ELF/Target.cpp index 781d7fe3bc3f..cf7d912ad829 100644 --- a/ELF/Target.cpp +++ b/ELF/Target.cpp @@ -1693,6 +1693,8 @@ RelExpr ARMTargetInfo::getRelExpr(uint32_t Type, const SymbolBody &S, case R_ARM_TLS_IE32: // GOT(S) + A - P return R_GOT_PC; + case R_ARM_SBREL32: + return R_ARM_SBREL; case R_ARM_TARGET1: return Config->Target1Rel ? R_PC : R_ABS; case R_ARM_TARGET2: @@ -1832,6 +1834,7 @@ void ARMTargetInfo::relocateOne(uint8_t *Loc, uint32_t Type, case R_ARM_GOT_PREL: case R_ARM_REL32: case R_ARM_RELATIVE: + case R_ARM_SBREL32: case R_ARM_TARGET1: case R_ARM_TARGET2: case R_ARM_TLS_GD32: |
