aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2021-09-07 10:41:01 -0300
committerLuis Machado <luis.machado@linaro.org>2021-09-07 11:03:20 -0300
commit64dbf74d428e97de737c13f42767dab88493f187 (patch)
tree2bb64afd4234da2a5659e0ef5dfd802f1d240725 /bfd/elf.c
parent90f4cc60f1b91746132ad136a9ed538b53d2a83f (diff)
downloadgdb-64dbf74d428e97de737c13f42767dab88493f187.zip
gdb-64dbf74d428e97de737c13f42767dab88493f187.tar.gz
gdb-64dbf74d428e97de737c13f42767dab88493f187.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.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index dea3bb0..64e3f35 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -9592,23 +9592,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
@@ -10669,8 +10652,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);
}
}