master script: fix generate to same file
This commit is contained in:
parent
6df057260d
commit
174c4e8143
1 changed files with 5 additions and 0 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue