summaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>1999-09-13 06:45:13 +0000
committerAlan Modra <amodra@bigpond.net.au>1999-09-13 06:45:13 +0000
commit99b0e31d1bf98f287626494227995090e44ada4d (patch)
treef189d6edf98dbe15ed967ad776f286a1fb92c1bf /bfd/elfcode.h
parent867b0f46e28fe0ccac6210c2446c31967d99253a (diff)
downloadgdb-99b0e31d1bf98f287626494227995090e44ada4d.tar.gz
Hackery to handle ix86 "jmp constant" as a pc-relative jump to the given
absolute address.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index d98c07a5b22..1f75fb00ed9 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -871,7 +871,8 @@ write_relocs (abfd, sec, data)
last_sym_idx = n;
}
- if ((*ptr->sym_ptr_ptr)->the_bfd->xvec != abfd->xvec
+ if ((*ptr->sym_ptr_ptr)->the_bfd != NULL
+ && (*ptr->sym_ptr_ptr)->the_bfd->xvec != abfd->xvec
&& ! _bfd_elf_validate_reloc (abfd, ptr))
{
*failedp = true;