]> Cypherpunks repositories - gostls13.git/commit
darwin/amd64: fix text-relocation issues for c-archive libraries

authorAaron Zinman <aaron@azinman.com>
Thu, 4 Feb 2016 01:36:15 +0000 (17:36 -0800)
committerDavid Crawshaw <crawshaw@golang.org>
Tue, 8 Mar 2016 05:33:33 +0000 (05:33 +0000)
commitaea4222f673ee9189ba81548978b091004afe994
tree2e479d76aa45964efff20451ea2f9cb543304de7
parent0d9258a830c585c65e7ef614588d9c9a014b6123
darwin/amd64: fix text-relocation issues for c-archive libraries


The existing implementation deals with absolute relocations in __TEXT
for darwin/amd64 in build-mode c-shared, but it ignores c-archive.
This results in issues when trying to use a c-archive in an iOS
app on the 64-bit simulator. This patch adds c-archive to the
handling of this issue.

Fixes #14217

Change-Id: I2e4d5193caa531171ad22fd0cd420a8bfb4646a6
Reviewed-on: https://go-review.googlesource.com/19206
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/macho.go