raw_object.hh (3812:eaa215123a26) raw_object.hh (10880:61a56f76222b)
1/*
2 * Copyright (c) 2006 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;

--- 22 unchanged lines hidden (view full) ---

31#ifndef __BASE_LOADER_RAW_OBJECT_HH__
32#define __BASE_LOADER_RAW_OBJECT_HH__
33
34#include "base/loader/object_file.hh"
35
36class RawObject: public ObjectFile
37{
38 protected:
1/*
2 * Copyright (c) 2006 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;

--- 22 unchanged lines hidden (view full) ---

31#ifndef __BASE_LOADER_RAW_OBJECT_HH__
32#define __BASE_LOADER_RAW_OBJECT_HH__
33
34#include "base/loader/object_file.hh"
35
36class RawObject: public ObjectFile
37{
38 protected:
39 RawObject(const std::string &_filename, int _fd, size_t _len,
39 RawObject(const std::string &_filename, size_t _len,
40 uint8_t *_data, Arch _arch, OpSys _opSys);
41 public:
42 virtual ~RawObject() {}
43
44 virtual bool loadGlobalSymbols(SymbolTable *symtab, Addr addrMask =
45 std::numeric_limits<Addr>::max());
46 virtual bool loadLocalSymbols(SymbolTable *symtab, Addr addrMask =
47 std::numeric_limits<Addr>::max());
48
40 uint8_t *_data, Arch _arch, OpSys _opSys);
41 public:
42 virtual ~RawObject() {}
43
44 virtual bool loadGlobalSymbols(SymbolTable *symtab, Addr addrMask =
45 std::numeric_limits<Addr>::max());
46 virtual bool loadLocalSymbols(SymbolTable *symtab, Addr addrMask =
47 std::numeric_limits<Addr>::max());
48
49 static ObjectFile *tryFile(const std::string &fname, int fd, size_t len,
49 static ObjectFile *tryFile(const std::string &fname, size_t len,
50 uint8_t *data);
51};
52
53
54
55#endif // __BASE_LOADER_RAW_OBJECT_HH__
50 uint8_t *data);
51};
52
53
54
55#endif // __BASE_LOADER_RAW_OBJECT_HH__