1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 439 unchanged lines hidden (view full) --- 448 449 ObjectFile *objFile = createObjectFile(executable); 450 if (objFile == NULL) { 451 fatal("Can't load object file %s", executable); 452 } 453 454 if (objFile->isDynamic()) 455 fatal("Object file is a dynamic executable however only static " |
456 "executables are supported!\n Please recompile your " |
457 "executable as a static binary and try again.\n"); 458 |
459 if (objFile->hasTLS()) 460 fatal("Object file has a TLS section and loading of TLS sections " 461 "are not currently supported!\n Please recompile your " 462 "executable with a non-TLS toolchain or add TLS support to " 463 "M5 and try again\n"); 464 |
465#if THE_ISA == ALPHA_ISA 466 if (objFile->getArch() != ObjectFile::Alpha) 467 fatal("Object file architecture does not match compiled ISA (Alpha)."); 468 switch (objFile->getOpSys()) { 469 case ObjectFile::Tru64: 470 process = new AlphaTru64Process(nm, objFile, system, 471 stdin_fd, stdout_fd, stderr_fd, 472 argv, envp, cwd, --- 110 unchanged lines hidden --- |