Skip to content

Commit

Permalink
ld: skip verification on non-binary files
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Jan 13, 2025
1 parent 55756b3 commit 74dc16c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ld/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,11 @@ RUN <<EOT
make install
cd ..
rm -rf binutils-${BINUTILS_VERSION}
for f in /out/bin/*; do xx-verify $f; done
for f in /out/bin/*; do
if ! file "$f" | grep -q 'ASCII text'; then
xx-verify $f
fi
done
EOT
FROM scratch AS binutils
COPY --from=binutils-base /out /usr/

0 comments on commit 74dc16c

Please sign in to comment.