From: Roland McGrath Date: Fri, 29 May 2015 16:13:53 +0000 (-0700) Subject: Recognize GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14ae95f2208258d5957f47a3185fc5b068e18a5a;p=binutils-gdb.git Recognize GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL. binutils/ * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL. include/elf/ * common.h (GNU_ABI_TAG_SYLLABLE): New macro. (GNU_ABI_TAG_NACL): New macro. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f681468eb81..03eb2404c89 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2015-05-29 Roland McGrath + + * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize + GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL. + 2015-05-29 Stephen Kitt * dlltool.c (make_one_lib_file): Clear .idata$6 before use. diff --git a/binutils/readelf.c b/binutils/readelf.c index b584db5150f..a0c20a38612 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -12185,7 +12185,7 @@ dump_section_as_bytes (Elf_Internal_Shdr * section, & new_size)) section_size = new_size; } - + if (relocate) { apply_relocations (file, section, start, section_size, NULL, NULL); @@ -14297,7 +14297,7 @@ process_mips_specific (FILE * file) return 0; } offset += option->size; - + ++option; ++cnt; } @@ -15125,6 +15125,12 @@ print_gnu_note (Elf_Internal_Note *pnote) case GNU_ABI_TAG_NETBSD: osname = "NetBSD"; break; + case GNU_ABI_TAG_SYLLABLE: + osname = "Syllable"; + break; + case GNU_ABI_TAG_NACL: + osname = "NaCl"; + break; default: osname = "Unknown"; break; @@ -15193,7 +15199,7 @@ print_v850_note (Elf_Internal_Note * pnote) case EF_RH850_DATA_ALIGN8: printf (_("8-byte\n")); return 1; } break; - + case V850_NOTE_DATA_SIZE: switch (val) { @@ -15201,7 +15207,7 @@ print_v850_note (Elf_Internal_Note * pnote) case EF_RH850_DOUBLE64: printf (_("8-bytes\n")); return 1; } break; - + case V850_NOTE_FPU_INFO: switch (val) { @@ -15209,7 +15215,7 @@ print_v850_note (Elf_Internal_Note * pnote) case EF_RH850_FPU30: printf (_("FPU-3.0\n")); return 1; } break; - + case V850_NOTE_MMU_INFO: case V850_NOTE_CACHE_INFO: case V850_NOTE_SIMD_INFO: @@ -15570,7 +15576,7 @@ process_corefile_note_segment (FILE * file, bfd_vma offset, bfd_vma length) inote.descdata = inote.namedata; inote.namesz = 0; } - + inote.descpos = offset + (inote.descdata - (char *) pnotes); next = inote.descdata + align_power (inote.descsz, 2); } diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index c09a05b05e3..3e7671c5b6a 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,8 @@ +2015-05-29 Roland McGrath + + * common.h (GNU_ABI_TAG_SYLLABLE): New macro. + (GNU_ABI_TAG_NACL): New macro. + 2015-05-11 H.J. Lu * common.h (EM_486): Renamed to ... diff --git a/include/elf/common.h b/include/elf/common.h index b087d9c80fd..e6d8c14d3a2 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -635,6 +635,8 @@ #define GNU_ABI_TAG_SOLARIS 2 #define GNU_ABI_TAG_FREEBSD 3 #define GNU_ABI_TAG_NETBSD 4 +#define GNU_ABI_TAG_SYLLABLE 5 +#define GNU_ABI_TAG_NACL 6 /* Values for NetBSD .note.netbsd.ident notes. Note name is "NetBSD". */