aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-tic6x.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-06-30 21:36:09 +0000
committerBernd Schmidt <bernds@codesourcery.com>2011-06-30 21:36:09 +0000
commitdc076558e23730cbec1298fab2b6c47937d7e550 (patch)
tree06b71a728f2d31926a3e211f453bc69e4bb5b347 /bfd/elf32-tic6x.c
parentf748fb408892764f17e4269508a2af6f613909fd (diff)
downloadfsf-binutils-gdb-dc076558e23730cbec1298fab2b6c47937d7e550.zip
fsf-binutils-gdb-dc076558e23730cbec1298fab2b6c47937d7e550.tar.gz
fsf-binutils-gdb-dc076558e23730cbec1298fab2b6c47937d7e550.tar.bz2
* bfd/elf32-tic6x.c (elf32_tic6x_set_osabi): Also set it if
link_info is NULL.
Diffstat (limited to 'bfd/elf32-tic6x.c')
-rw-r--r--bfd/elf32-tic6x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c
index 4e9d202..19287fe 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);
}