{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/14217","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/14217/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/14217/comments","events_url":"https://api.github.com/repos/golang/go/issues/14217/events","html_url":"https://github.com/golang/go/issues/14217","id":131207266,"number":14217,"title":"cmd/link: illegal text-relocation for c-archive darwin/amd64","user":{"login":"azinman","id":142533,"avatar_url":"https://avatars.githubusercontent.com/u/142533?v=3","gravatar_id":"","url":"https://api.github.com/users/azinman","html_url":"https://github.com/azinman","followers_url":"https://api.github.com/users/azinman/followers","following_url":"https://api.github.com/users/azinman/following{/other_user}","gists_url":"https://api.github.com/users/azinman/gists{/gist_id}","starred_url":"https://api.github.com/users/azinman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azinman/subscriptions","organizations_url":"https://api.github.com/users/azinman/orgs","repos_url":"https://api.github.com/users/azinman/repos","events_url":"https://api.github.com/users/azinman/events{/privacy}","received_events_url":"https://api.github.com/users/azinman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-04T01:09:27Z","updated_at":"2016-02-04T01:09:27Z","closed_at":null,"body":"When compiling using buildmode c-archive on darwin/amd64 (targeting the iOS simulator), I run into this error when trying to link the resulting archive to my Swift code:\r\n\r\nld: illegal text-relocation to 'type..eq.[0]encoding/xml.Attr' in .../lib.a(go.o) from 'runtime.rodata' in .../lib.a(go.o) for architecture x86_64\r\n\r\nLooking at the cmd/link/internal/ld/macho.go, it seems that it currently is only checking for shared archives on amd64 when it chooses to use the DATA segment over TEXT."}}