master script: fix generate to same file

This commit is contained in:
Théophile Bastian 2019-05-28 16:35:17 +02:00
parent 6df057260d
commit 174c4e8143

View file

@ -50,6 +50,7 @@ function dwarf_write_synth {
function dwarf_plug {
objcopy \
--remove-section '.eh_frame' --remove-section '.eh_frame_hdr' \
--add-section .eh_frame="$TMP_DIR/eh_frame" \
"$INPUT_FILE" "$OUTPUT_FILE"
return $?
@ -73,6 +74,10 @@ if ! [ -f "$INPUT_FILE" ] ; then
>&2 echo -e "$INPUT_FILE: no such file.\n\n$HELP_TEXT"
fi
if [ -z "$OUTPUT_FILE" ] ; then
OUTPUT_FILE="$INPUT_FILE"
fi
TMP_DIR="$(mktemp -d)"
bap_synth \