Deleted Added
sdiff udiff text old ( 38890 ) new ( 42372 )
full compact
1# This shell script emits a C file. -*- C -*-
2# It does some substitutions.
3# This file is now misnamed, because it supports both 32 bit and 64 bit
4# ELF emulations.
5test -z "${ELFSIZE}" && ELFSIZE=32
6cat >e${EMULATION_NAME}.c <<EOF
7/* This file is is generated by a shell script. DO NOT EDIT! */
8

--- 125 unchanged lines hidden (view full) ---

134 }
135
136 return true;
137}
138
139EOF
140if [ "x${host}" = "x${target}" ] ; then
141 if [ "x${DEFAULT_EMULATION}" = "x${EMULATION_NAME}" ] ; then
142cat >>e${EMULATION_NAME}.c <<EOF
143
144/* For a native linker, check the file /etc/ld.so.conf for directories
145 in which we may find shared libraries. /etc/ld.so.conf is really
146 only meaningful on Linux, but we check it on other systems anyhow. */
147
148static boolean gld${EMULATION_NAME}_check_ld_so_conf
149 PARAMS ((const char *, int));
150
151static boolean

--- 64 unchanged lines hidden (view full) ---

216 initialized = true;
217 }
218
219 if (ld_so_conf == NULL)
220 return false;
221
222 return gld${EMULATION_NAME}_search_needed (ld_so_conf, name, force);
223}
224
225EOF
226 fi
227fi
228cat >>e${EMULATION_NAME}.c <<EOF
229
230/* These variables are required to pass information back and forth
231 between after_open and check_needed and stat_needed and vercheck. */
232
233static struct bfd_link_needed_list *global_needed;

--- 96 unchanged lines hidden (view full) ---

330 break;
331 free (filename);
332 }
333 if (search != NULL)
334 break;
335EOF
336if [ "x${host}" = "x${target}" ] ; then
337 if [ "x${DEFAULT_EMULATION}" = "x${EMULATION_NAME}" ] ; then
338cat >>e${EMULATION_NAME}.c <<EOF
339 if (gld${EMULATION_NAME}_check_ld_so_conf (l->name, force))
340 break;
341EOF
342 fi
343fi
344cat >>e${EMULATION_NAME}.c <<EOF
345 }
346
347 if (force < 2)
348 continue;
349

--- 814 unchanged lines hidden ---