This commit is contained in:
암냥 2026-08-16 20:03:47 +09:00
commit ab3a5296a0
No known key found for this signature in database
13 changed files with 199 additions and 50 deletions

View file

@ -14,7 +14,7 @@ pkgs.writeShellApplication {
#!/usr/bin/env bash
set -euo pipefail
image="${1:-tmp-elf-extract}"
image="''${1:-tmp-elf-extract}"
docker build -t "$image" .
@ -30,8 +30,8 @@ pkgs.writeShellApplication {
[ -n "$libc_path" ] || { echo "libc.so.6 not found" >&2; exit 1; }
[ -n "$ld_path" ] || { echo "ld-linux not found" >&2; exit 1; }
docker cp -L "${cid}:${libc_path}" ./libc.so.6
docker cp -L "${cid}:${ld_path}" ./ld-linux-x86-64.so.2
docker cp -L "''${cid}:''${libc_path}" ./libc.so.6
docker cp -L "''${cid}:''${ld_path}" ./ld-linux-x86-64.so.2
file libc.so.6 ld-linux-x86-64.so.2
ls -lh libc.so.6 ld-linux-x86-64.so.2