* genscripts.sh: Source the emulparams script before each output
script is generated so that variables like `RELOCATING' may affect variables defined in the emulparams script.
This commit is contained in:
parent
8fd3e36b84
commit
179c732cf6
2 changed files with 24 additions and 12 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2001-08-08 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* genscripts.sh: Source the emulparams script before each output
|
||||||
|
script is generated so that variables like `RELOCATING' may affect
|
||||||
|
variables defined in the emulparams script.
|
||||||
|
|
||||||
2001-08-04 Alan Modra <amodra@bigpond.net.au>
|
2001-08-04 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
|
* emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
|
||||||
|
|
|
@ -99,39 +99,45 @@ DATA_ALIGNMENT_u="${DATA_ALIGNMENT_u-${DATA_ALIGNMENT_r}}"
|
||||||
LD_FLAG=r
|
LD_FLAG=r
|
||||||
DATA_ALIGNMENT=${DATA_ALIGNMENT_r}
|
DATA_ALIGNMENT=${DATA_ALIGNMENT_r}
|
||||||
DEFAULT_DATA_ALIGNMENT="ALIGN(${SEGMENT_SIZE})"
|
DEFAULT_DATA_ALIGNMENT="ALIGN(${SEGMENT_SIZE})"
|
||||||
(. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc) | sed -e '/^ *$/d' > \
|
( . ${srcdir}/emulparams/${EMULATION_NAME}.sh
|
||||||
ldscripts/${EMULATION_NAME}.xr
|
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
|
||||||
|
) | sed -e '/^ *$/d' > ldscripts/${EMULATION_NAME}.xr
|
||||||
|
|
||||||
LD_FLAG=u
|
LD_FLAG=u
|
||||||
DATA_ALIGNMENT=${DATA_ALIGNMENT_u}
|
DATA_ALIGNMENT=${DATA_ALIGNMENT_u}
|
||||||
CONSTRUCTING=" "
|
CONSTRUCTING=" "
|
||||||
(. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc) | sed -e '/^ *$/d' > \
|
( . ${srcdir}/emulparams/${EMULATION_NAME}.sh
|
||||||
ldscripts/${EMULATION_NAME}.xu
|
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
|
||||||
|
) | sed -e '/^ *$/d' > ldscripts/${EMULATION_NAME}.xu
|
||||||
|
|
||||||
LD_FLAG=
|
LD_FLAG=
|
||||||
DATA_ALIGNMENT=${DATA_ALIGNMENT_}
|
DATA_ALIGNMENT=${DATA_ALIGNMENT_}
|
||||||
RELOCATING=" "
|
RELOCATING=" "
|
||||||
(. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc) | sed -e '/^ *$/d' > \
|
( . ${srcdir}/emulparams/${EMULATION_NAME}.sh
|
||||||
ldscripts/${EMULATION_NAME}.x
|
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
|
||||||
|
) | sed -e '/^ *$/d' > ldscripts/${EMULATION_NAME}.x
|
||||||
|
|
||||||
LD_FLAG=n
|
LD_FLAG=n
|
||||||
DATA_ALIGNMENT=${DATA_ALIGNMENT_n}
|
DATA_ALIGNMENT=${DATA_ALIGNMENT_n}
|
||||||
TEXT_START_ADDR=${NONPAGED_TEXT_START_ADDR-${TEXT_START_ADDR}}
|
TEXT_START_ADDR=${NONPAGED_TEXT_START_ADDR-${TEXT_START_ADDR}}
|
||||||
(. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc) | sed -e '/^ *$/d' > \
|
( . ${srcdir}/emulparams/${EMULATION_NAME}.sh
|
||||||
ldscripts/${EMULATION_NAME}.xn
|
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
|
||||||
|
) | sed -e '/^ *$/d' > ldscripts/${EMULATION_NAME}.xn
|
||||||
|
|
||||||
LD_FLAG=N
|
LD_FLAG=N
|
||||||
DATA_ALIGNMENT=${DATA_ALIGNMENT_N}
|
DATA_ALIGNMENT=${DATA_ALIGNMENT_N}
|
||||||
(. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc) | sed -e '/^ *$/d' > \
|
( . ${srcdir}/emulparams/${EMULATION_NAME}.sh
|
||||||
ldscripts/${EMULATION_NAME}.xbn
|
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
|
||||||
|
) | sed -e '/^ *$/d' > ldscripts/${EMULATION_NAME}.xbn
|
||||||
|
|
||||||
if test -n "$GENERATE_SHLIB_SCRIPT"; then
|
if test -n "$GENERATE_SHLIB_SCRIPT"; then
|
||||||
LD_FLAG=shared
|
LD_FLAG=shared
|
||||||
DATA_ALIGNMENT=${DATA_ALIGNMENT_s-${DATA_ALIGNMENT_}}
|
DATA_ALIGNMENT=${DATA_ALIGNMENT_s-${DATA_ALIGNMENT_}}
|
||||||
CREATE_SHLIB=" "
|
CREATE_SHLIB=" "
|
||||||
# Note that TEXT_START_ADDR is set to NONPAGED_TEXT_START_ADDR.
|
# Note that TEXT_START_ADDR is set to NONPAGED_TEXT_START_ADDR.
|
||||||
(. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc) | sed -e '/^ *$/d' > \
|
( . ${srcdir}/emulparams/${EMULATION_NAME}.sh
|
||||||
ldscripts/${EMULATION_NAME}.xs
|
. ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
|
||||||
|
) | sed -e '/^ *$/d' > ldscripts/${EMULATION_NAME}.xs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in $EMULATION_LIBPATH ; do
|
for i in $EMULATION_LIBPATH ; do
|
||||||
|
|
Loading…
Reference in a new issue