This diff is to support Debian packaging,
which sets various hardening-rleated flags
in CFLAGS. They don't make sense for Go,
so we just ignore them.
Details
Details
Diff Detail
Diff Detail
Event Timeline
cmd/gllgo/gllgo.go | ||
---|---|---|
329 | You might want to add a TODO to enable the stack protector anyway; it could still be useful for protecting against the scenario where a C library called via cgo is manipulated into overwriting a Go stack frame. | |
331–335 | It may be simpler to ignore everything beginning with -W, as some other distribution may be using some other set of warning flags. |
This comment was removed by axw.
You might want to add a TODO to enable the stack protector anyway; it could still be useful for protecting against the scenario where a C library called via cgo is manipulated into overwriting a Go stack frame.