]> Cypherpunks repositories - gostls13.git/commit
cmd/5l: generate FreeBSD compatible ELF
authorShenghou Ma <minux.ma@gmail.com>
Tue, 9 Oct 2012 17:02:49 +0000 (01:02 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Tue, 9 Oct 2012 17:02:49 +0000 (01:02 +0800)
commitd901808869db4236f436e067e4bd957de7d54595
tree693edf06d6d05ebe6268e90be018eef2a635d60b
parentfa563ae82e2d1038656be21c52831e7ad42108a8
cmd/5l: generate FreeBSD compatible ELF
1. correctly initialize .plt.got entries (point to the 1st entry)
2. add section .rel.plt (FreeBSD insists PLT relocs to be there)
3. put relocs of .got.plt into .rel.plt
4. set ELFOSABI_FREEBSD in ELF header

R=rsc
CC=golang-dev
https://golang.org/cl/6643050
src/cmd/5l/asm.c
src/cmd/5l/obj.c