summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@cavium.com>2013-09-25 17:55:05 +0000
committerAndrew Pinski <apinski@cavium.com>2013-09-25 17:55:05 +0000
commit99161bdc5ff00e6fe13d0f02d0d96af4b1c725dc (patch)
tree2c5585dbcafc8b44745f5d075f01e773917b4c55 /bfd
parent20d9c451b5e120cdabc5bc2d7eafc6fc96f9d98c (diff)
downloadbinutils-redhat-99161bdc5ff00e6fe13d0f02d0d96af4b1c725dc.tar.gz
2013-08-25 Andrew Pinski <apinski@cavium.com>
* elfnn-aarch64.c (TCB_SIZE): Base on the ARCH_SIZE rather than a fixed size of 16.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfnn-aarch64.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 335bc7f06e..25f41c740f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-25 Andrew Pinski <apinski@cavium.com>
+
+ * elfnn-aarch64.c (TCB_SIZE): Base on the ARCH_SIZE rather than a
+ fixed size of 16.
+
2013-09-24 Gregory Fong <gregory.0xf0@gmail.com>
* elfxx-mips.c (mips_elf_create_got_section): Hide
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c
index bd5f0bf695..26968ab131 100644
--- a/bfd/elfnn-aarch64.c
+++ b/bfd/elfnn-aarch64.c
@@ -1666,8 +1666,8 @@ _aarch64_elf_section_data;
#define elf_aarch64_section_data(sec) \
((_aarch64_elf_section_data *) elf_section_data (sec))
-/* The size of the thread control block. */
-#define TCB_SIZE 16
+/* The size of the thread control block which is defined to be two pointers. */
+#define TCB_SIZE (ARCH_SIZE/8)*2
struct elf_aarch64_local_symbol
{