mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-16 02:34:37 +00:00
25 lines
534 B
Bash
Executable File
25 lines
534 B
Bash
Executable File
#!/bin/sh
|
|
output=$2
|
|
objcopy_cmd=$(which objcopy)
|
|
genpeimg_cmd=$(which genpeimg)
|
|
|
|
$objcopy_cmd -j .text \
|
|
-j .sdata \
|
|
-j .data \
|
|
-j .dynamic \
|
|
-j .dynsym \
|
|
-j .rel \
|
|
-j .rela \
|
|
-j .reloc \
|
|
$*
|
|
|
|
if [ -n "${genpeimg_cmd}" ]; then
|
|
$genpeimg_cmd -d \
|
|
+d \
|
|
-d \
|
|
+n \
|
|
-d \
|
|
+s \
|
|
$output
|
|
fi
|