summaryrefslogtreecommitdiff
path: root/bfd/elf32-vax.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-vax.c')
-rw-r--r--bfd/elf32-vax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-vax.c b/bfd/elf32-vax.c
index 1582ac764d..db67faf850 100644
--- a/bfd/elf32-vax.c
+++ b/bfd/elf32-vax.c
@@ -1611,7 +1611,7 @@ elf_vax_relocate_section (bfd *output_bfd,
case R_VAX_16:
case R_VAX_32:
if (info->shared
- && r_symndx != 0
+ && r_symndx != STN_UNDEF
&& (input_section->flags & SEC_ALLOC) != 0
&& ((r_type != R_VAX_PC8
&& r_type != R_VAX_PC16