diff options
author | Bernd Schmidt <bernd.schmidt@analog.com> | 2011-06-30 21:36:09 +0000 |
---|---|---|
committer | Bernd Schmidt <bernd.schmidt@analog.com> | 2011-06-30 21:36:09 +0000 |
commit | 231e9639bf07930d729ad3ed6e39760ec73d4e6a (patch) | |
tree | 17ecf44eb2178f7184df2f97f06e3243876a2390 /bfd | |
parent | 45b8dae15e0f07a3a14884a9897e95e74da1c9d7 (diff) | |
download | gdb-231e9639bf07930d729ad3ed6e39760ec73d4e6a.tar.gz |
* bfd/elf32-tic6x.c (elf32_tic6x_set_osabi): Also set it if
link_info is NULL.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-tic6x.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 292ec0a7fdd..caa5483c487 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c index 4e9d202138a..19287fec182 100644 --- a/bfd/elf32-tic6x.c +++ b/bfd/elf32-tic6x.c @@ -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); } |