mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 08:39:03 +01:00
fix call to objcopy
This commit is contained in:
parent
ccc998151f
commit
d311076075
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user