summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/bfd
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1996-07-15 17:12:25 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1996-07-15 17:12:25 +0000
commitf164aa7f0987375bfb76a52a810231ea69e38ec7 (patch)
tree702d94e848337ac3f7b352a47ebd3827c8926658 /gnu/usr.bin/binutils/bfd
parent7ed65de36502faee38259c10817deb6f5b28b30f (diff)
A couple of more fixes. -static *IS* static...
Diffstat (limited to 'gnu/usr.bin/binutils/bfd')
-rw-r--r--gnu/usr.bin/binutils/bfd/elf32-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/bfd/elf32-mips.c b/gnu/usr.bin/binutils/bfd/elf32-mips.c
index 62b9caef454..234b1095364 100644
--- a/gnu/usr.bin/binutils/bfd/elf32-mips.c
+++ b/gnu/usr.bin/binutils/bfd/elf32-mips.c
@@ -4416,7 +4416,7 @@ mips_elf_relocate_section (output_bfd, info, input_bfd, input_section,
bfd_byte *cr;
if ((info->shared
- && (h != NULL
+ || (h != NULL && !info->static_link
&& ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR)
== 0)))
&& (input_section->flags & SEC_ALLOC) != 0)