diff options
author | Ian Lance Taylor <ian@airs.com> | 1992-09-29 15:47:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1992-09-29 15:47:03 +0000 |
commit | acc7c4933d7ba7e835316dce06ce0bee17f97d61 (patch) | |
tree | 4f92e5c2922da47c5425339050d687e3d0117ebc /bfd | |
parent | a5419edecf30357463782a67581f72be72efd9db (diff) | |
download | gdb-acc7c4933d7ba7e835316dce06ce0bee17f97d61.zip gdb-acc7c4933d7ba7e835316dce06ce0bee17f97d61.tar.gz gdb-acc7c4933d7ba7e835316dce06ce0bee17f97d61.tar.bz2 |
Tue Sep 29 08:30:21 1992 Ian Lance Taylor (ian@cygnus.com)
* Portability fixes from p3:
coffcode.h (coff_write_relocs): removed sanity check until it
works on all targets (per advice from sac).
config/hp9000.mh: new file to define USG.
hppa.c: #undef hppa before the JUMP_TABLE.
hosts/hppahpux.h: #define NATIVE_HPPAHPUX_COMPILER if not
__STDC__.
targets.c (bfd_target_list): if NATIVE_HPPAHPUX_COMPILER, make
local variable target volatile to avoid mysterious bug in
HP9000/700 cc.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 13 | ||||
-rw-r--r-- | bfd/coffcode.h | 13 | ||||
-rw-r--r-- | bfd/hosts/hppahpux.h | 4 | ||||
-rw-r--r-- | bfd/hppa.c | 1 |
4 files changed, 18 insertions, 13 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 631afee..07ef2f7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,16 @@ +Tue Sep 29 08:30:21 1992 Ian Lance Taylor (ian@cygnus.com) + + * Portability fixes from p3: + coffcode.h (coff_write_relocs): removed sanity check until it + works on all targets (per advice from sac). + config/hp9000.mh: new file to define USG. + hppa.c: #undef hppa before the JUMP_TABLE. + hosts/hppahpux.h: #define NATIVE_HPPAHPUX_COMPILER if not + __STDC__. + targets.c (bfd_target_list): if NATIVE_HPPAHPUX_COMPILER, make + local variable target volatile to avoid mysterious bug in + HP9000/700 cc. + Sat Sep 26 03:58:49 1992 John Gilmore (gnu@cygnus.com) * config/hppabsd.mh, config.hppahpux.mh: Remove various bogosity. diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 8ac4a5f..a104051 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -1815,19 +1815,6 @@ DEFUN(coff_write_relocs,(abfd), arelent *q = p[i]; memset((PTR)&n, 0, sizeof(n)); - -#ifndef SWAP_OUT_RELOC_OFFSET - /* @@FIXME COFF relocs don't support addends. Code should probably be - in the target-independent code, using a target flag to decide whether - to fold the addend into the section contents. */ - - if (q->addend != 0) -#ifdef R_IHCONST - if (q->howto->type != R_IHCONST) -#endif - abort (); -#endif - n.r_vaddr = q->address + s->vma; /* The 29k const/consth reloc pair is a real kludge - the consth part doesn't have a symbol - it has an offset. So rebuilt diff --git a/bfd/hosts/hppahpux.h b/bfd/hosts/hppahpux.h index 1d73c3f..ad2f102 100644 --- a/bfd/hosts/hppahpux.h +++ b/bfd/hosts/hppahpux.h @@ -16,6 +16,10 @@ void free(); #define SEEK_SET 0 #define SEEK_CUR 1 +#ifndef __STDC__ +#define NATIVE_HPPAHPUX_COMPILER +#endif + #if 0 static int rename(from, to) @@ -633,6 +633,7 @@ _do_getb64, _do_putb64, _do_getb32, _do_putb32, _do_getb16, _do_putb16, /* hdrs _bfd_write_archive_contents, bfd_false, }, +#undef hppa JUMP_TABLE(hppa) }; |