Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Enable TLS support in aarch64-linux-tdep.c
@ 2013-02-06 17:38 Marcus Shawcroft
  2013-02-06 18:57 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Marcus Shawcroft @ 2013-02-06 17:38 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

This patch enables TLS support in aarch64-linux-tdep.

OK?

Cheers
/Marcus

2013-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>

        * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
        set_gdbarch_fetch_tls_load_module_address.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-AArch64-enable-TLS-support.patch --]
[-- Type: text/x-patch; name=0002-AArch64-enable-TLS-support.patch, Size: 654 bytes --]

diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index 335e09b..00391a3 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -395,6 +395,10 @@ aarch64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_solib_svr4_fetch_link_map_offsets (gdbarch,
 					 svr4_lp64_fetch_link_map_offsets);
 
+  /* Enable TLS support.  */
+  set_gdbarch_fetch_tls_load_module_address (gdbarch,
+                                             svr4_fetch_objfile_link_map);
+
   /* Shared library handling.  */
   set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
 
-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-06 18:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-06 17:38 [PATCH] Enable TLS support in aarch64-linux-tdep.c Marcus Shawcroft
2013-02-06 18:57 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox