ELF_C_READ
case ELF_C_READ:
assert(e->e_kind != ELF_K_AR || e->e_cmd == ELF_C_READ);
assert(parent->e_cmd == ELF_C_READ);
return (ELF_C_READ);
return (_libelf_open_object(fd, ELF_C_READ, 0));
if (c == ELF_C_WRITE && e->e_cmd == ELF_C_READ) {
if (e->e_cmd == ELF_C_READ) {
if (e->e_cmd == ELF_C_READ) {
if (e->e_cmd == ELF_C_READ) {
e->e_cmd = ELF_C_READ;
assert(c == ELF_C_READ || c == ELF_C_RDWR || c == ELF_C_WRITE);
if ((e = elf_begin(fd, ELF_C_READ, NULL)) == NULL) {
elf = elf_begin(fd, ELF_C_READ, NULL);
if ((e = elf_begin(kfd, xflag ? ELF_C_READ : ELF_C_RDWR, NULL)) == NULL)