FAQ
This turned out nicely self-contained. Thanks very much. One small thing
below to avoid touching the startup code.



http://codereview.appspot.com/6454046/diff/22001/src/pkg/runtime/rt0_linux_amd64.s
File src/pkg/runtime/rt0_linux_amd64.s (right):

http://codereview.appspot.com/6454046/diff/22001/src/pkg/runtime/rt0_linux_amd64.s#newcode8
src/pkg/runtime/rt0_linux_amd64.s:8:
CALL runtime·linux_setup_sysargs_handler(SB)
Delete.

http://codereview.appspot.com/6454046/diff/22001/src/pkg/runtime/vdso_linux_amd64.c
File src/pkg/runtime/vdso_linux_amd64.c (right):

http://codereview.appspot.com/6454046/diff/22001/src/pkg/runtime/vdso_linux_amd64.c#newcode323
src/pkg/runtime/vdso_linux_amd64.c:323: #pragma textflag 7
Replace this function wth

void (*runtime·sysargs)(int32, uint8**) = runtime.linux_setup_vdso;

then the linker will do it for you.

http://codereview.appspot.com/6454046/

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedAug 31, '12 at 5:29p
activeAug 31, '12 at 10:14p
posts8
users3
websitegolang.org

3 users in discussion

Imkrasin: 4 posts Rsc: 3 posts Fullung: 1 post

People

Translate

site design / logo © 2022 Grokbase