Skip to content
Snippets Groups Projects
Commit 4c219cf6 authored by rtoy's avatar rtoy
Browse files

The generated linker script was placed in the wrong directory and ld

could not find it.  Put it in the same directory as executable, and
delete it when done.
parent 1495a87c
No related branches found
No related tags found
No related merge requests found
#!/bin/sh -x
# $Id: linker.sh,v 1.8 2009/09/28 12:32:42 rtoy Rel $
# $Id: linker.sh,v 1.9 2010/07/26 19:07:56 rtoy Exp $
# This file was written by Fred Gilham and is placed in the public domain.
# It comes without warranty of any kind.
......@@ -118,10 +118,11 @@ case "$OPSYS" in
# first word of main isn't all zeros.
BIFLAG=0x14120
IFADDR=
sed -e "s;@BIFLAG@;$BIFLAG;" -e "s;@IFADDR@;$1;" $SCRIPT > sunos-map-file
sed -e "s;@BIFLAG@;$BIFLAG;" -e "s;@IFADDR@;$1;" $SCRIPT > $OUTDIR/sunos-map-file
SCRIPT="-M sunos-map-file"
# Remove the sunos-map-file when the script exits.
trap 'rm -f sunos-map-file' 0
trap 'rm -f $OUTDIR/sunos-map-file' 0
echo $PWD
FLAGS=
BIFLAG=
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment