Skip to content

Commit 62de3e1

Browse files
committedAug 2, 2023
Add support for position-independent executables (static-pie)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
1 parent 0ec8d8a commit 62de3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎scripts/go-assert-static.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ for exe in "${@}"; do
1010
exit 1
1111
fi
1212

13-
if ! file "${exe}" | grep -E '.*ELF.*executable, .*, statically linked,.*'; then
13+
if ! file "${exe}" | grep -E '.*ELF.*executable, .*, (statically|static-pie) linked,.*'; then
1414
file "${exe}" >&2
1515
echo "${exe}: not a statically linked executable" >&2
1616
exit 1

0 commit comments

Comments
 (0)
Please sign in to comment.