Recognize GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
authorRoland McGrath <mcgrathr@chromium.org>
Fri, 29 May 2015 16:13:53 +0000 (09:13 -0700)
committerRoland McGrath <mcgrathr@chromium.org>
Fri, 29 May 2015 16:13:53 +0000 (09:13 -0700)
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.

binutils/ChangeLog
binutils/readelf.c
include/elf/ChangeLog
include/elf/common.h

index f681468..03eb240 100644 (file)
@@ -1,3 +1,8 @@
+2015-05-29  Roland McGrath  <mcgrathr@google.com>
+
+       * readelf.c (print_gnu_note: NT_GNU_ABI_TAG): Recognize
+       GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
+
 2015-05-29  Stephen Kitt  <steve@sk2.org>
 
        * dlltool.c (make_one_lib_file): Clear .idata$6 before use.
index b584db5..a0c20a3 100644 (file)
@@ -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);
        }
index c09a05b..3e7671c 100644 (file)
@@ -1,3 +1,8 @@
+2015-05-29  Roland McGrath  <mcgrathr@google.com>
+
+       * common.h (GNU_ABI_TAG_SYLLABLE): New macro.
+       (GNU_ABI_TAG_NACL): New macro.
+
 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
 
        * common.h (EM_486): Renamed to ...
index b087d9c..e6d8c14 100644 (file)
 #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".  */