Skip to content

cmd/link: new darwin linker warning on -pagezero_size and -no_pie deprecation #55112

@cherrymui

Description

@cherrymui

Split off from #54482, which contains multiple issues, to make it clearer for backporting.

The new darwin linker emits warnings about deprecation of the -pagezero_size and -no_pie flags. The build still succeeds, but the warning confuses users and affects tests that checks for output.

CL https://golang.org/cl/430936 removes the -pagezero_size flag.
CL https://golang.org/cl/430937 suppresses the warning of -no_pie.

In Go 1.20 we will switch to building PIE by default, without using -no_pie. But that is a bit too much for backporting. So for backporting I think we suppress the warning instead. It is unlikely that during the lifetime of Go 1.18 and 1.19 -no_pie will cause actual failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.OS-Darwincompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions