Add an assert and remove an unused line of code.
bfd/ChangeLog:
2014-06-04 Will Newton <will.newton@linaro.org>
* elfnn-aarch64.c (tpoff_base): Make test of tls_sec
being non-NULL into an assert.
(elfNN_aarch64_tls_relax): Remove unused code.
+2014-06-04 Will Newton <will.newton@linaro.org>
+
+ * elfnn-aarch64.c (tpoff_base): Make test of tls_sec
+ being non-NULL into an assert.
+ (elfNN_aarch64_tls_relax): Remove unused code.
+
2014-06-03 DJ Delorie <dj@redhat.com>
* elf32-rx.c (rx_table_map): Use BFD_VMA_FMT for portability.
struct elf_link_hash_table *htab = elf_hash_table (info);
/* If tls_sec is NULL, we should have signalled an error already. */
- if (htab->tls_sec == NULL)
- return 0;
+ BFD_ASSERT (htab->tls_sec != NULL);
bfd_vma base = align_power ((bfd_vma) TCB_SIZE,
htab->tls_sec->alignment_power);
or
adrp x0, :tlsdesc:var => adrp x0, :gottprel:var
*/
- insn = bfd_getl32 (contents + rel->r_offset);
return bfd_reloc_continue;
}