• Srdjan Petrovic's avatar
    runtime: shared library runtime init for arm · 93644c91
    Srdjan Petrovic authored
    Adds the runtime initialization flow for arm akin to amd64.
    In particular,we use the library initialization entry point to:
        - create a new OS thread and run the "regular" runtime init stack on
          that thread
        - return immediately from the main (i.e., loader) thread
        - at the first CGO invocation, we wait for the runtime initialization
          to complete.
    
    Verified to work on a Raspberry Pi and an Android phone.
    
    Change-Id: I32f39228ae30a03ce9569287f234b305790fecf6
    Reviewed-on: https://go-review.googlesource.com/8455Reviewed-by: default avatarDavid Crawshaw <crawshaw@golang.org>
    Run-TryBot: Srdjan Petrovic <spetrovic@google.com>
    93644c91
sys_linux_arm.s 10.9 KB