public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* Re: [PATCH] Add NT_ARM_SYSTEM_CALL aarch64 syscall regset.
@ 2016-02-15 22:54 Mark Wielaard
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Wielaard @ 2016-02-15 22:54 UTC (permalink / raw)
  To: elfutils-devel

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

On Sun, Feb 14, 2016 at 07:17:14PM +0100, Jan Kratochvil wrote:
> On Fri, 12 Feb 2016 18:05:42 +0100, Mark Wielaard wrote:
> > Linux kernel 3.18 added the NT_ARM_SYSTEM_CALL regset for aarch64.
> > Recognize and print this new core item.
> 
> It works and looks OK to me FYI.

Thanks for testing. Pushed to master.

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

* Re: [PATCH] Add NT_ARM_SYSTEM_CALL aarch64 syscall regset.
@ 2016-02-14 18:17 Jan Kratochvil
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kratochvil @ 2016-02-14 18:17 UTC (permalink / raw)
  To: elfutils-devel

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

On Fri, 12 Feb 2016 18:05:42 +0100, Mark Wielaard wrote:
> Linux kernel 3.18 added the NT_ARM_SYSTEM_CALL regset for aarch64.
> Recognize and print this new core item.

It works and looks OK to me FYI.


Thanks,
Jan

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

* [PATCH] Add NT_ARM_SYSTEM_CALL aarch64 syscall regset.
@ 2016-02-12 17:05 Mark Wielaard
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Wielaard @ 2016-02-12 17:05 UTC (permalink / raw)
  To: elfutils-devel

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

Linux kernel 3.18 added the NT_ARM_SYSTEM_CALL regset for aarch64.
Recognize and print this new core item.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
---
 backends/ChangeLog           |  7 +++++++
 backends/aarch64_corenote.c  | 11 ++++++++++-
 libebl/eblcorenotetypename.c |  1 +
 libelf/ChangeLog             |  4 ++++
 libelf/elf.h                 |  1 +
 5 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/backends/ChangeLog b/backends/ChangeLog
index cc0dd6f..578f6b1 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,10 @@
+2016-02-12  Mark Wielaard  <mjw@redhat.com>
+
+	* aarch64_corenote.c (aarch64_syscall_items): New Ebl_Core_Item[].
+	(EXTRA_NOTES): Add NT_ARM_SYSTEM_CALL.
+	* eblcorenotetypename.c (ebl_core_note_type_name):
+	Add ARM_SYSTEM_CALL.
+
 2015-12-28  Mark Wielaard  <mjw@redhat.com>
 
 	* i386_reloc.def: Add GOT32X.
diff --git a/backends/aarch64_corenote.c b/backends/aarch64_corenote.c
index 9b42485..905a4b8 100644
--- a/backends/aarch64_corenote.c
+++ b/backends/aarch64_corenote.c
@@ -99,6 +99,14 @@ static const Ebl_Core_Item aarch64_tls_items[] =
     }
   };
 
+static const Ebl_Core_Item aarch64_syscall_items [] =
+  {
+    {
+      .name = "syscall", .type = ELF_T_WORD, .format = 'x',
+      .offset = 0, .group = "register"
+    }
+  };
+
 #define AARCH64_HWBP_REG(KIND, N)					\
     {									\
       .name = "DBG" KIND "VR" #N "_EL1", .type = ELF_T_XWORD, .format = 'x', \
@@ -158,6 +166,7 @@ AARCH64_BP_WP_GROUP ("W", aarch64_hw_wp_items);
 		      aarch64_fpregset_regs, aarch64_fpregset_items)	\
   EXTRA_ITEMS (NT_ARM_TLS, 8, aarch64_tls_items)			\
   EXTRA_ITEMS (NT_ARM_HW_BREAK, 264, aarch64_hw_bp_items)		\
-  EXTRA_ITEMS (NT_ARM_HW_WATCH, 264, aarch64_hw_wp_items)
+  EXTRA_ITEMS (NT_ARM_HW_WATCH, 264, aarch64_hw_wp_items)		\
+  EXTRA_ITEMS (NT_ARM_SYSTEM_CALL, 4, aarch64_syscall_items)
 
 #include "linux-core-note.c"
diff --git a/libebl/eblcorenotetypename.c b/libebl/eblcorenotetypename.c
index 826f9a1..fa81dbe 100644
--- a/libebl/eblcorenotetypename.c
+++ b/libebl/eblcorenotetypename.c
@@ -90,6 +90,7 @@ ebl_core_note_type_name (Ebl *ebl, uint32_t type, char *buf, size_t len)
 	    KNOWNSTYPE (ARM_TLS);
 	    KNOWNSTYPE (ARM_HW_BREAK);
 	    KNOWNSTYPE (ARM_HW_WATCH);
+	    KNOWNSTYPE (ARM_SYSTEM_CALL);
 	    KNOWNSTYPE (SIGINFO);
 	    KNOWNSTYPE (FILE);
 #undef KNOWNSTYPE
diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index 41eaa00..fbff2d0 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,7 @@
+2016-02-12  Mark Wielaard  <mjw@redhat.com>
+
+	* elf.h: Update from glibc. Add NT_ARM_SYSTEM_CALL.
+
 2016-02-04  Mark Wielaard  <mjw@redhat.com>
 
 	* elf_getdata.c (__libelf_set_rawdata_wrlock): Don't adjust align
diff --git a/libelf/elf.h b/libelf/elf.h
index 1a7000b..ce96bd5 100644
--- a/libelf/elf.h
+++ b/libelf/elf.h
@@ -667,6 +667,7 @@ typedef struct
 #define NT_ARM_TLS	0x401		/* ARM TLS register */
 #define NT_ARM_HW_BREAK	0x402		/* ARM hardware breakpoint registers */
 #define NT_ARM_HW_WATCH	0x403		/* ARM hardware watchpoint registers */
+#define NT_ARM_SYSTEM_CALL	0x404	/* ARM system call number */
 
 /* Legal values for the note segment descriptor types for object files.  */
 
-- 
1.8.3.1

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

end of thread, other threads:[~2016-02-15 22:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-15 22:54 [PATCH] Add NT_ARM_SYSTEM_CALL aarch64 syscall regset Mark Wielaard
  -- strict thread matches above, loose matches on Subject: below --
2016-02-14 18:17 Jan Kratochvil
2016-02-12 17:05 Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).