X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Fgen-aout.c;h=c81d3d0027b54a7b379ee6409a0fa5a7d61026dc;hb=0bf60745767d2465c81ee57ae7705a62d6d8fafe;hp=b5ed91a096b4ea3db66326a00f2089c3d15ee3a6;hpb=5b64ad42d36e6d487e1f7287d37fbc243a178e72;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/gen-aout.c b/bfd/gen-aout.c index b5ed91a096..c81d3d0027 100644 --- a/bfd/gen-aout.c +++ b/bfd/gen-aout.c @@ -1,5 +1,6 @@ /* Generate parameters for an a.out system. - Copyright (C) 1990, 91, 92, 93, 94, 98 Free Software Foundation, Inc. + Copyright 1990, 1991, 1992, 1993, 1994, 1995, 2001, 2002 + Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -15,11 +16,15 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #include "/usr/include/a.out.h" #include +#ifndef _ +#define _(X) X +#endif + int main (argc, argv) int argc; char** argv; @@ -86,9 +91,12 @@ main (argc, argv) fprintf (stderr, _(" fix DEFAULT_ARCH in the output file yourself\n")); arch = "unknown"; } - printf("#define DEFAULT_ARCH bfd_arch_%s\n", arch); + printf("#define DEFAULT_ARCH bfd_arch_%s\n\n", arch); - printf("\n#define MY(OP) CAT(%s_,OP)\n", target); + printf("/* Do not \"beautify\" the CONCAT* macro args. Traditional C will not"); + printf(" remove whitespace added here, and thus will fail to concatenate"); + printf(" the tokens. */"); + printf("\n#define MY(OP) CONCAT2 (%s_,OP)\n\n", target); printf("#define TARGETNAME \"a.out-%s\"\n\n", target); printf("#include \"bfd.h\"\n");