fix call to objcopy

This commit is contained in:
Loic Gelle 2017-06-22 14:08:09 -07:00
parent ccc998151f
commit d311076075

View File

@ -104,7 +104,7 @@ func attachBitcodePathToObject(bcFile, objFile string) {
attachCmdArgs = []string{"-r", "-keep_private_externs", objFile, "-sectcreate", DARWIN_SEGMENT_NAME, DARWIN_SECTION_NAME, tmpFile.Name(), "-o", objFile} attachCmdArgs = []string{"-r", "-keep_private_externs", objFile, "-sectcreate", DARWIN_SEGMENT_NAME, DARWIN_SECTION_NAME, tmpFile.Name(), "-o", objFile}
} else { } else {
attachCmd = "objcopy" attachCmd = "objcopy"
attachCmdArgs = []string{"objcopy", "--add-section", ELF_SECTION_NAME+"="+tmpFile.Name(), objFile} attachCmdArgs = []string{"--add-section", ELF_SECTION_NAME+"="+tmpFile.Name(), objFile}
} }
// Run the attach command and ignore errors // Run the attach command and ignore errors