+Tue Mar 14 17:00:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
+
+ * config/tc-ppc.c (ppc_elf_validate_fix): Use as_warn_where, not
+ as_bad_where to give a warning instead of an error.
+
Mon Mar 13 17:03:46 1995 Pat Rankin (rankin@eql.caltech.edu)
* config/tc-vax.c (md_assemble): issue a warning if a constant
#include "opcode/ppc.h"
+#ifdef OBJ_ELF
+#include "elf/ppc.h"
+#endif
+
/* This is the assembler for the PowerPC or POWER (RS/6000) chips. */
/* FIXME: This should be handled in a different way. */
#ifdef OBJ_ELF
/* Whether to warn about non PC relative relocations that aren't
in the .got2 section. */
-static int mrelocatable = 0;
+static boolean mrelocatable = false;
#endif
#ifdef OBJ_COFF
#ifdef OBJ_ELF
/* -mrelocatable -- warn about initializations that require relocation */
else if (strcmp (arg, "relocatable") == 0)
- mrelocatable = 1;
+ mrelocatable = true;
#endif
else
{
ppc_set_cpu ();
+#ifdef OBJ_ELF
+ /* Set the -mrelocatable flag bit */
+ if (mrelocatable)
+ bfd_set_private_flags (stdoutput, EF_PPC_RELOCATABLE);
+#endif
+
/* Insert the opcodes into a hash table. */
ppc_hash = hash_new ();
&& strcmp (segment_name (seg), ".got2") != 0
&& strcmp (segment_name (seg), ".stab") != 0)
{
- as_bad_where (fixp->fx_file, fixp->fx_line,
- "Relocation cannot be done when using -mrelocatable");
+ as_warn_where (fixp->fx_file, fixp->fx_line,
+ "Relocation cannot be done when using -mrelocatable");
}
}