Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/8l: unsupported scattered relocation 2/1 on Mac OS X #1635

Closed
gopherbot opened this issue Mar 23, 2011 · 9 comments
Closed

cmd/8l: unsupported scattered relocation 2/1 on Mac OS X #1635

gopherbot opened this issue Mar 23, 2011 · 9 comments

Comments

@gopherbot
Copy link

by ian.burleigh:

cgo: Cannot take the address of a C function on darwin/386.

void scatter() {
  void *p = scatter;
  printf("scatter %x\n",(unsigned int)p);
}

What steps will reproduce the problem?
1. Unpack attached zip archive.
2. make foo

What is the expected output?
compiled

What do you see instead?
8l: malformed mach-o file: unsupported scattered relocation 2/1

Which compiler are you using (5g, 6g, 8g, gccgo)?
gcc version 4.2.1 (Apple Inc. build 5664)
8g version 7835+
8l version 7835+

Which operating system are you using?
Snow Leopard

Which revision are you using?  (hg identify)
cee1ff73db73+ tip

Please provide any additional information below.
All works well on linux or darwin/amd64.

Attachments:

  1. cgo_foo.zip (1947 bytes)
@adg
Copy link
Contributor

adg commented Mar 24, 2011

Comment 1:

Labels changed: added cgo.

Owner changed to @rsc.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Dec 9, 2011

Comment 2:

Labels changed: added priority-later, removed priority-medium.

@rsc
Copy link
Contributor

rsc commented Jan 29, 2012

Comment 3:

I believe this is Leopard-specific; marking as someday.

Labels changed: added priority-someday, removed priority-later.

@minux
Copy link
Member

minux commented Aug 24, 2012

Comment 5:

Issue #3253 has been merged into this issue.

@minux
Copy link
Member

minux commented Aug 24, 2012

Comment 6:

Issue #4002 has been merged into this issue.

@minux
Copy link
Member

minux commented Aug 24, 2012

Comment 7:

as mentioned in issue #4002, it happens in normal builds on Mac OS X 10.7,
so i raised the priority.

Labels changed: added priority-soon, arch-x86-32, os-macosx, removed priority-someday.

@minux
Copy link
Member

minux commented Aug 29, 2012

Comment 8:

This issue was closed by revision e607380.

Status changed to Fixed.

@minux
Copy link
Member

minux commented Aug 29, 2012

Comment 9:

unfortunately, revision bb2316abeea5 doesn't fix issue #3253, and i've reopened that
issue.

@davecheney
Copy link
Contributor

Comment 10:

Sorry, this was my fault. I had only tested your first patch set. Not
the later ones with the additional test cases.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants