#!/bin/sh # Run assembler to produce an object file, optionally applying other pre-processing steps input=$1 output=$2 arch=$3 as=$4 if [ -f "tools/add-cfi.awk.$arch" ]; then tmpfile=$(mktemp -t musl-aswrap-XXXXXX) awk -f tools/add-cfi.awk.$arch $input >$tmpfile mv $tmpfile $tmpfile.s input=$tmpfile.s fi $as -c -o $output $input