aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hemfix/hemfix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hemfix/hemfix.go b/hemfix/hemfix.go
index 970e4a3..9f91154 100644
--- a/hemfix/hemfix.go
+++ b/hemfix/hemfix.go
@@ -116,7 +116,7 @@ func fixelf(elf *ELF.File, fd io.ReadWriteSeeker) error {
continue
}
- if p.Off != 0 || p.Flags&ELF.PF_X != ELF.PF_X {
+ if p.Flags&ELF.PF_X != ELF.PF_X {
continue
}