aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-05-11 08:52:43 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-05-11 08:53:05 -0700
commit22abe5566abcf48d81c4b485de722f2634d394f2 (patch)
treee8dd2470ea3d9cefbbf3bc83c84118f22f92cf21 /binutils
parent415158ef391683a5248eabe498693c34836c3a38 (diff)
downloadfsf-binutils-gdb-22abe5566abcf48d81c4b485de722f2634d394f2.zip
fsf-binutils-gdb-22abe5566abcf48d81c4b485de722f2634d394f2.tar.gz
fsf-binutils-gdb-22abe5566abcf48d81c4b485de722f2634d394f2.tar.bz2
Rename EM_486 to EM_IAMCU
bfd/ * elfcode.h (elf_object_p): Replace EM_486 with EM_IAMCU. binutils/ * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU. * readelf.c (guess_is_rela): Likewise. (dump_relocations): Likewise. (get_machine_name): Likewise. (get_elf_section_flags): Likewise. (process_section_headers): Likewise. (is_32bit_abs_reloc): Likewise. (is_32bit_pcrel_reloc): Likewise. include/elf/ * common.h (EM_486): Renamed to ... (EM_IAMCU): This.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog11
-rw-r--r--binutils/dwarf.c2
-rw-r--r--binutils/readelf.c14
3 files changed, 19 insertions, 8 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index b2271ee..37378a5 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,14 @@
+2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ * dwarf.c (init_dwarf_regnames): Replace EM_486 with EM_IAMCU.
+ * readelf.c (guess_is_rela): Likewise.
+ (dump_relocations): Likewise.
+ (get_machine_name): Likewise.
+ (get_elf_section_flags): Likewise.
+ (process_section_headers): Likewise.
+ (is_32bit_abs_reloc): Likewise.
+ (is_32bit_pcrel_reloc): Likewise.
+
2015-04-30 Nick Clifton <nickc@redhat.com>
* readelf.c (get_machine_flags): Add description of MeP flags.
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index e1ed1fa..5f773bb 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -5413,7 +5413,7 @@ init_dwarf_regnames (unsigned int e_machine)
switch (e_machine)
{
case EM_386:
- case EM_486:
+ case EM_IAMCU:
init_dwarf_regnames_i386 ();
break;
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 0f53735..c2531ed 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -701,7 +701,7 @@ guess_is_rela (unsigned int e_machine)
{
/* Targets that use REL relocations. */
case EM_386:
- case EM_486:
+ case EM_IAMCU:
case EM_960:
case EM_ARM:
case EM_D10V:
@@ -1178,7 +1178,7 @@ dump_relocations (FILE * file,
break;
case EM_386:
- case EM_486:
+ case EM_IAMCU:
rtype = elf_i386_reloc_type (type);
break;
@@ -2091,7 +2091,7 @@ get_machine_name (unsigned e_machine)
case EM_386: return "Intel 80386";
case EM_68K: return "MC68000";
case EM_88K: return "MC88000";
- case EM_486: return "Intel 80486";
+ case EM_IAMCU: return "Intel MCU";
case EM_860: return "Intel 80860";
case EM_MIPS: return "MIPS R3000";
case EM_S370: return "IBM System/370";
@@ -5252,7 +5252,7 @@ get_elf_section_flags (bfd_vma sh_flags)
break;
case EM_386:
- case EM_486:
+ case EM_IAMCU:
case EM_X86_64:
case EM_L1OM:
case EM_K1OM:
@@ -5734,7 +5734,7 @@ process_section_headers (FILE * file)
switch (elf_header.e_machine)
{
case EM_386:
- case EM_486:
+ case EM_IAMCU:
case EM_X86_64:
case EM_L1OM:
case EM_K1OM:
@@ -11253,7 +11253,7 @@ is_32bit_abs_reloc (unsigned int reloc_type)
switch (elf_header.e_machine)
{
case EM_386:
- case EM_486:
+ case EM_IAMCU:
return reloc_type == 1; /* R_386_32. */
case EM_68K:
return reloc_type == 1; /* R_68K_32. */
@@ -11430,7 +11430,7 @@ is_32bit_pcrel_reloc (unsigned int reloc_type)
switch (elf_header.e_machine)
{
case EM_386:
- case EM_486:
+ case EM_IAMCU:
return reloc_type == 2; /* R_386_PC32. */
case EM_68K:
return reloc_type == 4; /* R_68K_PC32. */