diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-12-27 13:31:19 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-12-27 13:34:28 -0800 |
commit | ca294aa9eb1741ad0f7ee1a131d1758a7841734c (patch) | |
tree | bad808d423490130e8f38d3d55025e5c1fa21996 /bfd | |
parent | 6e5407669dcc9a79ab5962f97b467460c2da4f9a (diff) | |
download | gdb-ca294aa9eb1741ad0f7ee1a131d1758a7841734c.zip gdb-ca294aa9eb1741ad0f7ee1a131d1758a7841734c.tar.gz gdb-ca294aa9eb1741ad0f7ee1a131d1758a7841734c.tar.bz2 |
elf: Update comments for check_relocs in elf_backend_data
Since
commit 5c3261b0e834647cf9eb555320e20871b7854f98
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Oct 16 03:49:54 2017 -0700
ELF: Call check_relocs after opening all inputs
check_relocs is called after opening all inputs.
* elf-bfd.h (elf_backend_data::check_relocs): Update comments.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/elf-bfd.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 68e830c..be2eb38 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1088,13 +1088,11 @@ struct elf_backend_data that CHECK_RELOCS will properly process them. PR 4424. */ bool (*relocs_compatible) (const bfd_target *, const bfd_target *); - /* The CHECK_RELOCS function is called by the add_symbols phase of - the ELF backend linker. It is called once for each section with - relocs of an object file, just after the symbols for the object - file have been added to the global linker hash table. The - function must look through the relocs and do any special handling - required. This generally means allocating space in the global - offset table, and perhaps allocating space for a reloc. The + /* The CHECK_RELOCS function is called after all input files have been + opened. It is called once for each section with relocs of an object + file. The function must look through the relocs and do any special + handling required. This generally means allocating space in the + global offset table, and perhaps allocating space for a reloc. The relocs are always passed as Rela structures; if the section actually uses Rel structures, the r_addend field will always be zero. */ |