diff options
author | Roland McGrath <mcgrathr@chromium.org> | 2015-05-29 09:13:53 -0700 |
---|---|---|
committer | Roland McGrath <mcgrathr@chromium.org> | 2015-05-29 09:13:53 -0700 |
commit | 14ae95f2208258d5957f47a3185fc5b068e18a5a (patch) | |
tree | 4550ec5bd3ffdbdabfdcd1579cd7d8645862d677 /binutils | |
parent | 32c17175af60999fdbe4f2b187ba320d2171de8c (diff) | |
download | gdb-14ae95f2208258d5957f47a3185fc5b068e18a5a.zip gdb-14ae95f2208258d5957f47a3185fc5b068e18a5a.tar.gz gdb-14ae95f2208258d5957f47a3185fc5b068e18a5a.tar.bz2 |
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.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 18 |
2 files changed, 17 insertions, 6 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f681468..03eb240 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -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. diff --git a/binutils/readelf.c b/binutils/readelf.c index b584db5..a0c20a3 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); } |