gen-aout.c (78828) | gen-aout.c (89857) |
---|---|
1/* Generate parameters for an a.out system. | 1/* Generate parameters for an a.out system. |
2 Copyright 1990, 1991, 1992, 1993, 1994, 1995 | 2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 2001 |
3 Free Software Foundation, Inc. 4 5This file is part of BFD, the Binary File Descriptor library. 6 7This program is free software; you can redistribute it and/or modify 8it under the terms of the GNU General Public License as published by 9the Free Software Foundation; either version 2 of the License, or 10(at your option) any later version. --- 71 unchanged lines hidden (view full) --- 82 arch = "m68k"; 83#endif 84 if (arch[0] == '1') 85 { 86 fprintf (stderr, _("warning: preprocessor substituted architecture name inside string;")); 87 fprintf (stderr, _(" fix DEFAULT_ARCH in the output file yourself\n")); 88 arch = "unknown"; 89 } | 3 Free Software Foundation, Inc. 4 5This file is part of BFD, the Binary File Descriptor library. 6 7This program is free software; you can redistribute it and/or modify 8it under the terms of the GNU General Public License as published by 9the Free Software Foundation; either version 2 of the License, or 10(at your option) any later version. --- 71 unchanged lines hidden (view full) --- 82 arch = "m68k"; 83#endif 84 if (arch[0] == '1') 85 { 86 fprintf (stderr, _("warning: preprocessor substituted architecture name inside string;")); 87 fprintf (stderr, _(" fix DEFAULT_ARCH in the output file yourself\n")); 88 arch = "unknown"; 89 } |
90 printf("#define DEFAULT_ARCH bfd_arch_%s\n", arch); | 90 printf("#define DEFAULT_ARCH bfd_arch_%s\n\n", arch); |
91 | 91 |
92 printf("\n#define MY(OP) CAT(%s_,OP)\n", target); | 92 printf("/* Do not \"beautify\" the CONCAT* macro args. Traditional C will not"); 93 printf(" remove whitespace added here, and thus will fail to concatenate"); 94 printf(" the tokens. */"); 95 printf("\n#define MY(OP) CONCAT2 (%s_,OP)\n\n", target); |
93 printf("#define TARGETNAME \"a.out-%s\"\n\n", target); 94 95 printf("#include \"bfd.h\"\n"); 96 printf("#include \"sysdep.h\"\n"); 97 printf("#include \"libbfd.h\"\n"); 98 printf("#include \"libaout.h\"\n"); 99 printf("\n#include \"aout-target.h\"\n"); 100 101 return 0; 102} | 96 printf("#define TARGETNAME \"a.out-%s\"\n\n", target); 97 98 printf("#include \"bfd.h\"\n"); 99 printf("#include \"sysdep.h\"\n"); 100 printf("#include \"libbfd.h\"\n"); 101 printf("#include \"libaout.h\"\n"); 102 printf("\n#include \"aout-target.h\"\n"); 103 104 return 0; 105} |