Changeset 625 for trunk/src/binutils/ld/emultempl
- Timestamp:
- Aug 17, 2003, 3:45:55 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/binutils/ld/emultempl/i386aoutemx.em
-
Property cvs2svn:cvs-rev
changed from
1.3to1.4
r624 r625 36 36 #include "ld.h" 37 37 #include "ldmain.h" 38 38 39 #include "ldemul.h" 39 #include "ldfile.h"40 40 #include "ldmisc.h" 41 41 #include "ldexp.h" … … 44 44 #include "ldgram.h" 45 45 46 47 48 49 50 51 46 52 static void gld${EMULATION_NAME}_before_parse PARAMS ((void)); 47 53 static char *gld${EMULATION_NAME}_get_script PARAMS ((int *isfile)); 54 55 56 57 58 59 48 60 49 61 static void 50 gld${EMULATION_NAME}_before_parse( )62 gld${EMULATION_NAME}_before_parse() 51 63 { 52 64 ldfile_set_output_arch ("`echo ${ARCH}`"); … … 71 83 # *isfile = 0; 72 84 # 73 # if (link_info.relocateable == true && config.build_constructors == true)85 # if (link_info.relocateable == ) 74 86 # return 75 87 #EOF 76 88 #sed $sc ldscripts/${EMULATION_NAME}.xu >> e${EMULATION_NAME}.c 77 #echo ' ; else if (link_info.relocateable == true) return' >> e${EMULATION_NAME}.c89 #echo ' ; else if (link_info.relocateable == ) return' >> e${EMULATION_NAME}.c 78 90 #sed $sc ldscripts/${EMULATION_NAME}.xr >> e${EMULATION_NAME}.c 79 91 #echo ' ; else if (!config.text_read_only) return' >> e${EMULATION_NAME}.c … … 105 117 *isfile = 1; 106 118 107 if (link_info.relocateable == true && config.build_constructors == true)119 if (link_info.relocateable == ) 108 120 return "ldscripts/${EMULATION_NAME}.xu"; 109 else if (link_info.relocateable == true)121 else if (link_info.relocateable == ) 110 122 return "ldscripts/${EMULATION_NAME}.xr"; 111 123 else if (!config.text_read_only) … … 125 137 126 138 /* Report a fatal error. 127 STRING is a printf format string and ARG is one arg for it. */ 128 129 void 130 fatal (string, arg1, arg2) 131 char *string, *arg1, *arg2; 132 { 139 FMT is a printf format string and ARG is one arg for it. */ 140 141 static void fatal VPARAMS ((char *fmt, ...)) 142 { 143 VA_OPEN (arg, fmt); 144 VA_FIXEDARG (arg, char *, fmt); 145 133 146 fprintf (stderr, "%s: ", program_name); 134 fprintf (stderr, string, arg1, arg2); 147 vfprintf (stderr, fmt, arg); 148 VA_CLOSE (arg); 135 149 fprintf (stderr, "\n"); 136 150 xexit (1); … … 141 155 generating the error message using format string ERROR and ARG as arg. */ 142 156 143 int157 int 144 158 parse (arg, format, error) 145 char *arg, *format; 146 int error; 159 char *arg, *format, *error; 147 160 { 148 161 int x; … -
Property cvs2svn:cvs-rev
changed from
