diff options
author | Joel Sing <jsing@google.com> | 2012-09-21 12:51:39 +1000 |
---|---|---|
committer | Joel Sing <jsing@google.com> | 2012-09-21 12:51:39 +1000 |
commit | f538d7a51d66824b31a6eac9f8b6997dcb8f2950 (patch) | |
tree | 3fedf479d13a5c93b59c68e020f8f020b99d8ef2 /src/cmd/ld/elf.h | |
parent | bbf3889adceaa8f32c82b0ef4ae84674650abc02 (diff) | |
download | go-f538d7a51d66824b31a6eac9f8b6997dcb8f2950.tar.gz |
cmd/{ld,5l,6l,8l}: add support for OpenBSD ELF signatures
OpenBSD now requires ELF binaries to have a PT_NOTE that identifies
it as an OpenBSD binary. Refactor the existing NetBSD ELF signature
code and implement support for OpenBSD ELF signatures.
R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6489131
Diffstat (limited to 'src/cmd/ld/elf.h')
-rw-r--r-- | src/cmd/ld/elf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/ld/elf.h b/src/cmd/ld/elf.h index 13c3d4da1..8568548a9 100644 --- a/src/cmd/ld/elf.h +++ b/src/cmd/ld/elf.h @@ -976,6 +976,8 @@ int elfinterp(ElfShdr*, uint64, uint64, char*); int elfwriteinterp(vlong); int elfnetbsdsig(ElfShdr*, uint64, uint64); int elfwritenetbsdsig(vlong); +int elfopenbsdsig(ElfShdr*, uint64, uint64); +int elfwriteopenbsdsig(vlong); void elfdynhash(void); ElfPhdr* elfphload(Segment*); ElfShdr* elfshbits(Section*); |