Home | History | Annotate | Download | only in elfcopy

Lines Matching full:info

38                                                          shdr_info_t *info, int info_len,
43 shdr_info_t *info,
157 INFO("Note: we aren't dropping or rearranging any sections.\n");
170 INFO("Creating new section-strings section...\n");
176 INFO("\tNew index will be %d (was %d).\n", highest_scn_num, shstrndx);
209 INFO("\tNew size will be %d.\n", (*shstrtab_data)->d_size);
231 INFO("Updating section information...\n");
246 INFO("\t%03d: Updating section %s (index %d, address %lld offset %lld, size %lld, alignment %d)...\n",
262 INFO("\t\tname offset %d (was %d).\n",
271 INFO("\t\tsh_link %d (was %d).\n",
281 INFO("\t\tsh_info %d (was %d).\n",
340 INFO("\t\tupdating a symbol table.\n");
387 INFO("\t\tsymbol table has %ld symbols.\n", num_symbols);
458 INFO("\t\t\tkeeping %s symbol %d (new index %d), name [%s]\n",
513 INFO("\t\t\tkeeping symbol %d (new index %d), name (index %d) [%s]\n",
538 INFO("\t\t\tignoring %s symbol [%s]"
552 INFO("\t\t\tremoving symbol [%s]\n", symname);
569 INFO("\t\t\tMARKING ONE PAST LAST LOCAL INDEX %d\n",
583 INFO("\t\t%d undefined or special symbols were kept.\n",
585 INFO("\t\t%d global or weak symbols were kept.\n",
587 INFO("\t\t%d symbols were thrown away.\n",
592 INFO("\t\t\tthe symbol table has changed.\n");
593 INFO("\t\t\tdestidx = %d, inner = %d.\n", destidx, inner);
594 INFO("\t\t\tnew size %d (was %lld).\n",
601 INFO("\t\t\tthe symbol table did not change.\n");
636 INFO("\t\tbuilding strings for the dynamic section.\n");
655 INFO("\t\tThe dynamic-symbol table is not changing, so no "
670 INFO("\t\tupdating section header (size %lld)\n",
677 else INFO("\t%03d: not updating section %s, it will be discarded.\n",
764 INFO("Updating [%s] (symbol-strings-section data for [%s]).\n",
771 INFO("\tbefore update:\n"
778 INFO("\tafter update:\n"
789 INFO("%d nonprintable\n",
825 INFO("Symbol [%s]'s name (index %d, old value %llx) changes offset: %d -> %d\n",
838 /* update the symbol info; */
861 INFO("Analyzing gaps in ranges before compacting sections...\n");
891 INFO("[%016lld, %016lld] %n[%s]%n",
900 while (col_after++ - col_before < 20) INFO(" ");
901 INFO(" [GAP: %lld bytes with %s]\n",
905 else INFO("\n");
913 INFO("Calculating new section offsets...\n");
934 INFO("[%016lld, %016lld] %n[%s]%n",
943 while (col_after++ - col_before < 20) INFO(" ");
944 INFO(" [GAP: %lld bytes with %s]\n",
948 else INFO("\n");
992 INFO("Updating symbol values...\n");
1004 INFO("Updating DWARF records...\n");
1010 INFO("DWARF: %-15s: total %8d failed %8d.\n", elf_name, num_total_dwarf_patches, num_failed_dwarf_patches);
1017 INFO("Adjusting program-header table...\n");
1021 INFO("\t%2.2zu\t", pi);
1022 INFO("PT_ header type: %d", phdr_info[pi].p_type);
1024 INFO(" PT_NULL (skip)\n");
1027 INFO(" PT_PHDR\n");
1036 INFO("WARNING: PT_PHDR file and memory sizes are incorrect (%ld instead of %ld). Correcting.\n",
1057 INFO("PT_ header type: %d does not contain any sections.\n",
1068 INFO("\t\tapplying alignment of 0x%llx to new offset %lld\n",
1076 INFO("\t\tnew offset %lld (was %lld)\n",
1082 INFO("\t\tnew vaddr 0x%llx (was 0x%llx)\n",
1087 INFO("\t\tnew paddr 0x%llx (was 0x%llx)\n",
1092 INFO("\t\tnew mem size %lld (was %lld)\n",
1098 INFO("\t\tnew file size %lld (was %lld)\n",
1120 else INFO("There is no dynamic section in this file.\n");
1146 INFO("PRELINKER HACK: Temporarily restoring index of to-be-removed section [%s] to %d.\n",
1159 INFO("PRELINKER HACK: Done with hack, marking section [%s] for removal again.\n",
1174 INFO("Updating ELF header.\n");
1191 INFO("\tsetting section-header-table offset to %lld\n",
1207 INFO("Index of shstrtab is now %d (was %d).\n",
1256 INFO("hash table: buckets: %d (no change).\n", bucket[0]);
1257 INFO("hash table: chains: %d (was %d).\n",
1269 INFO("hash table: size %lld (was %d) bytes.\n",
1315 shdr_info_t *info,
1348 INFO("Scanning %d relocation entries in section [%s] (taken from %s section header (old %d, new %d))...\n",
1370 INFO("Discarding REL entry for symbol [%d], section [%d]\n",
1392 INFO("Discarding RELA entry for symbol [%d], section [%d]\n",
1401 INFO("Shrinking relocation section from %lld to %lld bytes (%d -> %d "
1410 } else INFO("Relocation section [%s]'s size (relocates: %s(%d), "
1413 info[relsect_info->shdr.sh_info].name,
1415 info[relsect_info->shdr.sh_link].name,
1425 shdr_info_t *info,
1471 INFO("Scanning %d relocation entries in section [%s] (taken from %s section header (old %d, new %d))...\n",
1482 FAILIF(info[relsect_info->old_shdr.sh_info].idx == 0,
1486 info[relsect_info->old_shdr.sh_info].name,
1511 sym = gelf_getsymshndx(info[relsect_info->shdr.sh_link].data,
1516 /* info[relsect_info->shdr.sh_link].shdr.sh_link is the index
1520 info[relsect_info->shdr.sh_link].shdr.sh_link,
1525 INFO("ABOUT TO FAIL for symbol [%s]: old section ranges:\n", symname);
1532 INFO("\t[%8lld, %8lld] (%8lld bytes) [%8lld, %8lld] (%8lld bytes) [%-15s]\n",
1541 INFO("\n");
1565 info[relsect_info->old_shdr.sh_info].name,
1578 /* Print out some info about the relocation entry we are
1589 sym = gelf_getsymshndx (elf_getdata(info[symtab].newscn, NULL),
1594 INFO("\t%02d (%-15s) off 0x%llx -> 0x%llx (%lld) (relocates [%s:(%d)%s])\n",
1607 ((char *)info[info[symtab].old_shdr.sh_link].
1611 info[symtab].shdr.sh_link,
1650 Elf_Data *create_section_data(shdr_info_t *info, Elf_Scn *scn)
1654 if (info->data == NULL) {
1655 info->data = elf_getdata (info->scn, NULL);
1656 FAILIF_LIBELF(NULL == info->data, elf_getdata);
1657 INFO("\t\tcopying data from original section (%d bytes).\n",
1658 info->data->d_size);
1664 *newdata = *info->data;
1666 if (info->data->d_buf != NULL) {
1668 memcpy(newdata->d_buf, info->data->d_buf, newdata->d_size);
1672 INFO("\t\tassigning new data to section (%d bytes).\n",
1673 info->data->d_size);
1674 newdata = info->data;
1677 info->newdata = newdata;
1682 static void print_shdr_array(shdr_info_t *info, int num_entries) {
1687 INFO("%03d:"
1690 i, info[i].name, info[i].idx);
1703 INFO("%#0*llx",
1709 INFO(" (updating to 0x%08llx per section %d (shdr_info[] index %d): [%s])",
1721 INFO
1729 if (newline) INFO("\n");
1754 INFO(" (affects tag %s)",
1772 INFO("\n (!)\t%-17s completing deferred update (%lld -> %lld bytes)"
1793 INFO("\n");
1840 INFO("\t\t\t%-17s: ",
1844 INFO("[%s] (offset %ld)\n", str, dyn->d_un.d_val);
1875 INFO("\t\tbuilding string offsets for dynamic section [%s], index %d\n",
1889 INFO("\t\tprinting string offsets for dynamic section [%s], index %d\n",
1909 INFO("Updating dynamic section [%s], index %d\n",
1925 INFO("\t%-17s ",
1990 INFO("(!) (deferring update: new value not known yet)\n");
1995 INFO("%lld (bytes) (updating to %lld bytes "
2016 INFO("\n");
2028 INFO("string [%s] offset changes: %lld -> %lld\n",
2039 INFO("string [%s] offset has not changed from %lld, not updating\n",
2058 INFO("%lld (bytes)\n", dyn->d_un.d_val);
2065 INFO("%lld\n", dyn->d_un.d_val);
2069 INFO("%s (%d)\n", ebl_dynamic_tag_name (oldebl, dyn->d_un.d_val, NULL, 0), dyn->d_un.d_val);
2073 INFO("%#0*llx\n",
2139 INFO("\n\t\t");
2149 INFO("%-17s", shdr_info[inner].name);
2153 INFO("(mem_end 0x%llx --> 0x%llx) ", *mem_end, SECT_MEM_END(shdr_info[inner].shdr));
2160 INFO("(file_end 0x%llx --> 0x%llx) ", *file_end, SECT_FILE_END(shdr_info[inner].shdr));
2169 INFO("\n\t\t");
2172 INFO("(!) %-17s does not belong\n\t\t", shdr_info[inner].name);
2175 INFO("(!) %-17s is not considered, it is being removed\n\t\t", shdr_info[inner].name);
2179 INFO("start: %lld\n", start);
2180 INFO("\t\tends: %lld file, %lld mem\n", *file_end, *mem_end);
2212 INFO("\tupdating symbol values for section [%s]...\n",
2221 INFO("%d nonprintable\n",
2226 INFO("\tnumber of symbols to update: %d (%d bytes)\n",
2241 PRINT("%8d: name %d info %02x other %02x shndx %d size %lld value %lld\n",
2275 INFO("%-8d [", inner);
2278 INFO("%c", symname[c]);
2283 while (c++ < max) INFO(" ");
2285 else INFO("<");
2286 INFO("]");
2303 INFO(" undefined\n");
2310 INFO(" special (scn %d, value 0x%llx, size %lld)\n",
2418 INFO("STT_SECTION symbol [%s] refers to section [%s], "
2425 INFO(" %8d %-17s ",
2446 INFO("0x%llx -> 0x%llx (delta %lld)",
2451 INFO("(value is zero, not adjusting it)");
2474 INFO(" (updating sym->st_shndx = %lld --> %lld)\n",
2478 else INFO("(sym->st_shndx remains %lld)\n", sym->st_shndx);
2492 INFO(" (no change)\n");
2526 INFO("\t\t\t\tsection offset %lld -> %lld%s\n",
2546 INFO("\t\t\t\tsection address %lld -> %lld%s\n",
2555 INFO("\t\t\t\tupdating section header (size %lld)\n",
2627 INFO("\t\t\t\tupdated lastoffset to %lld\n", offset);
2659 INFO("\t\t\t%03d:\tAdjusting offset of section %s "
2672 INFO("\t\t\t%03d: NOT adjusting offset of section %s (index %d)"
2683 INFO("\t\t\t%03d: NOT adjusting offset of section %s (index %d)"
2770 INFO("Updating section addresses and offsets...\n");
2788 INFO("Section offsets will start from %lld.\n", lastoffset);
2805 INFO("\tAdjusting sections [%d - %d) as a group (start offset %lld, alignment %lld)\n",