3.12 Linker functions
The `BFD_JUMP_TABLE_LINK' macro is used for functions called by the
linker.
- `_sizeof_headers'
- Return the size of the header information required for a BFD. This is
used to implement the `SIZEOF_HEADERS' linker script function. It
is normally used to align the first section at an efficient position on
the page. This is called via `bfd_sizeof_headers'. The
corresponding field in the target vector is named
`_bfd_sizeof_headers'.
- `_bfd_get_relocated_section_contents'
- Read the contents of a section and apply the relocation information.
This handles both a final link and a relocatable link; in the latter
case, it adjust the relocation information as well. This is called via
`bfd_get_relocated_section_contents'. Most targets implement it by
calling `bfd_generic_get_relocated_section_contents'.
- `_bfd_relax_section'
- Try to use relaxation to shrink the size of a section. This is called
by the linker when the `-relax' option is used. This is called via
`bfd_relax_section'. Most targets do not support any sort of
relaxation.
- `_bfd_link_hash_table_create'
- Create the symbol hash table to use for the linker. This linker hook
permits the backend to control the size and information of the elements
in the linker symbol hash table. This is called via
`bfd_link_hash_table_create'.
- `_bfd_link_add_symbols'
- Given an object file or an archive, add all symbols into the linker
symbol hash table. Use callbacks to the linker to include archive
elements in the link. This is called via `bfd_link_add_symbols'.
- `_bfd_final_link'
- Finish the linking process. The linker calls this hook after all of the
input files have been read, when it is ready to finish the link and
generate the output file. This is called via `bfd_final_link'.
- `_bfd_link_split_section'
- I don't know what this is for. Nothing seems to call it. The only
non-trivial definition is in `som.c'.
This document was generated
by system on December, 2 2004
using texi2html