Skip to content

Commit

Permalink
whatever
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 614392351
  • Loading branch information
common-lisp-dev-copybara authored and copybara-github committed Mar 10, 2024
1 parent 5a9d9e7 commit de3ba39
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions elfconvert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,20 @@ action=$1
input=$2
output=$3

compactcore=/tmp/compact-$$.core
tmpcore=/tmp/patched-$$.core
DSS=16384

case $action in
split)
exec $sbcl ${args[@]} --eval "$mode" --load $script --eval \
'(sb-editcore:split-core "'$input'" "'$output'")' --quit ;;
exec $sbcl ${args[@]} --eval "$mode" --load $script \
--eval '(sb-editcore:reorganize-core "'$input'" "'$compactcore'")' \
--eval '(sb-editcore:move-dynamic-code-to-text-space "'$compactcore'" "'$tmpcore'")' \
--eval '(delete-file "'$compactcore'")' \
--eval '(sb-editcore:redirect-text-space-calls "'$tmpcore'")' \
--eval '(sb-editcore:split-core "'$tmpcore'" "'$output'" :dynamic-space-size '$DSS')' \
--eval '(delete-file "'$tmpcore'")' --quit ;;

copy)
exec $sbcl ${args[@]} --eval "$mode" --load $script --eval \
'(sb-editcore::copy-to-elf-obj "'$input'" "'$output'")' --quit ;;
Expand Down

0 comments on commit de3ba39

Please sign in to comment.