aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2021-09-08 08:58:44 -0300
committerLuis Machado <luis.machado@linaro.org>2021-09-08 08:58:44 -0300
commitcdf4e8ae55ac5a070b6b5c17b047639f20d37f5f (patch)
tree7205556c2b2c774b44507a80b8bc7f562851855d
parentdd0fea103f332e940a5566b7e7c33193985eb054 (diff)
downloadgdb-cdf4e8ae55ac5a070b6b5c17b047639f20d37f5f.zip
gdb-cdf4e8ae55ac5a070b6b5c17b047639f20d37f5f.tar.gz
gdb-cdf4e8ae55ac5a070b6b5c17b047639f20d37f5f.tar.bz2
Revert: [AArch64] MTE corefile support
bfd * elf.c (elfcore_make_memtag_note_section): New function. (elfcore_grok_note): Handle NT_MEMTAG note types. binutils* readelf.c (get_note_type): Handle NT_MEMTAG note types. include * elf/common.h (NT_MEMTAG): New constant. (NT_MEMTAG_TYPE_AARCH_MTE): New constant.
-rw-r--r--bfd/ChangeLog9
-rw-r--r--bfd/elf.c19
-rw-r--r--binutils/ChangeLog8
-rw-r--r--binutils/readelf.c2
-rw-r--r--include/ChangeLog9
-rw-r--r--include/elf/common.h6
6 files changed, 26 insertions, 27 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index eda7eb0..05965cc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,12 @@
+2021-09-07 Luis Machado <luis.machado@linaro.org>
+
+ Revert: [AArch64] MTE corefile support
+
+ 2021-05-21 Luis Machado <luis.machado@linaro.org>
+
+ * elf.c (elfcore_make_memtag_note_section): New function.
+ (elfcore_grok_note): Handle NT_MEMTAG note types.
+
2021-07-03 Joel Brobecker <brobecker@adacore.com>
* development.sh (development): Set to false.
diff --git a/bfd/elf.c b/bfd/elf.c
index de5abaf..8f6531f 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -9599,23 +9599,6 @@ elfcore_make_auxv_note_section (bfd *abfd, Elf_Internal_Note *note,
return true;
}
-static bool
-elfcore_make_memtag_note_section (bfd *abfd, Elf_Internal_Note *note,
- size_t offs)
-{
- asection *sect = bfd_make_section_anyway_with_flags (abfd, ".memtag",
- SEC_HAS_CONTENTS);
-
- if (sect == NULL)
- return false;
-
- sect->size = note->descsz - offs;
- sect->filepos = note->descpos + offs;
- sect->alignment_power = 1 + bfd_get_arch_size (abfd) / 32;
-
- return true;
-}
-
/* prstatus_t exists on:
solaris 2.5+
linux 2.[01] + glibc
@@ -10676,8 +10659,6 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note)
return elfcore_make_note_pseudosection (abfd, ".note.linuxcore.siginfo",
note);
- case NT_MEMTAG:
- return elfcore_make_memtag_note_section (abfd, note, 0);
}
}
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 9efa39e..5cd4c88 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,11 @@
+2021-09-07 Luis Machado <luis.machado@linaro.org>
+
+ Revert: [AArch64] MTE corefile support
+
+ 2021-05-21 Luis Machado <luis.machado@linaro.org>
+
+ * readelf.c (get_note_type): Handle NT_MEMTAG note types.
+
2021-07-03 Nick Clifton <nickc@redhat.com>
* configure: Regenerate.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index a6073f7..af10bcd 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -18843,8 +18843,6 @@ get_note_type (Filedata * filedata, unsigned e_type)
return _("NT_SIGINFO (siginfo_t data)");
case NT_FILE:
return _("NT_FILE (mapped files)");
- case NT_MEMTAG:
- return _("NT_MEMTAG (memory tags)");
default:
break;
}
diff --git a/include/ChangeLog b/include/ChangeLog
index 11001a3..0e99cf3 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,12 @@
+2021-09-07 Luis Machado <luis.machado@linaro.org>
+
+ Revert: [AArch64] MTE corefile support
+
+ 2021-05-21 Luis Machado <luis.machado@linaro.org>
+
+ * elf/common.h (NT_MEMTAG): New constant.
+ (NT_MEMTAG_TYPE_AARCH_MTE): New constant.
+
2021-07-03 Nick Clifton <nickc@redhat.com>
* 2.37 release branch created.
diff --git a/include/elf/common.h b/include/elf/common.h
index 0cca286..7eefef9 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -685,12 +685,6 @@
/* The range 0xff000000 to 0xffffffff is set aside for notes that don't
originate from any particular operating system. */
#define NT_GDB_TDESC 0xff000000 /* Contains copy of GDB's target description XML. */
-#define NT_MEMTAG 0xff000001 /* Contains a copy of the memory tags. */
-
-/* NT_MEMTAG record types. */
-
-/* ARM-specific NT_MEMTAG types. */
-#define NT_MEMTAG_TYPE_AARCH_MTE 0x400 /* MTE memory tags for AArch64. */
/* Note segments for core files on dir-style procfs systems. */