|
|
f55871 |
diff -Nrup a/bfd/elf-bfd.h b/bfd/elf-bfd.h
|
|
|
f55871 |
--- a/bfd/elf-bfd.h 2013-02-27 13:28:03.000000000 -0700
|
|
|
f55871 |
+++ b/bfd/elf-bfd.h 2013-07-05 11:39:18.762450452 -0600
|
|
|
f55871 |
@@ -2313,6 +2313,8 @@ extern char *elfcore_write_s390_last_bre
|
|
|
f55871 |
(bfd *, char *, int *, const void *, int);
|
|
|
f55871 |
extern char *elfcore_write_s390_system_call
|
|
|
f55871 |
(bfd *, char *, int *, const void *, int);
|
|
|
f55871 |
+extern char *elfcore_write_s390_tdb
|
|
|
f55871 |
+ (bfd *, char *, int *, const void *, int);
|
|
|
f55871 |
extern char *elfcore_write_arm_vfp
|
|
|
f55871 |
(bfd *, char *, int *, const void *, int);
|
|
|
f55871 |
extern char *elfcore_write_aarch_tls
|
|
|
f55871 |
diff -Nrup a/bfd/elf.c b/bfd/elf.c
|
|
|
f55871 |
--- a/bfd/elf.c 2013-07-05 11:31:18.420113594 -0600
|
|
|
f55871 |
+++ b/bfd/elf.c 2013-07-05 11:39:18.764450445 -0600
|
|
|
f55871 |
@@ -8293,6 +8293,12 @@ elfcore_grok_s390_system_call (bfd *abfd
|
|
|
f55871 |
}
|
|
|
f55871 |
|
|
|
f55871 |
static bfd_boolean
|
|
|
f55871 |
+elfcore_grok_s390_tdb (bfd *abfd, Elf_Internal_Note *note)
|
|
|
f55871 |
+{
|
|
|
f55871 |
+ return elfcore_make_note_pseudosection (abfd, ".reg-s390-tdb", note);
|
|
|
f55871 |
+}
|
|
|
f55871 |
+
|
|
|
f55871 |
+static bfd_boolean
|
|
|
f55871 |
elfcore_grok_arm_vfp (bfd *abfd, Elf_Internal_Note *note)
|
|
|
f55871 |
{
|
|
|
f55871 |
return elfcore_make_note_pseudosection (abfd, ".reg-arm-vfp", note);
|
|
|
f55871 |
@@ -8749,6 +8755,13 @@ elfcore_grok_note (bfd *abfd, Elf_Intern
|
|
|
f55871 |
else
|
|
|
f55871 |
return TRUE;
|
|
|
f55871 |
|
|
|
f55871 |
+ case NT_S390_TDB:
|
|
|
f55871 |
+ if (note->namesz == 6
|
|
|
f55871 |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
f55871 |
+ return elfcore_grok_s390_tdb (abfd, note);
|
|
|
f55871 |
+ else
|
|
|
f55871 |
+ return TRUE;
|
|
|
f55871 |
+
|
|
|
f55871 |
case NT_ARM_VFP:
|
|
|
f55871 |
if (note->namesz == 6
|
|
|
f55871 |
&& strcmp (note->namedata, "LINUX") == 0)
|
|
|
f55871 |
@@ -9603,6 +9616,18 @@ elfcore_write_s390_system_call (bfd *abf
|
|
|
f55871 |
}
|
|
|
f55871 |
|
|
|
f55871 |
char *
|
|
|
f55871 |
+elfcore_write_s390_tdb (bfd *abfd,
|
|
|
f55871 |
+ char *buf,
|
|
|
f55871 |
+ int *bufsiz,
|
|
|
f55871 |
+ const void *s390_tdb,
|
|
|
f55871 |
+ int size)
|
|
|
f55871 |
+{
|
|
|
f55871 |
+ char *note_name = "LINUX";
|
|
|
f55871 |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
f55871 |
+ note_name, NT_S390_TDB, s390_tdb, size);
|
|
|
f55871 |
+}
|
|
|
f55871 |
+
|
|
|
f55871 |
+char *
|
|
|
f55871 |
elfcore_write_arm_vfp (bfd *abfd,
|
|
|
f55871 |
char *buf,
|
|
|
f55871 |
int *bufsiz,
|
|
|
f55871 |
@@ -9684,6 +9709,8 @@ elfcore_write_register_note (bfd *abfd,
|
|
|
f55871 |
return elfcore_write_s390_last_break (abfd, buf, bufsiz, data, size);
|
|
|
f55871 |
if (strcmp (section, ".reg-s390-system-call") == 0)
|
|
|
f55871 |
return elfcore_write_s390_system_call (abfd, buf, bufsiz, data, size);
|
|
|
f55871 |
+ if (strcmp (section, ".reg-s390-tdb") == 0)
|
|
|
f55871 |
+ return elfcore_write_s390_tdb (abfd, buf, bufsiz, data, size);
|
|
|
f55871 |
if (strcmp (section, ".reg-arm-vfp") == 0)
|
|
|
f55871 |
return elfcore_write_arm_vfp (abfd, buf, bufsiz, data, size);
|
|
|
f55871 |
if (strcmp (section, ".reg-aarch-tls") == 0)
|
|
|
f55871 |
diff -Nrup a/binutils/readelf.c b/binutils/readelf.c
|
|
|
f55871 |
--- a/binutils/readelf.c 2013-02-27 13:28:03.000000000 -0700
|
|
|
f55871 |
+++ b/binutils/readelf.c 2013-07-05 11:39:18.766450438 -0600
|
|
|
f55871 |
@@ -12848,6 +12848,8 @@ get_note_type (unsigned e_type)
|
|
|
f55871 |
return _("NT_S390_LAST_BREAK (s390 last breaking event address)");
|
|
|
f55871 |
case NT_S390_SYSTEM_CALL:
|
|
|
f55871 |
return _("NT_S390_SYSTEM_CALL (s390 system call restart data)");
|
|
|
f55871 |
+ case NT_S390_TDB:
|
|
|
f55871 |
+ return _("NT_S390_TDB (s390 transaction diagnostic block)");
|
|
|
f55871 |
case NT_ARM_VFP:
|
|
|
f55871 |
return _("NT_ARM_VFP (arm VFP registers)");
|
|
|
f55871 |
case NT_ARM_TLS:
|
|
|
f55871 |
diff -Nrup a/include/elf/common.h b/include/elf/common.h
|
|
|
f55871 |
--- a/include/elf/common.h 2013-02-27 13:28:03.000000000 -0700
|
|
|
f55871 |
+++ b/include/elf/common.h 2013-07-05 11:39:18.766450438 -0600
|
|
|
f55871 |
@@ -556,6 +556,8 @@
|
|
|
f55871 |
/* note name must be "LINUX". */
|
|
|
f55871 |
#define NT_S390_SYSTEM_CALL 0x307 /* S390 system call restart data */
|
|
|
f55871 |
/* note name must be "LINUX". */
|
|
|
f55871 |
+#define NT_S390_TDB 0x308 /* S390 transaction diagnostic block */
|
|
|
f55871 |
+ /* note name must be "LINUX". */
|
|
|
f55871 |
#define NT_ARM_VFP 0x400 /* ARM VFP registers */
|
|
|
f55871 |
/* The following definitions should really use NT_AARCH_..., but defined
|
|
|
f55871 |
this way for compatibility with Linux. */
|