Lines Matching refs:linker
26 #include <alone/Linker.h>
96 OptDyld("dynamic-linker",
97 llvm::cl::desc("Set the name of the dynamic linker."),
206 bool ConfigLinker(Linker &pLinker, const std::string &pOutputFilename) {
215 llvm::errs() << "Out of memory when create the linker configuration!\n";
233 // 3. If given, set up dynamic linker path.
265 Linker::ErrorCode result = pLinker.config(*config);
266 if (Linker::kSuccess != result) {
267 llvm::errs() << "Failed to configure the linker! (detail: "
268 << Linker::GetErrorString(result) << ")\n";
276 bool PrepareInputOutput(Linker &pLinker, const std::string &pOutputPath) {
281 Linker::ErrorCode result = pLinker.setOutput(pOutputPath);
283 if (Linker::kSuccess != result) {
286 << Linker::GetErrorString(result) << ")\n";
315 if (Linker::kSuccess != result) {
317 << ": " << Linker::GetErrorString(result) << ")\n";
323 if (Linker::kSuccess != result) {
325 << ": " << Linker::GetErrorString(result) << ")\n";
337 static inline bool LinkFiles(Linker &pLinker) {
338 Linker::ErrorCode result = pLinker.link();
339 if (Linker::kSuccess != result) {
341 << Linker::GetErrorString(result) << "\n";
357 Linker linker;
358 if (!ConfigLinker(linker, OutputFilename)) {
362 if (!PrepareInputOutput(linker, OutputFilename)) {
366 if (!LinkFiles(linker)) {