diff options
| author | Peter Waller <[email protected]> | 2014-09-23 14:58:52 +0100 |
|---|---|---|
| committer | Peter Waller <[email protected]> | 2014-09-23 14:58:52 +0100 |
| commit | 899001c4299979c54680fa111d3066a8716dd015 (patch) | |
| tree | 6d7dcbc9cb88f63bc32acd7c8a3db0c88377219e | |
| parent | Merge pull request #8 from pwaller/bugfix (diff) | |
| parent | Backported fix from EK goupx (diff) | |
| download | goupx-899001c4299979c54680fa111d3066a8716dd015.tar.xz goupx-899001c4299979c54680fa111d3066a8716dd015.zip | |
Merge pull request #10 from essentialkaos/master
Backported fix from EK goupx
| -rw-r--r-- | hemfix/hemfix.go | 2 |
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 } |