mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Revert "setup.sh introduce isELFExec, isELFDyn"
This reverts commit e1b80a5a99
.
This is broken in PIE (#68513). Best to not keep it in until something
else starts using it.
This commit is contained in:
parent
760b677c19
commit
24c6aef75a
@ -212,18 +212,6 @@ isELF() {
|
||||
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
|
||||
# "#!").
|
||||
isScript() {
|
||||
|
Loading…
Reference in New Issue
Block a user