+Fri Sep 11 15:37:06 1992 Ian Lance Taylor (ian@cygnus.com)
+
+ * coffcode.h (coff_renumber_symbols): set the last renumbered
+ symbol pointer to NULL, as expected by coff_write_linenumbers.
+ (coff_write_relocs): apparently a non-zero addend is OK for reloc
+ type R_IHCONST used on the 29k.
+
Thu Sep 10 13:28:24 1992 John Gilmore (gnu@cygnus.com)
* opncls.c (bfd_fdopenr): Determine whether to fdopen for
machine = 88100;
break;
#endif
+#ifdef Z8KMAGIC
+ case Z8KMAGIC:
+ arch = bfd_arch_z8k;
+ switch (internal_f->f_flags & F_MACHMASK)
+{
+ case F_Z8001:
+ machine = bfd_mach_z8001;
+ break;
+ case F_Z8002:
+ machine = bfd_mach_z8002;
+ break;
+ default:
+ goto fail;
+ }
+ break;
+#endif
#ifdef I960
#ifdef I960ROMAGIC
case I960ROMAGIC:
break;
#endif
+#ifdef WE32KMAGIC
+ case WE32KMAGIC:
+ arch = bfd_arch_we32k;
+ machine = 0;
+ break;
+#endif
+
#ifdef H8300MAGIC
case H8300MAGIC:
arch = bfd_arch_h8300;
int i;
newsyms = (asymbol **) bfd_alloc_by_size_t (bfd_ptr,
- sizeof (asymbol *) * symbol_count);
+ sizeof (asymbol *)
+ * (symbol_count + 1));
bfd_ptr->outsymbols = newsyms;
for (i = 0; i < symbol_count; i++)
if (symbol_ptr_ptr[i]->section != &bfd_und_section)
for (i = 0; i < symbol_count; i++)
if (symbol_ptr_ptr[i]->section == &bfd_und_section)
*newsyms++ = symbol_ptr_ptr[i];
+ *newsyms = (asymbol *) NULL;
symbol_ptr_ptr = bfd_ptr->outsymbols;
}
to fold the addend into the section contents. */
if (q->addend != 0)
- abort ();
+#ifdef R_IHCONST
+ if (q->howto->type != R_IHCONST)
+#endif
+ abort ();
#endif
n.r_vaddr = q->address + s->vma;
unsigned short *flagsp)
{
switch (bfd_get_arch(abfd)) {
-
+#ifdef Z8KMAGIC
+ case bfd_arch_z8k:
+ *magicp = Z8KMAGIC;
+ switch (bfd_get_mach(abfd))
+ {
+ case bfd_mach_z8001:
+ *flagsp = F_Z8001;
+ break;
+ case bfd_mach_z8002:
+ *flagsp = F_Z8002;
+ break;
+ default:
+ return false;
+ }
+ return true;
+#endif
#ifdef I960ROMAGIC
case bfd_arch_i960:
case bfd_arch_i386:
*magicp = I386MAGIC;
return true;
+ break;
#endif
#ifdef MC68MAGIC
case bfd_arch_m68k:
*magicp = MC68MAGIC;
return true;
+ break;
#endif
#ifdef MC88MAGIC
break;
#endif
+#ifdef WE32KMAGIC
+ case bfd_arch_we32k:
+ *magicp = WE32KMAGIC;
+ return true;
+ break;
+#endif
+
#ifdef U802TOCMAGIC
case bfd_arch_rs6000:
*magicp = U802TOCMAGIC;
+ return true;
break;
#endif
internal_a.magic = PAGEMAGICBCS;
#endif /* M88 */
-#if M68 || I386 || MIPS
+#if M68 || I386 || MIPS || WE32K
#define __A_MAGIC_SET__
/* Never was anything here for the 68k */
-#endif /* M88 */
+#endif /* M68 || I386 || MIPS || WE32K */
#if RS6000COFF_C
#define __A_MAGIC_SET__