Skip to content

Commit 1227299

Browse files
committed
sdk-installer: work around objdump problem
Apparently 32-bit objdump does not like the way we extract .pdb files from git.exe and git-remote-https.exe: it always fails with "File truncated". The 64-bit objdump seems to be unaffected by this bug. Let's switch to using ldd instead, hopefully this will work around the issue: we only need to release a new SDK every blue moon, anyway. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 0976d8e commit 1227299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk-installer/release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ do
4747
todo=${todo#* }
4848
exes_and_dlls="$exes_and_dlls$file "
4949

50-
for dll in $(objdump -p "$BIN_DIR/$file" |
51-
sed -n "s|^\tDLL Name: ||p")
50+
for dll in $(ldd "$BIN_DIR/$file" |
51+
sed -n "s|.*> $BIN_DIR/\\([^ ]*\\).*|\\1|p")
5252
do
5353
case " $exes_and_dlls $todo " in
5454
*" $dll "*) ;; # already found/queued

0 commit comments

Comments
 (0)