]> Cypherpunks repositories - gostls13.git/commit
runtime, cmd/ld: make code more position-independent
authorElias Naur <elias.naur@gmail.com>
Fri, 1 Feb 2013 19:24:49 +0000 (11:24 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 1 Feb 2013 19:24:49 +0000 (11:24 -0800)
commit44cf814d5002faf92bce26d21c3bf676d6a2c581
tree057266367378942bece7c199321a33522a913e67
parent11d16dc53545438067fef0103c10eae126c11535
runtime, cmd/ld: make code more position-independent

Change the stack unwinding code to compensate for the dynamic
relocation of symbols.
Change the gc instruction GC_CALL to use a relative offset instead of
an absolute address.

R=golang-dev
CC=golang-dev
https://golang.org/cl/7248048
src/cmd/ld/data.c
src/pkg/runtime/mgc0.c
src/pkg/runtime/mgc0.h
src/pkg/runtime/symtab.c