object_file.hh (8852:c744483edfcf) | object_file.hh (9261:f795ce1feb5b) |
---|---|
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; --- 113 unchanged lines hidden (view full) --- 122 Addr textBase() const { return text.baseAddr; } 123 Addr dataBase() const { return data.baseAddr; } 124 Addr bssBase() const { return bss.baseAddr; } 125 126 size_t textSize() const { return text.size; } 127 size_t dataSize() const { return data.size; } 128 size_t bssSize() const { return bss.size; } 129 | 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; --- 113 unchanged lines hidden (view full) --- 122 Addr textBase() const { return text.baseAddr; } 123 Addr dataBase() const { return data.baseAddr; } 124 Addr bssBase() const { return bss.baseAddr; } 125 126 size_t textSize() const { return text.size; } 127 size_t dataSize() const { return data.size; } 128 size_t bssSize() const { return bss.size; } 129 |
130 /* This function allows you to override the base address where 131 * a binary is going to be loaded or set it if the binary is just a 132 * blob that doesn't include an object header. 133 * @param a address to load the binary/text section at 134 */ |
|
130 void setTextBase(Addr a) { text.baseAddr = a; } 131}; 132 133ObjectFile *createObjectFile(const std::string &fname, bool raw = false); 134 135 136#endif // __OBJECT_FILE_HH__ | 135 void setTextBase(Addr a) { text.baseAddr = a; } 136}; 137 138ObjectFile *createObjectFile(const std::string &fname, bool raw = false); 139 140 141#endif // __OBJECT_FILE_HH__ |