1/* 2 * Copyright (c) 2003-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; --- 20 unchanged lines hidden (view full) --- 29 */ 30 31#include <string> 32 33#include "base/loader/aout_object.hh" 34#include "base/loader/exec_aout.h" 35#include "base/loader/symtab.hh" 36#include "base/trace.hh" |
37#include "debug/Loader.hh" |
38 39using namespace std; 40 41ObjectFile * 42AoutObject::tryFile(const string &fname, int fd, size_t len, uint8_t *data) 43{ 44 if (!N_BADMAG(*(aout_exechdr *)data)) { 45 // right now this is only used for Alpha PAL code --- 49 unchanged lines hidden --- |