object_file.cc (9186:635a7cdec721) | object_file.cc (9538:182d67b5b57a) |
---|---|
1/* 2 * Copyright (c) 2002-2004 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; --- 25 unchanged lines hidden (view full) --- 34#include <fcntl.h> 35#include <unistd.h> 36 37#include <cstdio> 38#include <list> 39#include <string> 40 41#include "base/loader/aout_object.hh" | 1/* 2 * Copyright (c) 2002-2004 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; --- 25 unchanged lines hidden (view full) --- 34#include <fcntl.h> 35#include <unistd.h> 36 37#include <cstdio> 38#include <list> 39#include <string> 40 41#include "base/loader/aout_object.hh" |
42#include "base/loader/dtb_object.hh" |
|
42#include "base/loader/ecoff_object.hh" 43#include "base/loader/elf_object.hh" 44#include "base/loader/object_file.hh" 45#include "base/loader/raw_object.hh" 46#include "base/loader/symtab.hh" 47#include "base/cprintf.hh" 48#include "mem/port_proxy.hh" 49 --- 85 unchanged lines hidden (view full) --- 135 if ((fileObj = AoutObject::tryFile(fname, fd, len, fileData)) != NULL) { 136 return fileObj; 137 } 138 139 if ((fileObj = ElfObject::tryFile(fname, fd, len, fileData)) != NULL) { 140 return fileObj; 141 } 142 | 43#include "base/loader/ecoff_object.hh" 44#include "base/loader/elf_object.hh" 45#include "base/loader/object_file.hh" 46#include "base/loader/raw_object.hh" 47#include "base/loader/symtab.hh" 48#include "base/cprintf.hh" 49#include "mem/port_proxy.hh" 50 --- 85 unchanged lines hidden (view full) --- 136 if ((fileObj = AoutObject::tryFile(fname, fd, len, fileData)) != NULL) { 137 return fileObj; 138 } 139 140 if ((fileObj = ElfObject::tryFile(fname, fd, len, fileData)) != NULL) { 141 return fileObj; 142 } 143 |
144 if ((fileObj = DtbObject::tryFile(fname, fd, len, fileData)) != NULL) { 145 return fileObj; 146 } 147 |
|
143 if (raw) 144 return RawObject::tryFile(fname, fd, len, fileData); 145 146 // don't know what it is 147 close(fd); 148 munmap((char*)fileData, len); 149 return NULL; 150} | 148 if (raw) 149 return RawObject::tryFile(fname, fd, len, fileData); 150 151 // don't know what it is 152 close(fd); 153 munmap((char*)fileData, len); 154 return NULL; 155} |