internal/crosscompile:ld -S to ensure emit-reloc correct
This commit is contained in:
@@ -834,7 +834,6 @@ func linkObjFiles(ctx *context, app string, objFiles, linkArgs []string, verbose
|
||||
}
|
||||
|
||||
buildArgs := []string{"-o", app}
|
||||
buildArgs = append(buildArgs, "-s")
|
||||
buildArgs = append(buildArgs, linkArgs...)
|
||||
|
||||
// Add build mode specific linker arguments
|
||||
|
||||
@@ -481,7 +481,7 @@ func UseTarget(targetName string) (export Export, err error) {
|
||||
envs := buildEnvMap(env.LLGoROOT())
|
||||
|
||||
// Convert LLVMTarget, CPU, Features to CCFLAGS/LDFLAGS
|
||||
var ldflags []string
|
||||
ldflags := []string{"-S"}
|
||||
ccflags := []string{"-Oz"}
|
||||
cflags := []string{"-Wno-override-module", "-Qunused-arguments", "-Wno-unused-command-line-argument"}
|
||||
if config.LLVMTarget != "" {
|
||||
|
||||
Reference in New Issue
Block a user