Deleted Added
sdiff udiff text old ( 2665:a124942bacb8 ) new ( 2976:371224501196 )
full compact
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;

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

148 opSys = ObjectFile::Solaris;
149 if (!strcmp(".stab.index", elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name)))
150 opSys = ObjectFile::Solaris;
151
152 section = elf_getscn(elf, ++secIdx);
153 } // while sections
154 }
155
156 elf_end(elf);
157 return new ElfObject(fname, fd, len, data, arch, opSys);
158 }
159}
160
161
162ElfObject::ElfObject(const string &_filename, int _fd,
163 size_t _len, uint8_t *_data,
164 Arch _arch, OpSys _opSys)
165 : ObjectFile(_filename, _fd, _len, _data, _arch, _opSys)

--- 147 unchanged lines hidden ---