summaryrefslogtreecommitdiff
path: root/devel/gdb/files/commit-8e6afe4013f
blob: ae1f77619eaaa83f41a382fa68d6cb208444260b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
commit 8e1e09542c37a8937af47fd740806ea71ff260e9
Author: John Baldwin <jhb@FreeBSD.org>
Date:   Wed Apr 27 08:06:39 2022 -0700

    Create pseudo sections for NT_ARM_TLS notes on FreeBSD.
    
    bfd/ChangeLog:
    
            * elf.c (elfcore_grok_freebsd_note): Handle NT_ARM_TLS notes.
    
    (cherry picked from commit 8e6afe4013fd57f92eec4659439bc6e44b0446f8)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 10098014297..197bfd425a7 100644
--- bfd/ChangeLog
+++ bfd/ChangeLog
@@ -1,3 +1,7 @@
+2022-04-27  John Baldwin  <jhb@FreeBSD.org>
+
+	* elf.c (elfcore_grok_freebsd_note): Handle NT_ARM_TLS notes.
+
 2022-04-01  John Baldwin  <jhb@FreeBSD.org>
 
 	* elf-bfd.h (elfcore_write_x86_segbases): New.
diff --git a/bfd/elf.c b/bfd/elf.c
index 37c53cfdf32..e9148dbecab 100644
--- bfd/elf.c
+++ bfd/elf.c
@@ -11037,6 +11037,9 @@ elfcore_grok_freebsd_note (bfd *abfd, Elf_Internal_Note *note)
       return elfcore_make_note_pseudosection (abfd, ".note.freebsdcore.lwpinfo",
 					      note);
 
+    case NT_ARM_TLS:
+      return elfcore_grok_aarch_tls (abfd, note);
+
     case NT_ARM_VFP:
       return elfcore_grok_arm_vfp (abfd, note);