# Linker script for ARM COFF. # Based on i386coff.sc by Ian Taylor . test -z "$ENTRY" && ENTRY=_start if test -z "${DATA_ADDR}"; then if test "$LD_FLAG" = "N" || test "$LD_FLAG" = "n"; then DATA_ADDR=. fi fi # These are substituted in as variables in order to get '}' in a shell # conditional expansion. CTOR='.ctor : { *(SORT(.ctors.*)) *(.ctor) }' DTOR='.dtor : { *(SORT(.dtors.*)) *(.dtor) }' if test "${RELOCATING}"; then R_IDATA234=' SORT(*)(.idata$2) SORT(*)(.idata$3) /* These zeroes mark the end of the import list. */ LONG (0); LONG (0); LONG (0); LONG (0); LONG (0); SORT(*)(.idata$4)' R_IDATA5='SORT(*)(.idata$5)' R_IDATA67=' SORT(*)(.idata$6) SORT(*)(.idata$7)' else R_IDATA234= R_IDATA5= R_IDATA67= fi cat <