golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.71k stars 17.62k forks source link

cmd/compile: does not understand old linker flags #8104

Open dvyukov opened 10 years ago

dvyukov commented 10 years ago
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 commented 10 years ago

Comment 1:

Maybe working as intended.

Labels changed: added release-none.

Status changed to Accepted.

mwhudson commented 9 years ago

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