buildtools/binutils/ld/genscrba.sh
Alexander von Gluck IV 46e1ce6913 binutils: Import binutils 2.36.1
Change-Id: I06fc1c19229e26c20132c255c92b7e71ea3cc31a
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4372
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-08-26 20:24:40 +00:00

17 lines
319 B
Bash

#!/bin/bash
source_em()
{
local current_script="$em_script"
em_script=$1
source_sh $1
em_script=$current_script
}
fragment()
{
if [ ${BASH_VERSINFO[3]} -ge 3 ]; then
local lineno=$[${BASH_LINENO[0]} + 1]
echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
fi
cat >> e${EMULATION_NAME}.c
}