diff options
| author | Anton Novojilov <[email protected]> | 2014-09-23 00:09:04 +0200 |
|---|---|---|
| committer | Anton Novojilov <[email protected]> | 2014-09-23 00:09:04 +0200 |
| commit | 196914b3fc56c1064be421712f4e05475a9e0633 (patch) | |
| tree | 6d7dcbc9cb88f63bc32acd7c8a3db0c88377219e | |
| parent | Merge pull request #8 from pwaller/bugfix (diff) | |
| download | archived-goupx-196914b3fc56c1064be421712f4e05475a9e0633.tar.xz archived-goupx-196914b3fc56c1064be421712f4e05475a9e0633.zip | |
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 } |