Lines Matching defs:section

90     N_("Apply relocations to section contents in ET_REL files"), 0 },
281 _("cannot copy section header: %s"));
284 ELF_CHECK (data != NULL, _("cannot get section data: %s"));
286 ELF_CHECK (newdata != NULL, _("cannot copy section data: %s"));
314 /* The binutils linker leaves gratuitous section symbols in .symtab
316 symbol for every section, even unallocated ones, in .dynsym.
320 version of the section header, so it can appear larger. */
335 /* See if this symbol table has a leading section symbol for every single
336 section, in order. The binutils linker produces this. While we're here,
337 update each section symbol's st_value. */
354 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
376 _("cannot update section header: %s"));
379 /* We expanded the output section, so update its header. */
385 ELF_CHECK (newshdr != NULL, _("cannot get section header: %s"));
434 ELF_CHECK (newshdr != NULL, _("cannot get section header: %s"));
525 _("unexpected section type in [%Zu] with sh_link to symtab"),
542 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
548 /* The original file probably had section symbols for all of its
550 possible, add in section symbols for the added sections. */
559 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
574 /* Copy the existing section symbols. */
590 /* Add in the new section symbols. */
595 ELF_CHECK (i_shdr != NULL, _("cannot get section header: %s"));
649 struct section
659 compare_alloc_sections (const struct section *s1, const struct section *s2,
671 /* At the same address, preserve original section order. */
692 const struct section *s1 = a;
693 const struct section *s2 = b;
756 struct section *split_bss)
790 /* Update the value to match the output section. */
794 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
845 /* binutils always puts section symbols first. */
853 /* binutils always puts section symbols in section index order. */
872 sections_match (const struct section *sections, size_t i,
882 /* Locate a matching allocated section in SECTIONS. */
883 static struct section *
885 struct section sections[], size_t nalloc)
916 error (EXIT_FAILURE, 0, _("cannot read section [%Zu] name: %s"),
922 and the debuginfo file's section headers no longer match up.
924 If there was a .bss section that was split into two sections
926 static struct section *
930 struct section *sections,
940 const struct section *sec = &sections[i];
951 struct section *undo_sections = NULL;
957 _("cannot read '.gnu.prelink_undo' section: %s"));
976 _("cannot read '.gnu.prelink_undo' section: %s"));
997 error (EXIT_FAILURE, 0, _("invalid contents in '%s' section"),
1009 _("cannot read '.gnu.prelink_undo' section: %s"));
1014 struct section *sec = &undo_sections[undo_nalloc];
1052 error (0, 0, _("cannot find matching section for [%Zu] '%s'"),
1062 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
1072 struct section *sec = find_alloc_section (shdr, 0, name,
1096 struct section *split_bss = NULL;
1099 const struct section *undo_sec = &undo_sections[i];
1106 struct section *sec = &sections[j];
1159 struct section *sections, size_t stripped_shnum,
1167 for (struct section *sec = sections;
1176 _("cannot add section name to string table: %s"));
1191 _("cannot add section name to string table: %s"));
1200 _("cannot update section header string table data: %s"));
1227 _("cannot get section header string table section index: %s"));
1231 _("cannot get section header string table section index: %s"));
1235 _("cannot get section count: %s"));
1239 _("cannot get section count: %s"));
1245 /* Cache the stripped file's section details. */
1246 struct section sections[stripped_shnum - 1];
1252 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
1256 error (EXIT_FAILURE, 0, _("cannot read section [%Zu] name: %s"),
1263 const struct section *stripped_symtab = NULL;
1277 /* Locate a matching unallocated section in SECTIONS. */
1278 inline struct section *find_unalloc_section (const GElf_Shdr *shdr,
1285 struct section *sec = &sections[i];
1301 _("cannot read section header string table: %s"));
1303 /* Match each debuginfo section with its corresponding stripped section. */
1312 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
1326 struct section *sec = NULL;
1331 /* Look for the section that matches. */
1357 /* Look for the section that matches. */
1361 /* An additional unallocated section is fine if not SHT_NOBITS.
1362 We looked it up anyway in case it's an unallocated section
1376 _("cannot find matching section for [%Zu] '%s'"),
1383 We keep track of a .bss section that was partly split into .dynbss
1385 struct section *split_bss = NULL;
1391 _("cannot read section header string table: %s"));
1398 /* Make sure each main file section has a place to go. */
1399 const struct section *stripped_dynsym = NULL;
1403 for (struct section *sec = sections;
1411 /* We didn't find any corresponding section for this. */
1433 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
1451 _("cannot add new section: %s"));
1457 _("cannot add section name to string table: %s"));
1460 /* Cache the mapping of original section indices to output sections. */
1470 /* Get the updated section count. */
1472 _("cannot get section count: %s"));
1479 for (const struct section *sec = sections;
1486 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
1511 ELF_CHECK (indata != NULL, _("cannot get section data: %s"));
1513 ELF_CHECK (outdata != NULL, _("cannot copy section data: %s"));
1534 /* We must adjust all the section indices in the symbol table. */
1553 _("symbol [%Zu] has invalid section index"), i);
1593 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
1624 /* Skip a section symbol for a removed section. */
1730 for (const struct section *sec = sections;
1782 ELF_CHECK (shdr != NULL, _("cannot get section header: %s"));
1787 this part of the file before we get to handling the section. */
1791 _("cannot read section data: %s"));
1807 /* Place the section headers immediately after
2071 _("cannot cache section addresses for module '%s': %s"),