Load library using file handle.

* This patch enables dlopen by file descriptor
   instead of path/name.

Bug: 15984217
Change-Id: Ib39051e00567fb97070bf96d8ce63993877c0a01
This commit is contained in:
Dmitriy Ivanov
2014-07-01 14:10:16 -07:00
parent 4d299a2cf7
commit 04dc91ae76
7 changed files with 122 additions and 9 deletions

View File

@@ -127,9 +127,6 @@ ElfReader::ElfReader(const char* name, int fd)
}
ElfReader::~ElfReader() {
if (fd_ != -1) {
close(fd_);
}
if (phdr_mmap_ != NULL) {
munmap(phdr_mmap_, phdr_size_);
}