* bfd/elf32-tic6x.c (elf32_tic6x_set_osabi): Also set it if
authorBernd Schmidt <bernds@codesourcery.com>
Thu, 30 Jun 2011 21:36:09 +0000 (21:36 +0000)
committerBernd Schmidt <bernds@codesourcery.com>
Thu, 30 Jun 2011 21:36:09 +0000 (21:36 +0000)
link_info is NULL.

bfd/ChangeLog
bfd/elf32-tic6x.c

index 292ec0a7fdd367d1260a5140cd577b0ebae5d8b0..caa5483c487522866202715d8275d413c84fdcf9 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-30  Bernd Schmidt  <bernds@codesourcery.com>
+
+       * bfd/elf32-tic6x.c (elf32_tic6x_set_osabi): Also set it if
+       link_info is NULL.
+
 2011-06-28  Tristan Gingold  <gingold@adacore.com>
 
        * vms-alpha.c (vms_private_data_struct): Make vms_linkage_index
index 4e9d202138a79563a556efbfdecdb46e97f97a7b..19287fec182f393c4ee2630262d16914cb17d242 100644 (file)
@@ -4473,7 +4473,7 @@ elf32_tic6x_write_section (bfd *output_bfd,
 static void
 elf32_tic6x_set_osabi (bfd *abfd, struct bfd_link_info *link_info)
 {
-  if (link_info == NULL || link_info->relocatable)
+  if (link_info != NULL && link_info->relocatable)
     return;
   _bfd_elf_set_osabi (abfd, link_info);
 }