Lines Matching refs:linker
33 #include <bcc/Linker.h>
103 OptDyld("dynamic-linker",
104 llvm::cl::desc("Set the name of the dynamic linker."),
213 bool ConfigLinker(Linker &pLinker, const std::string &pOutputFilename) {
222 llvm::errs() << "Out of memory when create the linker configuration!\n";
240 // 3. If given, set up dynamic linker path.
276 Linker::ErrorCode result = pLinker.config(*config);
277 if (Linker::kSuccess != result) {
278 llvm::errs() << "Failed to configure the linker! (detail: "
279 << Linker::GetErrorString(result) << ")\n";
287 bool PrepareInputOutput(Linker &pLinker, const std::string &pOutputPath) {
292 Linker::ErrorCode result = pLinker.setOutput(pOutputPath);
294 if (Linker::kSuccess != result) {
297 << Linker::GetErrorString(result) << ")\n";
326 if (Linker::kSuccess != result) {
328 << ": " << Linker::GetErrorString(result) << ")\n";
334 if (Linker::kSuccess != result) {
336 << ": " << Linker::GetErrorString(result) << ")\n";
348 static inline bool LinkFiles(Linker &pLinker) {
349 Linker::ErrorCode result = pLinker.link();
350 if (Linker::kSuccess != result) {
352 << Linker::GetErrorString(result) << "\n";
368 Linker linker;
369 if (!ConfigLinker(linker, OutputFilename)) {
373 if (!PrepareInputOutput(linker, OutputFilename)) {
377 if (!LinkFiles(linker)) {