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:
@@ -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_);
|
||||
}
|
||||
|
Reference in New Issue
Block a user