X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Felfcomm.c;h=fc47b40757f2db1b5f48224862b428bccddbc3eb;hb=1b513401599fc5c35a3a8ad0321e0b00a0bdb0f8;hp=5ec4690e13234b6eeed7ac45e2d32672cb9a21d0;hpb=fc49bc72378b4402ca60baa5ff65f1392c92c279;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/elfcomm.c b/binutils/elfcomm.c index 5ec4690e13..fc47b40757 100644 --- a/binutils/elfcomm.c +++ b/binutils/elfcomm.c @@ -34,6 +34,15 @@ extern char *program_name; +/* FIXME: This definition really ought to be in ansidecl.h. */ +#ifndef ATTRIBUTE_WEAK +#define ATTRIBUTE_WEAK __attribute__((weak)) +#endif + +/* Allow the following two functions to be overridden if desired. */ +void error (const char *, ...) ATTRIBUTE_WEAK; +void warn (const char *, ...) ATTRIBUTE_WEAK; + void error (const char *message, ...) {