Lines Matching refs:info
21 prelink_info_t *info)
27 *prelink_addr = info->mmap_addr;
31 *prelink_addr = switch_endianness(info->mmap_addr);
52 prelink_info_t info;
53 int num_read = read(fd, &info, nr);
55 "read(%d, &info, sizeof(prelink_info_t)): %s (%d)!\n",
57 FAILIF(num_read != sizeof(info),
58 "read(%d, &info, sizeof(prelink_info_t)): did not read %d bytes as "
60 fd, sizeof(info), num_read);
63 if (!strncmp(info.tag, "PRE ", 4)) {
64 set_prelink(prelink_addr, elf_little, &info);
78 prelink_info_t info;
86 INFO("Host and ELF file [%s] have same endianness.\n", fname);
87 info.mmap_addr = base;
91 INFO("Host and ELF file [%s] have different endianness.\n", fname);
92 info.mmap_addr = switch_endianness(base);
94 strncpy(info.tag, "PRE ", 4);
96 int num_written = write(fd, &info, sizeof(info));
98 "write(%d, &info, sizeof(info)): %s (%d)\n",
100 FAILIF(sizeof(info) != num_written,
102 sizeof(info), num_written);