Rename bfd_plugin_uknown to bfd_plugin_unknown
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 18 Jun 2016 21:15:31 +0000 (14:15 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 18 Jun 2016 21:15:31 +0000 (14:15 -0700)
bfd/

* bfd.c (bfd_plugin_format): Rename bfd_plugin_uknown to
bfd_plugin_unknown.
* bfd-in2.h: Regenerated.
* plugin.c (bfd_plugin_object_p): Replace bfd_plugin_uknown
with bfd_plugin_unknown.

ld/

* plugin.c (plugin_object_p): Replace bfd_plugin_uknown
with bfd_plugin_unknown.

bfd/ChangeLog
bfd/bfd-in2.h
bfd/bfd.c
bfd/plugin.c
ld/ChangeLog
ld/plugin.c

index 2173fc9fca43c5d1ec9c12b18dcb036036b0970a..187a0496c6bbcd616337f0c131b88c6e9fa9abbd 100644 (file)
@@ -1,3 +1,11 @@
+2016-06-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * bfd.c (bfd_plugin_format): Rename bfd_plugin_uknown to
+       bfd_plugin_unknown.
+       * bfd-in2.h: Regenerated.
+       * plugin.c (bfd_plugin_object_p): Replace bfd_plugin_uknown
+       with bfd_plugin_unknown.
+
 2016-06-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/20253
index 6489c6016bfd725c687f592f8b86692d3501109b..af950a01badbec8161c0b2f5172173040636a6fc 100644 (file)
@@ -6544,7 +6544,7 @@ enum bfd_direction
 
 enum bfd_plugin_format
   {
-    bfd_plugin_uknown = 0,
+    bfd_plugin_unknown = 0,
     bfd_plugin_yes = 1,
     bfd_plugin_no = 2
   };
index 26143f91debc21d886b4cf01e8fcf6ba1d46f418..806b9fb33f517618d9f51f6984e7b6cfa4e03896 100644 (file)
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -46,7 +46,7 @@ CODE_FRAGMENT
 .
 .enum bfd_plugin_format
 .  {
-.    bfd_plugin_uknown = 0,
+.    bfd_plugin_unknown = 0,
 .    bfd_plugin_yes = 1,
 .    bfd_plugin_no = 2
 .  };
index 559fcd4aa81bf9594a60dcdad6a72951371e4b91..2ab345216b4604e9b6a312c22b089e63f255f18a 100644 (file)
@@ -365,7 +365,7 @@ bfd_plugin_object_p (bfd *abfd)
   if (ld_plugin_object_p)
     return ld_plugin_object_p (abfd);
 
-  if (abfd->plugin_format == bfd_plugin_uknown && !load_plugin (abfd))
+  if (abfd->plugin_format == bfd_plugin_unknown && !load_plugin (abfd))
     return NULL;
 
   return abfd->plugin_format == bfd_plugin_yes ? abfd->xvec : NULL;
index 09de0c7a0130a7e4d1543082b4899a0a0246250e..b9b9c3e3c132ef33577b6ecef40b1cbd40474e9e 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * plugin.c (plugin_object_p): Replace bfd_plugin_uknown
+       with bfd_plugin_unknown.
+
 2016-06-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/20253
index ebde25ffe70aee6b002ea4a554f61545799c7155..cb6131841d61ca26c02c95037701fd11ae013582 100644 (file)
@@ -1081,7 +1081,7 @@ plugin_object_p (bfd *ibfd)
   if ((ibfd->flags & BFD_PLUGIN) != 0)
     return NULL;
 
-  if (ibfd->plugin_format != bfd_plugin_uknown)
+  if (ibfd->plugin_format != bfd_plugin_unknown)
     {
       if (ibfd->plugin_format == bfd_plugin_yes)
        return ibfd->plugin_dummy_bfd->xvec;