aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-05-30 21:22:40 +0000
committerRichard Henderson <rth@redhat.com>2005-05-30 21:22:40 +0000
commitf915360b43b500c11404c22d8198a3e94c9c762a (patch)
tree964bc9ad78cdd097b15d9c132bcb0bbb0020eac6 /bfd
parenta60a53c5fa5bf188c0548163613a35c60197670e (diff)
downloadgdb-f915360b43b500c11404c22d8198a3e94c9c762a.zip
gdb-f915360b43b500c11404c22d8198a3e94c9c762a.tar.gz
gdb-f915360b43b500c11404c22d8198a3e94c9c762a.tar.bz2
* elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for
the zero index relocs produced by elf64_alpha_relax_tls_get_addr.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-alpha.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4ecd9e2..3830be8 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-30 Richard Henderson <rth@redhat.com>
+
+ * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for
+ the zero index relocs produced by elf64_alpha_relax_tls_get_addr.
+
2005-05-29 Richard Henderson <rth@redhat.com>
* configure.in (--enable-secureplt): New.
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 03de6c5..095e94a 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -4098,7 +4098,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
/* If this is a tp-relative relocation against sym 0,
this is hackery from relax_section. Force the value to
- be the tls base. */
+ be the tls module base. */
if (r_symndx == 0
&& (r_type == R_ALPHA_TLSLDM
|| r_type == R_ALPHA_GOTTPREL
@@ -4106,7 +4106,7 @@ elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
|| r_type == R_ALPHA_TPRELHI
|| r_type == R_ALPHA_TPRELLO
|| r_type == R_ALPHA_TPREL16))
- value = tp_base;
+ value = dtp_base;
if (local_got_entries)
gotent = local_got_entries[r_symndx];