From d311076075b7e783accdc615ab66f26ec7bfcd0b Mon Sep 17 00:00:00 2001 From: Loic Gelle Date: Thu, 22 Jun 2017 14:08:09 -0700 Subject: [PATCH] fix call to objcopy --- compiler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler.go b/compiler.go index 3045869..2d94627 100644 --- a/compiler.go +++ b/compiler.go @@ -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} } else { 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