Home | History | Annotate | Download | only in binutils

Lines Matching defs:section

119   struct section_list * next;	   /* Next section to change.  */
120 const char * pattern; /* Section name pattern. */
126 #define SECTION_CONTEXT_REMOVE (1 << 0) /* Remove this section. */
127 #define SECTION_CONTEXT_COPY (1 << 1) /* Copy this section, delete all non-copied section. */
129 #define SECTION_CONTEXT_ALTER_VMA (1 << 3) /* Increment or decrement the section's VMA address. */
131 #define SECTION_CONTEXT_ALTER_LMA (1 << 5) /* Increment or decrement the section's LMA address. */
132 #define SECTION_CONTEXT_SET_FLAGS (1 << 6) /* Set the section's flags. */
136 flagword flags; /* What to set the section flags to. */
152 /* Changes to section addresses. */
173 /* Next section to add. */
175 /* Name of section to add. */
177 /* Name of file holding section contents. */
183 /* BFD section, after it has been added. */
184 asection *section;
194 This should be the filename to store in the .gnu_debuglink section. */
246 of <reverse_bytes> bytes within each output section. */
249 /* For Coff objects, we may want to allow or disallow long section names,
258 /* The default long section handling mode is to preserve them.
346 {"remove-section", required_argument, 0, 'R'},
364 {"add-section", required_argument, 0, OPTION_ADD_SECTION},
367 {"adjust-section-vma", required_argument, 0, OPTION_CHANGE_SECTION_ADDRESS},
374 {"change-section-address", required_argument, 0, OPTION_CHANGE_SECTION_ADDRESS},
375 {"change-section-lma", required_argument, 0, OPTION_CHANGE_SECTION_LMA},
376 {"change-section-vma", required_argument, 0, OPTION_CHANGE_SECTION_VMA},
385 {"dump-section", required_argument, 0, OPTION_DUMP_SECTION},
408 {"long-section-names", required_argument, 0, OPTION_LONG_SECTION_NAMES},
412 {"only-section", required_argument, 0, 'j'},
425 {"remove-section", required_argument, 0, 'R'},
426 {"rename-section", required_argument, 0, OPTION_RENAME_SECTION},
428 {"set-section-flags", required_argument, 0, OPTION_SET_SECTION_FLAGS},
451 {"section-alignment", required_argument, 0, OPTION_SECTION_ALIGNMENT},
512 -j --only-section <name> Only copy section <name> into the output\n\
513 --add-gnu-debuglink=<file> Add section .gnu_debuglink linking to <file>\n\
514 -R --remove-section <name> Remove section <name> from the output\n\
525 --extract-symbol Remove section contents but keep symbols\n\
541 --pad-to <addr> Pad the last section up to address <addr>\n\
547 {--change-section-address|--adjust-section-vma} <name>{=|+|-}<val>\n\
548 Change LMA and VMA of section <name> by <val>\n\
549 --change-section-lma <name>{=|+|-}<val>\n\
550 Change the LMA of section <name> by <val>\n\
551 --change-section-vma <name>{=|+|-}<val>\n\
552 Change the VMA of section <name> by <val>\n\
554 Warn if a named section does not exist\n\
555 --set-section-flags <name>=<flags>\n\
556 Set section <name>'s properties to <flags>\n\
557 --add-section <name>=<file> Add section <name> found in <file> to output\n\
558 --dump-section <name>=<file> Dump the contents of section <name> into <file>\n\
559 --rename-section <old>=<new>[,<flags>] Rename section <old> to <new>\n\
560 --long-section-names {enable|disable|keep}\n\
561 Handle long section names in Coff objects.\n\
585 --prefix-sections <prefix> Add <prefix> to start of every section name\n\
588 section name\n\
593 --section-alignment <num> Set PE section alignment to <num>\n\
637 -R --remove-section=<name> Remove section <name> from the output\n\
662 /* Parse section flags into a flagword, with a fatal error if the
708 non_fatal (_("unrecognized section flag `%s'"), copy);
722 We need to be careful in how we match section names because of the support
726 --set-section-flags .debug_*=debug
727 --set-section-flags .debug_str=readonly,debug
728 --change-section-address .debug_*ranges=0x1000
731 .debug_str section will also receive the READONLY flag and the
735 When adding the section name patterns to the section list we need to make
740 When matching real section names to the section list we make use of the
742 section addresses then we match for .debug_ranges but not for .debug_info.
744 Finally, if ADD is false and we do find a match, we mark the section list
1038 /* Return TRUE if the section is a DWO section. */
1049 /* See if a non-group section is being removed. */
1065 fatal (_("error: section %s matches both remove and copy options"),
1082 /* By default we don't want to strip .reloc section.
1083 This section has for pe-coff special meaning. See
1102 /* See if a section is being removed. */
1118 strip the group section too. */
1129 /* Remove the group section if all members are removed. */
1153 /* Always keep the .buildid section for PE/COFF.
1155 Strictly, this should be written "always keep the section storing the debug
1156 directory", but that may be the .text section for objects produced by some
1284 library containing the $idata section may reference these
1752 non_fatal (_("warning: file alignment (0x%s) > section alignment (0x%s)"),
1810 _("can't add section '%s'"), padd->name);
1816 will create any special section type information,
1819 padd->section = bfd_make_section_with_flags
1821 if (padd->section == NULL)
1824 _("can't create section `%s'"),
1830 if (! bfd_set_section_size (obfd, padd->section, padd->size))
1832 bfd_nonfatal_message (NULL, obfd, padd->section, NULL);
1839 && ! bfd_set_section_vma (obfd, padd->section, pset->vma_val))
1841 bfd_nonfatal_message (NULL, obfd, padd->section, NULL);
1849 padd->section->lma = pset->lma_val;
1852 (obfd, padd->section,
1853 bfd_section_alignment (obfd, padd->section)))
1855 bfd_nonfatal_message (NULL, obfd, padd->section, NULL);
1874 _("can't dump section '%s' - it does not exist"),
1882 _("can't dump section - it has no contents"));
1890 _("can't dump section - it is empty"));
1899 _("could not open section dump file"));
1907 fatal (_("error writing section contents to %s (error: %s)"),
1913 _("could not retrieve section contents"));
1923 the debuglink section already exists, and
1927 non_fatal (_("%s: debuglink section already exists"),
1939 _("cannot create debug link section `%s'"),
1958 This means that the debuglink section must be given a non-zero
1960 walk the current section list, find the section with the
1961 highest VMA and start the debuglink section after that one. */
1996 the last section to a specified address. We do this by
1998 increasing the section sizes as required to fill the gaps.
2033 _("Can't fill gap after section"));
2106 section. */
2126 /* This has to happen before section positions are set. */
2138 if (! bfd_set_section_contents (obfd, padd->section, padd->contents,
2141 bfd_nonfatal_message (NULL, obfd, padd->section, NULL);
2153 _("cannot fill debug link section `%s'"),
2205 that needs to look at the section contents will fail. */
2222 the first section. */
2606 /* Add a name to the section renaming list. */
2623 fatal (_("Multiple renames of section %s"), old_name);
2636 /* Check the section rename list for a new name of the input section
2638 Also set RETURNED_FLAGS to the flags to be used for this section. */
2647 /* Default to using the flags of the input section. */
2663 finalization work for private section headers. Do that here. */
2669 from the input section to the output section. */
2682 /* Create a section in OBFD with the same
2703 /* Get the, possibly new, name of the output section. */
2738 /* Twiddle the input section flags so that it seems to
2739 elf.c:copy_private_bfd_data that section flags have not
2750 err = _("failed to create output section");
2822 that needs to look at the section contents will fail. */
2839 from the input section to the output section. */
2854 /* Return TRUE if input section ISECTION should be skipped. */
2887 /* Copy relocations in input section ISECTION of IBFD to an output
2888 section with the same name in OBFDARG. If stripping then don't
2970 /* Copy the data of input section ISECTION of IBFD
2971 to an output section with the same name in OBFD. */
3002 and we don't know what the user wants). The section length
3020 /* User must pad the section up in order to do this. */
3021 fatal (_("cannot reverse bytes: length of section %s must be evenly divisible by %d"),
3060 flag--they can just remove the section entirely and add it
3062 SEC_HAS_CONTENTS flag, and take it to mean that the section
3144 /* Ignore an input section with no corresponding output section. */
3166 special bfd section symbols, then mark it with BSF_KEEP. */
3213 _("can't create debugging section"));
3217 /* We can get away with setting the section contents now because
3226 _("can't set debugging section contents"));
3715 fatal (_("bad format for %s"), "--add-section");
3722 --add-section .note.GNU_stack=/dev/null
3767 fatal (_("bad format for %s"), "--dump-section");
3797 option = "--change-section-address";
3801 option = "--change-section-lma";
3805 option = "--change-section-vma";
3966 fatal (_("bad format for %s"), "--set-section-flags");
3989 fatal (_("bad format for %s"), "--rename-section");
3993 fatal (_("bad format for %s"), "--rename-section");
4013 section");
4064 fatal (_("unknown long section names option '%s'"), optarg);
4167 "--section-alignment");
4337 "--change-section-vma",
4351 "--change-section-lma",