Make md_undefined_symbol() conditional upon dealing with ELF, much like
other architectures (e.g. Arm32 and Arm64) have it. This avoids errors
in gas and even assertions in libbfd when "accidentally" e.g. a COFF-
targeting source file uses "_GLOBAL_OFFSET_TABLE_" for whatever reason.
While there also convert the final return statement to properly use
NULL.
NB: In principle 64-bit Mach-O knows GOT, too. Yet only an i?86-macho
assembler can be built right now, as per configure.tgt. Pretty clearly
adjustments to gotrel[] would also be necessary before these targets
could actually work reasonably cleanly.
#endif /* ELF / PE / MACH_O */
\f
+#ifdef OBJ_ELF
symbolS *
md_undefined_symbol (char *name)
{
};
return GOT_symbol;
}
- return 0;
+ return NULL;
}
+#endif
#ifdef OBJ_AOUT
/* Round up a section size to the appropriate boundary. */
extern int tc_i386_fix_adjustable (struct fix *);
#else
#define tc_fix_adjustable(X) ((void)(X), 1)
+#define md_undefined_symbol(N) ((void)(N), NULL)
#endif
/* Values passed to md_apply_fix don't include the symbol value. */