summaryrefslogtreecommitdiffstats
path: root/src/build/linker/linker.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/build/linker/linker.C')
-rw-r--r--src/build/linker/linker.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build/linker/linker.C b/src/build/linker/linker.C
index 167da1858..fb154d989 100644
--- a/src/build/linker/linker.C
+++ b/src/build/linker/linker.C
@@ -845,7 +845,7 @@ bool Object::perform_local_relocations()
else if (i->type & Symbol::TLS_OFFSET)
{
// Set value to TLS offset.
- address = i->addend;
+ address = i->addend - VFS_PPC64_DTPREL_OFFSET;
needs_relocation = false;
relocation = address;
}
OpenPOWER on IntegriCloud