* coff-m68k.c (coff_rtype_to_howto): Define if not defined.

(m68kcoff_rtype_to_howto): New static function.
	* cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section
	VMA to the addend for a PC relative reloc.
This commit is contained in:
Ian Lance Taylor 1996-10-04 22:40:55 +00:00
parent eb0dafdc04
commit a9dd34a919
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,10 @@
Fri Oct 4 13:49:01 1996 Ian Lance Taylor <ian@cygnus.com>
* coff-m68k.c (coff_rtype_to_howto): Define if not defined.
(m68kcoff_rtype_to_howto): New static function.
* cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section
VMA to the addend for a PC relative reloc.
* dep-in.sed: Rework backslash loop a bit to avoid bug in sed on
HP/UX 10.20.
* Makefile.in: Rebuild dependencies.

View File

@ -1,5 +1,5 @@
/* BFD back-end for Motorola M68K COFF LynxOS files.
Copyright 1993, 1994, 1995 Free Software Foundation, Inc.
Copyright 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
Written by Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
@ -202,6 +202,9 @@ coff_m68k_lynx_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
howto = relent.howto;
if (howto->pc_relative)
*addendp += sec->vma;
if (sym != NULL && sym->n_scnum == 0 && sym->n_value != 0)
{
/* This is a common symbol. The section contents include the