diff options
author | Alan Modra <amodra@gmail.com> | 1999-09-13 06:45:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 1999-09-13 06:45:15 +0000 |
commit | 2f66722d5578761036ef07bf98897e2d119dbf10 (patch) | |
tree | e51672933b983048d8a14f08f2bbf7d135fe26e4 /bfd | |
parent | 9169713a19c18ec43b3cf831daecc1aa68361724 (diff) | |
download | gdb-2f66722d5578761036ef07bf98897e2d119dbf10.zip gdb-2f66722d5578761036ef07bf98897e2d119dbf10.tar.gz gdb-2f66722d5578761036ef07bf98897e2d119dbf10.tar.bz2 |
Hackery to handle ix86 "jmp constant" as a pc-relative jump to the given
absolute address.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elfcode.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index da9d2e8..413998a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +1999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au> + + * elfcode.h (write_relocs): Check for the_bfd NULL when handling + an absolute symbol in REL relocs. + Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com) * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32. diff --git a/bfd/elfcode.h b/bfd/elfcode.h index d98c07a..1f75fb0 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; |