Merge pull request #69028 from matthewbauer/remove-iselfexec-iselfdyn
Revert "setup.sh introduce isELFExec, isELFDyn"
This commit is contained in:
commit
8e9b98a183
@ -211,18 +211,6 @@ isELF() {
|
|||||||
if [ "$magic" = $'\177ELF' ]; then return 0; else return 1; fi
|
if [ "$magic" = $'\177ELF' ]; then return 0; else return 1; fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Return success if the specified file is an ELF object
|
|
||||||
# and its e_type is ET_EXEC (executable file)
|
|
||||||
isELFExec() {
|
|
||||||
grep -ao -P '^\177ELF.{11}\x00\x02' "$1" >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
# Return success if the specified file is an ELF object
|
|
||||||
# and its e_type is ET_DYN (shared object file)
|
|
||||||
isELFDyn() {
|
|
||||||
grep -ao -P '^\177ELF.{11}\x00\x03' "$1" >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
# Return success if the specified file is a script (i.e. starts with
|
# Return success if the specified file is a script (i.e. starts with
|
||||||
# "#!").
|
# "#!").
|
||||||
isScript() {
|
isScript() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user