mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
Patch from: Jim Pick <jim@jimpick.com>
Added code so that .xs linker scripts are called so that ARM shared libraries are built correctly. CVS: ----------------------------------------------------------------------
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
1999-06-28 Jim Pick <jim@jimpick.com>
|
||||||
|
|
||||||
|
* emultempl/armelf.em: Added code so that .xs linker scripts are
|
||||||
|
called so that ARM shared libraries are built correctly.
|
||||||
|
|
||||||
1999-06-22 Mark Mitchell <mark@codesourcery.com>
|
1999-06-22 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
* ldmain.c (main): Initialize link_info.init_function and
|
* ldmain.c (main): Initialize link_info.init_function and
|
||||||
|
@ -1215,6 +1215,10 @@ echo ' ; else if (!config.text_read_only) return' >> e${EMULATION_NAME}
|
|||||||
sed $sc ldscripts/${EMULATION_NAME}.xbn >> e${EMULATION_NAME}.c
|
sed $sc ldscripts/${EMULATION_NAME}.xbn >> e${EMULATION_NAME}.c
|
||||||
echo ' ; else if (!config.magic_demand_paged) return' >> e${EMULATION_NAME}.c
|
echo ' ; else if (!config.magic_demand_paged) return' >> e${EMULATION_NAME}.c
|
||||||
sed $sc ldscripts/${EMULATION_NAME}.xn >> e${EMULATION_NAME}.c
|
sed $sc ldscripts/${EMULATION_NAME}.xn >> e${EMULATION_NAME}.c
|
||||||
|
if test -n "$GENERATE_SHLIB_SCRIPT" ; then
|
||||||
|
echo ' ; else if (link_info.shared) return' >> e${EMULATION_NAME}.c
|
||||||
|
sed $sc ldscripts/${EMULATION_NAME}.xs >> e${EMULATION_NAME}.c
|
||||||
|
fi
|
||||||
echo ' ; else return' >> e${EMULATION_NAME}.c
|
echo ' ; else return' >> e${EMULATION_NAME}.c
|
||||||
sed $sc ldscripts/${EMULATION_NAME}.x >> e${EMULATION_NAME}.c
|
sed $sc ldscripts/${EMULATION_NAME}.x >> e${EMULATION_NAME}.c
|
||||||
echo '; }' >> e${EMULATION_NAME}.c
|
echo '; }' >> e${EMULATION_NAME}.c
|
||||||
@ -1234,6 +1238,8 @@ cat >>e${EMULATION_NAME}.c <<EOF
|
|||||||
return "ldscripts/${EMULATION_NAME}.xbn";
|
return "ldscripts/${EMULATION_NAME}.xbn";
|
||||||
else if (!config.magic_demand_paged)
|
else if (!config.magic_demand_paged)
|
||||||
return "ldscripts/${EMULATION_NAME}.xn";
|
return "ldscripts/${EMULATION_NAME}.xn";
|
||||||
|
else if (link_info.shared)
|
||||||
|
return "ldscripts/${EMULATION_NAME}.xs";
|
||||||
else
|
else
|
||||||
return "ldscripts/${EMULATION_NAME}.x";
|
return "ldscripts/${EMULATION_NAME}.x";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user