process.cc (5034:6186ef720dd4) process.cc (5070:3d6a1e37b944)
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 "
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 "
456 "executables are supported!\n Please recompile your "
457 "executable as a static binary and try again.\n");
458
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
459#if THE_ISA == ALPHA_ISA
460 if (objFile->getArch() != ObjectFile::Alpha)
461 fatal("Object file architecture does not match compiled ISA (Alpha).");
462 switch (objFile->getOpSys()) {
463 case ObjectFile::Tru64:
464 process = new AlphaTru64Process(nm, objFile, system,
465 stdin_fd, stdout_fd, stderr_fd,
466 argv, envp, cwd,

--- 110 unchanged lines hidden ---
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 ---