elf_object.cc (10037:5cac77888310) elf_object.cc (10360:919c02740209)
1/*
2 * Copyright (c) 2011-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

234 return result;
235 }
236}
237
238
239ElfObject::ElfObject(const string &_filename, int _fd,
240 size_t _len, uint8_t *_data,
241 Arch _arch, OpSys _opSys)
1/*
2 * Copyright (c) 2011-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

234 return result;
235 }
236}
237
238
239ElfObject::ElfObject(const string &_filename, int _fd,
240 size_t _len, uint8_t *_data,
241 Arch _arch, OpSys _opSys)
242 : ObjectFile(_filename, _fd, _len, _data, _arch, _opSys)
242 : ObjectFile(_filename, _fd, _len, _data, _arch, _opSys),
243 _programHeaderTable(0), _programHeaderSize(0), _programHeaderCount(0)
243
244{
245 Elf *elf;
246 GElf_Ehdr ehdr;
247
248 // check that header matches library version
249 if (elf_version(EV_CURRENT) == EV_NONE)
250 panic("wrong elf version number!");

--- 250 unchanged lines hidden ---
244
245{
246 Elf *elf;
247 GElf_Ehdr ehdr;
248
249 // check that header matches library version
250 if (elf_version(EV_CURRENT) == EV_NONE)
251 panic("wrong elf version number!");

--- 250 unchanged lines hidden ---