• David Crawshaw's avatar
    runtime: darwin/amd64 library entry point · b0a85f5d
    David Crawshaw authored
    This is a practice run for darwin/arm.
    
    Similar to the linux/amd64 shared library entry point. With several
    pending linker changes I am successfully using this to implement
    -buildmode=c-archive on darwin/amd64 with external linking.
    
    The same entry point can be reused to implement -buildmode=c-shared
    on darwin/amd64, however that will require further ld changes to
    remove all text relocations.
    
    One extra runtime change will follow this. According to the Go
    execution modes document, -buildmode=c-archive should ignore the Go
    main function. Right now it is being executed (and the process exits
    if it doesn't block). I'm still searching for the right way to do
    this.
    
    Change-Id: Id97901ddd4d46970996f222bd79731dabff66a3d
    Reviewed-on: https://go-review.googlesource.com/8652Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    b0a85f5d
rt0_darwin_amd64.s 1.35 KB