From 45e25a3641eda4ba1d973729ac7dbd5c66bab99b Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Thu, 7 Feb 2013 10:49:29 +0000 Subject: [PATCH] Enable TLS support in aarch64-linux-tdep.c 2013-02-07 Marcus Shawcroft * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call set_gdbarch_fetch_tls_load_module_address. --- gdb/ChangeLog | 5 +++++ gdb/aarch64-linux-tdep.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 32f0c49293f..50e54453ae2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-02-07 Marcus Shawcroft + + * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call + set_gdbarch_fetch_tls_load_module_address. + 2013-02-06 David S. Miller * sparc-tdep.c (sparc32_return_value): Handle writing return value when diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index 1622a43a992..3055a0ae61c 100644 --- a/gdb/aarch64-linux-tdep.c +++ b/gdb/aarch64-linux-tdep.c @@ -273,6 +273,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); -- 2.30.2