Lines Matching refs:section

1 @section Sections
3 section abstraction. A single BFD may have any number of
7 Sections are supported in BFD in @code{section.c}.
13 * section prototypes::
18 When a BFD is opened for reading, the section structures are
21 Each section has a name which describes the section in the
30 constructor data, or an application may add a section (using
32 BFD. For example, the linker creates an extra section
37 the section descriptor is created. Some targets may leave the
53 section must be written. (If the section is being created from
54 scratch, @code{output_section} should probably point to the section
59 the output sections. The output section structure can be
60 considered a filter for the input section: the output section
62 input section determines the offset into the output section of
65 E.g., to create a section "O", starting at 0x100, 0x123 long,
71 section name "A"
74 output_section -----------> section name "O"
76 section name "B" | size 0x123
83 The data within a section is stored in a @dfn{link_order}.
85 abstraction allows a section to grow and shrink within itself.
100 @node typedef asection, section prototypes, Section Output, Sections
102 Here is the section structure:
109 /* The name of the section; the name isn't a copy, the pointer is
113 /* The next section in the list belonging to the BFD, or NULL. */
116 /* The previous section in the list belonging to the BFD, or NULL. */
122 /* A unique section number which can be used by assembler to
123 distinguish different sections with the same section name. */
126 /* Which section in the bfd; 0..n-1 as sections are created in a bfd. */
129 /* The field flags contains attributes of the section. Some
136 /* Tells the OS to allocate space for this section when loading.
137 This is clear for a section containing debug information only. */
140 /* Tells the OS to load the section from the file when loading.
141 This is clear for a .bss section. */
144 /* The section contains data still to be relocated, so there is
148 /* A signal to the OS that the section contains read only data. */
151 /* The section contains code only. */
154 /* The section contains data only. */
157 /* The section will reside in ROM. */
160 /* The section contains constructor information. This section
164 section for the type of name (e.g., @code{__CTOR_LIST__}), attaches
172 /* The section has contents - a data section could be
173 @code{SEC_ALLOC} | @code{SEC_HAS_CONTENTS}; a debug section could be
177 /* An instruction to the linker to not output the section
181 /* The section contains thread local data. */
184 /* The section's size is fixed. Generic linker code will not
189 /* The section contains common symbols (symbols may be defined
196 /* The section contains only debugging information. For
198 strip tests this flag to see if a section can be
202 /* The contents of this section are held in memory pointed to
207 /* The contents of this section are to be excluded by the
212 /* The contents of this section are to be sorted based on the sum of
215 appended to the end of the section in an unspecified order. */
219 discarded, rather than being combined into a single section as
247 /* This section was created by the linker as part of dynamic
253 /* This section contains a section ID to distinguish different
254 sections with the same section name. */
257 /* This section should not be subject to garbage collection.
258 Also set to inform the linker that this section should not be
262 /* This section contains "short" data, and should be placed
266 /* Attempt to merge identical entities in the section.
275 /* This section contains data about section groups. */
278 /* The section is a COFF shared library section. This flag is
279 only for the linker. If this type of section appears in
289 /* This input section should be copied to output in reverse order
294 /* This section contains data which may be shared with other
298 /* This section should be compressed. This is for ELF linker
302 /* When a section with this flag is being linked, then if the size of
303 the input section is less than a page, it should not cross a page
304 boundary. If the size of the input section is one page or more,
309 /* This section should be renamed. This is for ELF linker
313 /* Conditionally link this section; do not link if there are no
314 references found to any symbol in the section. This is for TI
318 /* This section contains vliw code. This is for Toshiba MeP only. */
321 /* All symbols, sizes and relocations in this section are octets
326 /* Indicate that section has the no read flag set. This happens
330 /* Indicate that section has the purecode flag set. */
333 /* End of section flags. */
344 output sections that have an input section. */
371 /* Nonzero if this section uses RELA relocations, rather than REL. */
386 /* The virtual memory address of the section - where it will be
394 /* The load address of the section - where it would be in a
395 rom image; really only used for writing section header
399 /* The size of the section in *octets*, as it will be output.
400 Contains a value even if the section has no contents (e.g., the
404 /* For input sections, the original size on disk of the section, in
405 octets. This field should be set for any section whose size is
407 the linker relaxation scheme doesn't cache altered section and
410 section multiple times. For output sections, rawsize holds the
411 section size calculated on a previous linker relaxation pass. */
414 /* The compressed size of the section in octets. */
417 /* If this section is going to be output, then this value is the
418 offset in *bytes* into the output section of the first byte in the
419 input section (byte ==> smallest addressable unit on the
421 100th octet (8-bit quantity) in the output section, this value
426 /* The output section through which to map on output. */
429 /* If an input section, a pointer to a vector of relocation
430 records for the data in this section. */
433 /* If an output section, a pointer to a vector of pointers to
434 relocation records for the data in this section. */
440 /* The alignment requirement of the section, as an exponent of 2 -
447 /* File position of section data. */
472 /* Points to the kept section if this section is a link-once section,
476 /* When a section is being output, this value changes as more
480 /* What the section number is in the target world. */
485 /* If this is a constructor section then here is a list of the
489 /* The BFD which owns the section. */
492 /* A symbol which points at this section only. */
497 a list of input sections attached to an output section. Later,
507 /* Points to the output section this section is already assigned to,
512 /* Explicitly specified section type, if non-zero. */
607 /* Pointer to the common section. */
609 /* Pointer to the undefined section. */
611 /* Pointer to the absolute section. */
613 /* Pointer to the indirect section. */
642 /* Return TRUE if input section SEC has been discarded. */
694 the_bfd, name, value, attr, section [, udata] */
705 @node section prototypes, , typedef asection, Sections
707 These are the functions exported by the section handling part of BFD.
716 Clears the section list, and also resets the section count and
726 Return the most recently created section attached to @var{abfd}
727 named @var{name}. Return NULL if no such section exists.
736 Given @var{sec} is a section returned by @code{bfd_get_section_by_name},
737 return the next most recently created section attached to the same
738 BFD with the same name, or if no such section exists in the same BFD and
739 IBFD is non-NULL, the next section with the same name in any input
740 BFD following IBFD. Return NULL on finding no section.
749 Return the linker created section attached to @var{abfd}
750 named @var{name}. Return NULL if no such section exists.
763 Call the provided function @var{func} for each section
772 It returns the first section for which @var{func} returns true,
783 Invent a section name that is unique in @var{abfd} by tacking
796 Create a new empty section called @var{name}
798 BFD @var{abfd}. An attempt to create a section with a name which
800 section chain.
824 Create a new empty section called @var{name} and attach it to the end of
825 the chain of sections for @var{abfd}. Create a new section even if there
826 is already a section with that name. Also set the attributes of the
827 new section to the value @var{flags}.
845 Create a new empty section called @var{name} and attach it to the end of
846 the chain of sections for @var{abfd}. Create a new section even if there
847 is already a section with that name.
867 bfd_set_error ()) without changing the section chain if there is already a
868 section named @var{name}. Also set the attributes of the new section to
880 bfd_set_error ()) without changing the section chain if there is already a
881 section named @var{name}. If there is an error, return @code{NULL} and set
891 Set the attributes of the section @var{sec} to the value @var{flags}.
899 The section cannot have one or more of the attributes
900 requested. For example, a .bss section in @code{a.out} may not
912 Rename section @var{sec} to @var{newname}.
924 Call the provided function @var{func} for each section
951 Call the provided function @var{operation} for each section
959 It returns the first section for which @var{operation} returns true.
984 (bfd *abfd, asection *section, const void *data,
988 Sets the contents of the section @var{section} in BFD
990 The data is written to the output section starting at offset
999 The output section does not have the @code{SEC_HAS_CONTENTS}
1003 The section is unable to contain all of the data.
1018 (bfd *abfd, asection *section, void *location, file_ptr offset,
1022 Read data from @var{section} in BFD @var{abfd}
1024 offset of @var{offset} from the start of the input section,
1028 flag set are requested or if the section does not have the
1038 (bfd *abfd, asection *section, bfd_byte **buf);
1041 Read all data from @var{section} in BFD @var{abfd}
1052 Copy private section information from @var{isec} in the BFD
1053 @var{ibfd} to the section @var{osec} in the BFD @var{obfd}.