| TEXT _rt0_ppc64le_linux(SB),NOSPLIT,$0 |
| TEXT _main<>(SB),NOSPLIT,$-8 |
| // In a statically linked binary, the stack contains argc, |
| // argv as argc string pointers followed by a NULL, envv as a |
| // sequence of string pointers followed by a NULL, and auxv. |
| // There is no TLS base pointer. |
| // In a dynamically linked binary, r3 contains argc, r4 |
| // contains argv, r5 contains envp, r6 contains auxv, and r13 |
| // contains the TLS pointer. |
| // Figure out which case this is by looking at r4: if it's 0, |
| // we're statically linked; otherwise we're dynamically |
| MOVD $runtimeĀ·tls0(SB), R13 // TLS |
| TEXT main(SB),NOSPLIT,$-8 |
| MOVD $runtimeĀ·rt0_go(SB), R31 |