aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Waller <[email protected]>2014-09-23 14:58:52 +0100
committerPeter Waller <[email protected]>2014-09-23 14:58:52 +0100
commit899001c4299979c54680fa111d3066a8716dd015 (patch)
tree6d7dcbc9cb88f63bc32acd7c8a3db0c88377219e
parentMerge pull request #8 from pwaller/bugfix (diff)
parentBackported fix from EK goupx (diff)
downloadgoupx-899001c4299979c54680fa111d3066a8716dd015.tar.xz
goupx-899001c4299979c54680fa111d3066a8716dd015.zip
Merge pull request #10 from essentialkaos/master
Backported fix from EK goupx
-rw-r--r--hemfix/hemfix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hemfix/hemfix.go b/hemfix/hemfix.go
index 8fa0be0..970e4a3 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 {
+ if p.Off != 0 || p.Flags&ELF.PF_X != ELF.PF_X {
continue
}