aboutsummaryrefslogtreecommitdiff
path: root/bfd/cf-m68klynx.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-04 22:40:55 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-04 22:40:55 +0000
commita9dd34a9199f3a548616ae6b128ed32feba512d8 (patch)
treeb50b8310f08f46c6e2a968aa0f754751fed057d4 /bfd/cf-m68klynx.c
parenteb0dafdc04492134edaf183539a1ddbf65b66988 (diff)
downloadgdb-a9dd34a9199f3a548616ae6b128ed32feba512d8.zip
gdb-a9dd34a9199f3a548616ae6b128ed32feba512d8.tar.gz
gdb-a9dd34a9199f3a548616ae6b128ed32feba512d8.tar.bz2
* 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.
Diffstat (limited to 'bfd/cf-m68klynx.c')
-rw-r--r--bfd/cf-m68klynx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/cf-m68klynx.c b/bfd/cf-m68klynx.c
index 8149dc6..6425c30 100644
--- a/bfd/cf-m68klynx.c
+++ b/bfd/cf-m68klynx.c
@@ -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