]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix elf64phdr to allow using upx (and other broken ELF loaders).
authorOneOfOne <oneofone@gmail.com>
Fri, 15 Jan 2016 17:24:44 +0000 (19:24 +0200)
committerIan Lance Taylor <iant@golang.org>
Tue, 19 Jan 2016 18:01:33 +0000 (18:01 +0000)
commit5e7110b92b959d22eba421953beaf1de8580f8f5
treec7325f24153d238e24148113dde4b976e61f85e0
parentc7754c8f54a1ace5fc0a8e36df809c713d2623d6
cmd/link: fix elf64phdr to allow using upx (and other broken ELF loaders).

The linker already applies the fix for elf32, so this just extends it to elf64.

Inspired by https://github.com/pwaller/goupx

Fixes #13974

Change-Id: I65d92b5be9590657060a0e8e80ff5b86ba40017f
Reviewed-on: https://go-review.googlesource.com/18690
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/elf.go