diff options
| author | Shenghou Ma <minux.ma@gmail.com> | 2012-05-05 01:59:14 +0800 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2012-05-05 01:59:14 +0800 |
| commit | a642ca49309b129e77ba15a066fbf8e7c4b69b79 (patch) | |
| tree | 7cf54abde6a7e7ad582fc9428de301cc6c8db27f /src/pkg/runtime/rt0_linux_arm.s | |
| parent | dac4c3eee949ccc395bde808832ab7b2bba370da (diff) | |
| download | go-a642ca49309b129e77ba15a066fbf8e7c4b69b79.tar.xz | |
runtime: get per-process random number from auxv for hash table
Decode AT_RANDOM, AT_HWCAP, and AT_PLATFORM.
This CL only make use of AT_RANDOM, but future CLs will make use of the others.
R=dave, rsc
CC=golang-dev
https://golang.org/cl/5978051
Diffstat (limited to 'src/pkg/runtime/rt0_linux_arm.s')
| -rw-r--r-- | src/pkg/runtime/rt0_linux_arm.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/runtime/rt0_linux_arm.s b/src/pkg/runtime/rt0_linux_arm.s index 54ea860dc1..a648160cf7 100644 --- a/src/pkg/runtime/rt0_linux_arm.s +++ b/src/pkg/runtime/rt0_linux_arm.s @@ -37,6 +37,10 @@ TEXT _rt0_arm_linux(SB),7,$-4 MOVW $174, R7 // sys_sigaction SWI $0 // restore signal handler ADD $32, R13 + + SUB $4, R13 // fake a stack frame for runtime·setup_auxv + BL runtime·setup_auxv(SB) + ADD $4, R13 B _rt0_arm(SB) TEXT bad_abi<>(SB),7,$-4 |
