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/compile: does not understand old linker flags #8104

Open
dvyukov opened this Issue May 27, 2014 · 2 comments

Comments

Projects
None yet
3 participants
@dvyukov
Copy link
Member

dvyukov commented May 27, 2014

liblink/obj6.c uses ctxt->debugstack to emit stack underflow checks. The flag was
meant to be initialized from -K 6l flag.
But now liblink is invoked from the compiler. And the compiler does not initialize
ctxt->debugstack. Moreover the compiler already uses -K flag for a different purpose.

I suspect this relates to a bunch of other flags as well.
We need to choose some other names for the old linker flags and read them in all users
of liblink.
@rsc

This comment has been minimized.

Copy link
Contributor

rsc commented May 27, 2014

Comment 1:

Maybe working as intended.

Labels changed: added release-none.

Status changed to Accepted.

@mwhudson

This comment has been minimized.

Copy link
Contributor

mwhudson commented Feb 16, 2015

There are lots of these it seems, my reading finds at least -Z, -W, -S, -Q, -1, -O (I think).

@rsc rsc added this to the Unplanned milestone Apr 10, 2015

@rsc rsc removed release-none labels Apr 10, 2015

@rsc rsc changed the title cmd/gc: does not understand old linker flags cmd/compile: does not understand old linker flags Jun 8, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.