From 0e9acdc7ec6e85682fc4c00e456b519c3ffdba0a Mon Sep 17 00:00:00 2001 From: bebbo Date: Wed, 22 Mar 2017 23:40:36 +0100 Subject: [PATCH] @B fix bit test for BSF_GLOBAL --- bfd/amigaoslink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfd/amigaoslink.c b/bfd/amigaoslink.c index 9978056..f713ebd 100644 --- a/bfd/amigaoslink.c +++ b/bfd/amigaoslink.c @@ -705,7 +705,7 @@ aout_perform_reloc (abfd, r, data, sec, obfd, error_message) - (AMIGA_DATA(target_section->output_section->owner))->a4init; /* if the symbol is in .bss, subtract the offset that gas has put into the opcode */ - if (target_section->index == 2 && sym->flags != BSF_GLOBAL) + if (target_section->index == 2 && !(sym->flags & BSF_GLOBAL)) relocation -= adata(abfd).datasec->_raw_size; DPRINT(20,("symbol=%s (0x%lx)\nsection %s (0x%lx; %s; output=0x%lx)" "\nrelocation @0x%lx\n", sym->name, sym->value,