Coverage Report

Created: 2026-11-21 09:00

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/binutils-gdb/bfd/elf-bfd.h
Line
Count
Source
1
/* BFD back-end data structures for ELF files.
2
   Copyright (C) 1992-2026 Free Software Foundation, Inc.
3
   Written by Cygnus Support.
4
5
   This file is part of BFD, the Binary File Descriptor library.
6
7
   This program is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3 of the License, or
10
   (at your option) any later version.
11
12
   This program is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16
17
   You should have received a copy of the GNU General Public License
18
   along with this program; if not, write to the Free Software
19
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20
   MA 02110-1301, USA.  */
21
22
#ifndef _LIBELF_H_
23
#define _LIBELF_H_ 1
24
25
#include <stdlib.h>
26
27
#include "doubly-linked-list.h"
28
#include "elf/common.h"
29
#include "elf/external.h"
30
#include "elf/internal.h"
31
#include "elf-attrs.h"
32
#include "bfdlink.h"
33
34
#ifndef ENABLE_CHECKING
35
#define ENABLE_CHECKING 0
36
#endif
37
38
#include "hidden.h"
39
40
#ifdef __cplusplus
41
extern "C" {
42
#endif
43
44
/* The number of entries in a section is its size divided by the size
45
   of a single entry.  This is normally only applicable to reloc and
46
   symbol table sections.
47
   PR 9934: It is possible to have relocations that do not refer to
48
   symbols, thus it is also possible to have a relocation section in
49
   an object file, but no symbol table.  */
50
99.4k
#define NUM_SHDR_ENTRIES(shdr) ((shdr)->sh_entsize > 0 ? (shdr)->sh_size / (shdr)->sh_entsize : 0)
51
52
/* If size isn't specified as 64 or 32, NAME macro should fail.  */
53
#if !defined(NAME) && defined(ARCH_SIZE)
54
#if ARCH_SIZE == 64
55
18.5M
#define NAME(x, y) x ## 64 ## _ ## y
56
#endif
57
#if ARCH_SIZE == 32
58
58.3M
#define NAME(x, y) x ## 32 ## _ ## y
59
#endif
60
#endif
61
62
#ifndef NAME
63
#define NAME(x, y) x ## NOSIZE ## _ ## y
64
#endif
65
66
#define ElfNAME(X)  NAME(Elf,X)
67
#define elfNAME(X)  NAME(elf,X)
68
69
/* Information held for an ELF symbol.  The first field is the
70
   corresponding asymbol.  Every symbol is an ELF file is actually a
71
   pointer to this structure, although it is often handled as a
72
   pointer to an asymbol.  */
73
74
typedef struct
75
{
76
  /* The BFD symbol.  */
77
  asymbol symbol;
78
  /* ELF symbol information.  */
79
  Elf_Internal_Sym internal_elf_sym;
80
  /* Backend specific information.  */
81
  union
82
    {
83
      unsigned int hppa_arg_reloc;
84
      void *mips_extr;
85
      void *any;
86
    }
87
  tc_data;
88
89
  /* Version information.  This is from an Elf_Internal_Versym
90
     structure in a SHT_GNU_versym section.  It is zero if there is no
91
     version information.  */
92
  unsigned short version;
93
94
} elf_symbol_type;
95

96
struct elf_strtab_hash;
97
struct got_entry;
98
struct plt_entry;
99
100
union gotplt_union
101
  {
102
    bfd_signed_vma refcount;
103
    bfd_vma offset;
104
    struct got_entry *glist;
105
    struct plt_entry *plist;
106
  };
107
108
struct elf_link_virtual_table_entry
109
  {
110
    /* Virtual table entry use information.  This array is nominally of size
111
       size/sizeof(target_void_pointer), though we have to be able to assume
112
       and track a size while the symbol is still undefined.  It is indexed
113
       via offset/sizeof(target_void_pointer).  */
114
    size_t size;
115
    bool *used;
116
117
    /* Virtual table derivation info.  */
118
    struct elf_link_hash_entry *parent;
119
  };
120
121
/* ELF symbol version.  */
122
enum elf_symbol_version
123
  {
124
    unknown = 0,
125
    unversioned,
126
    versioned,
127
    versioned_hidden
128
  };
129
130
/* ELF linker hash table entries.  */
131
132
struct elf_link_hash_entry
133
{
134
  struct bfd_link_hash_entry root;
135
136
  /* Symbol index in output file.  This is initialized to -1.  It is
137
     set to -2 if the symbol is used by a reloc.  It is set to -3 if
138
     this symbol is defined in a discarded section.  */
139
  long indx;
140
141
  /* Symbol index as a dynamic symbol.  Initialized to -1, and remains
142
     -1 if this is not a dynamic symbol.  */
143
  /* ??? Note that this is consistently used as a synonym for tests
144
     against whether we can perform various simplifying transformations
145
     to the code.  (E.g. changing a pc-relative jump to a PLT entry
146
     into a pc-relative jump to the target function.)  That test, which
147
     is often relatively complex, and someplaces wrong or incomplete,
148
     should really be replaced by a predicate in elflink.c.
149
150
     End result: this field -1 does not indicate that the symbol is
151
     not in the dynamic symbol table, but rather that the symbol is
152
     not visible outside this DSO.  */
153
  long dynindx;
154
155
  /* If this symbol requires an entry in the global offset table, the
156
     processor specific backend uses this field to track usage and
157
     final offset.  Two schemes are supported:  The first assumes that
158
     a symbol may only have one GOT entry, and uses REFCOUNT until
159
     size_dynamic_sections, at which point the contents of the .got is
160
     fixed.  Afterward, if OFFSET is -1, then the symbol does not
161
     require a global offset table entry.  The second scheme allows
162
     multiple GOT entries per symbol, managed via a linked list
163
     pointed to by GLIST.  */
164
  union gotplt_union got;
165
166
  /* Same, but tracks a procedure linkage table entry.  */
167
  union gotplt_union plt;
168
169
  /* Symbol size.  NB: All fields starting from here are cleared by
170
    _bfd_elf_link_hash_newfunc.  */
171
  bfd_size_type size;
172
173
  /* Track dynamic relocs copied for this symbol.  */
174
  struct elf_dyn_relocs *dyn_relocs;
175
176
  /* Symbol type (STT_NOTYPE, STT_OBJECT, etc.).  */
177
  unsigned int type : 8;
178
179
  /* Symbol st_other value, symbol visibility.  */
180
  unsigned int other : 8;
181
182
  /* The symbol's st_target_internal value (see Elf_Internal_Sym).  */
183
  unsigned int target_internal : 8;
184
185
  /* Symbol is referenced by a non-shared object (other than the object
186
     in which it is defined).  */
187
  unsigned int ref_regular : 1;
188
  /* Symbol is defined by a non-shared object.  */
189
  unsigned int def_regular : 1;
190
  /* Symbol is referenced by a shared object.  */
191
  unsigned int ref_dynamic : 1;
192
  /* Symbol is defined by a shared object.  */
193
  unsigned int def_dynamic : 1;
194
  /* Symbol has a non-weak reference from a non-shared object (other than
195
     the object in which it is defined).  */
196
  unsigned int ref_regular_nonweak : 1;
197
  /* Symbol has a non-weak reference from a LTO IR object file.  */
198
  unsigned int ref_ir_nonweak : 1;
199
  /* Dynamic symbol has been adjustd.  */
200
  unsigned int dynamic_adjusted : 1;
201
  /* Symbol needs a copy reloc.  */
202
  unsigned int needs_copy : 1;
203
  /* Symbol needs a procedure linkage table entry.  */
204
  unsigned int needs_plt : 1;
205
  /* Symbol appears in a non-ELF input file.  */
206
  unsigned int non_elf : 1;
207
  /* Symbol version information.  */
208
  ENUM_BITFIELD (elf_symbol_version) versioned : 2;
209
  /* Symbol is a base symbol.  */
210
  unsigned int base_symbol : 1;
211
  /* Symbol was forced to local scope due to a version script file.  */
212
  unsigned int forced_local : 1;
213
  /* Symbol was forced to be dynamic due to a version script file.  */
214
  unsigned int dynamic : 1;
215
  /* Symbol was marked during garbage collection.  */
216
  unsigned int mark : 1;
217
  /* Symbol is referenced by a non-GOT/non-PLT relocation.  This is
218
     not currently set by all the backends.  */
219
  unsigned int non_got_ref : 1;
220
  /* Symbol has a definition in a shared object.
221
     FIXME: There is no real need for this field if def_dynamic is never
222
     cleared and all places that test def_dynamic also test def_regular.  */
223
  unsigned int dynamic_def : 1;
224
  /* Symbol has a non-weak reference from a shared object.  */
225
  unsigned int ref_dynamic_nonweak : 1;
226
  /* Symbol is referenced with a relocation where C/C++ pointer equality
227
     matters.  */
228
  unsigned int pointer_equality_needed : 1;
229
  /* Symbol is a unique global symbol.  */
230
  unsigned int unique_global : 1;
231
  /* Symbol is defined by a shared library with non-default visibility
232
     in a read/write section.  */
233
  unsigned int protected_def : 1;
234
  /* Symbol is __start_SECNAME or __stop_SECNAME to mark section
235
     SECNAME.  */
236
  unsigned int start_stop : 1;
237
  /* Symbol is or was a weak defined symbol from a dynamic object with
238
     a strong defined symbol alias.  U.ALIAS points to a list of aliases,
239
     the definition having is_weakalias clear.  */
240
  unsigned int is_weakalias : 1;
241
  /* Symbol has a relocation.  */
242
  unsigned int has_reloc : 1;
243
244
  /* String table index in .dynstr if this is a dynamic symbol.  */
245
  unsigned long dynstr_index;
246
247
  union
248
  {
249
    /* Points to a circular list of non-function symbol aliases.  */
250
    struct elf_link_hash_entry *alias;
251
252
    /* Hash value of the name computed using the ELF hash function.
253
       Used part way through size_dynamic_sections, after we've finished
254
       with aliases.  */
255
    unsigned long elf_hash_value;
256
  } u;
257
258
  /* Version information.  */
259
  union
260
  {
261
    /* This field is used for a symbol which is not defined in a
262
       regular object.  It points to the version information read in
263
       from the dynamic object.  */
264
    Elf_Internal_Verdef *verdef;
265
    /* This field is used for a symbol which is defined in a regular
266
       object.  It is set up in size_dynamic_sections.  It points to
267
       the version information we should write out for this symbol.  */
268
    struct bfd_elf_version_tree *vertree;
269
  } verinfo;
270
271
  union
272
  {
273
    /* For __start_SECNAME and __stop_SECNAME symbols, record the first
274
       input section whose section name is SECNAME.  */
275
    asection *start_stop_section;
276
277
    /* Vtable information. */
278
    struct elf_link_virtual_table_entry *vtable;
279
  } u2;
280
};
281
282
/* Return the strong definition for a weak symbol with aliases.  */
283
284
static inline struct elf_link_hash_entry *
285
weakdef (struct elf_link_hash_entry *h)
286
0
{
287
0
  while (h->is_weakalias)
288
0
    h = h->u.alias;
289
0
  return h;
290
0
}
Unexecuted instantiation: fuzz_nm.c:weakdef
Unexecuted instantiation: bfd.c:weakdef
Unexecuted instantiation: format.c:weakdef
Unexecuted instantiation: libbfd.c:weakdef
Unexecuted instantiation: opncls.c:weakdef
Unexecuted instantiation: elf64-x86-64.c:weakdef
Unexecuted instantiation: elfxx-x86.c:weakdef
Unexecuted instantiation: elf-ifunc.c:weakdef
Unexecuted instantiation: elf64.c:weakdef
Unexecuted instantiation: elf-sframe.c:weakdef
Unexecuted instantiation: elf.c:weakdef
Unexecuted instantiation: elflink.c:weakdef
Unexecuted instantiation: elf-strtab.c:weakdef
Unexecuted instantiation: elf-eh-frame.c:weakdef
Unexecuted instantiation: elf-properties.c:weakdef
Unexecuted instantiation: dwarf1.c:weakdef
Unexecuted instantiation: dwarf2.c:weakdef
Unexecuted instantiation: elf32-i386.c:weakdef
Unexecuted instantiation: elf32.c:weakdef
Unexecuted instantiation: cofflink.c:weakdef
Unexecuted instantiation: coffgen.c:weakdef
Unexecuted instantiation: elf64-gen.c:weakdef
Unexecuted instantiation: elf32-gen.c:weakdef
Unexecuted instantiation: elf32-aarch64.c:weakdef
Unexecuted instantiation: elf32-ia64.c:weakdef
Unexecuted instantiation: elf32-kvx.c:weakdef
Unexecuted instantiation: elf32-loongarch.c:weakdef
Unexecuted instantiation: elf32-mips.c:weakdef
Unexecuted instantiation: elf32-riscv.c:weakdef
Unexecuted instantiation: elf32-score.c:weakdef
Unexecuted instantiation: elf32-score7.c:weakdef
Unexecuted instantiation: elf64-aarch64.c:weakdef
Unexecuted instantiation: elf64-alpha.c:weakdef
Unexecuted instantiation: elf64-amdgcn.c:weakdef
Unexecuted instantiation: elf64-bpf.c:weakdef
Unexecuted instantiation: elf64-hppa.c:weakdef
Unexecuted instantiation: elf64-ia64-vms.c:weakdef
Unexecuted instantiation: elf64-ia64.c:weakdef
Unexecuted instantiation: elf64-kvx.c:weakdef
Unexecuted instantiation: elf64-loongarch.c:weakdef
Unexecuted instantiation: elf64-mips.c:weakdef
Unexecuted instantiation: elf64-mmix.c:weakdef
Unexecuted instantiation: elf64-nfp.c:weakdef
Unexecuted instantiation: elf64-ppc.c:weakdef
Unexecuted instantiation: elf64-riscv.c:weakdef
Unexecuted instantiation: elf64-s390.c:weakdef
Unexecuted instantiation: elf64-sparc.c:weakdef
Unexecuted instantiation: elf64-tilegx.c:weakdef
Unexecuted instantiation: elfn32-mips.c:weakdef
Unexecuted instantiation: elfxx-aarch64.c:weakdef
Unexecuted instantiation: elfxx-ia64.c:weakdef
Unexecuted instantiation: elfxx-kvx.c:weakdef
Unexecuted instantiation: elfxx-loongarch.c:weakdef
Unexecuted instantiation: elfxx-mips.c:weakdef
Unexecuted instantiation: elfxx-riscv.c:weakdef
Unexecuted instantiation: elf-attrs.c:weakdef
Unexecuted instantiation: elf-m10200.c:weakdef
Unexecuted instantiation: elf-m10300.c:weakdef
Unexecuted instantiation: elf-solaris2.c:weakdef
Unexecuted instantiation: elf-vxworks.c:weakdef
Unexecuted instantiation: elf32-am33lin.c:weakdef
Unexecuted instantiation: elf32-arc.c:weakdef
Unexecuted instantiation: elf32-arm.c:weakdef
Unexecuted instantiation: elf32-avr.c:weakdef
Unexecuted instantiation: elf32-bfin.c:weakdef
Unexecuted instantiation: elf32-cr16.c:weakdef
Unexecuted instantiation: elf32-cris.c:weakdef
Unexecuted instantiation: elf32-crx.c:weakdef
Unexecuted instantiation: elf32-csky.c:weakdef
Unexecuted instantiation: elf32-d10v.c:weakdef
Unexecuted instantiation: elf32-d30v.c:weakdef
Unexecuted instantiation: elf32-dlx.c:weakdef
Unexecuted instantiation: elf32-epiphany.c:weakdef
Unexecuted instantiation: elf32-fr30.c:weakdef
Unexecuted instantiation: elf32-frv.c:weakdef
Unexecuted instantiation: elf32-ft32.c:weakdef
Unexecuted instantiation: elf32-h8300.c:weakdef
Unexecuted instantiation: elf32-hppa.c:weakdef
Unexecuted instantiation: elf32-ip2k.c:weakdef
Unexecuted instantiation: elf32-iq2000.c:weakdef
Unexecuted instantiation: elf32-lm32.c:weakdef
Unexecuted instantiation: elf32-m32c.c:weakdef
Unexecuted instantiation: elf32-m32r.c:weakdef
Unexecuted instantiation: elf32-m68hc11.c:weakdef
Unexecuted instantiation: elf32-m68hc12.c:weakdef
Unexecuted instantiation: elf32-m68hc1x.c:weakdef
Unexecuted instantiation: elf32-m68k.c:weakdef
Unexecuted instantiation: elf32-mcore.c:weakdef
Unexecuted instantiation: elf32-mep.c:weakdef
Unexecuted instantiation: elf32-metag.c:weakdef
Unexecuted instantiation: elf32-microblaze.c:weakdef
Unexecuted instantiation: elf32-moxie.c:weakdef
Unexecuted instantiation: elf32-msp430.c:weakdef
Unexecuted instantiation: elf32-mt.c:weakdef
Unexecuted instantiation: elf32-nds32.c:weakdef
Unexecuted instantiation: elf32-or1k.c:weakdef
Unexecuted instantiation: elf32-pj.c:weakdef
Unexecuted instantiation: elf32-ppc.c:weakdef
Unexecuted instantiation: elf32-pru.c:weakdef
Unexecuted instantiation: elf32-rl78.c:weakdef
Unexecuted instantiation: elf32-rx.c:weakdef
Unexecuted instantiation: elf32-s12z.c:weakdef
Unexecuted instantiation: elf32-s390.c:weakdef
Unexecuted instantiation: elf32-sh.c:weakdef
Unexecuted instantiation: elf32-sparc.c:weakdef
Unexecuted instantiation: elf32-spu.c:weakdef
Unexecuted instantiation: elf32-tic6x.c:weakdef
Unexecuted instantiation: elf32-tilegx.c:weakdef
Unexecuted instantiation: elf32-tilepro.c:weakdef
Unexecuted instantiation: elf32-v850.c:weakdef
Unexecuted instantiation: elf32-vax.c:weakdef
Unexecuted instantiation: elf32-visium.c:weakdef
Unexecuted instantiation: elf32-wasm32.c:weakdef
Unexecuted instantiation: elf32-xgate.c:weakdef
Unexecuted instantiation: elf32-xstormy16.c:weakdef
Unexecuted instantiation: elf32-xtensa.c:weakdef
Unexecuted instantiation: elf32-z80.c:weakdef
Unexecuted instantiation: elfxx-sparc.c:weakdef
Unexecuted instantiation: elfxx-tilegx.c:weakdef
Unexecuted instantiation: cpu-nds32.c:weakdef
Unexecuted instantiation: compress.c:weakdef
Unexecuted instantiation: merge.c:weakdef
Unexecuted instantiation: fuzz_objdump.c:weakdef
Unexecuted instantiation: arc-dis.c:weakdef
Unexecuted instantiation: arm-dis.c:weakdef
Unexecuted instantiation: csky-dis.c:weakdef
Unexecuted instantiation: kvx-dis.c:weakdef
Unexecuted instantiation: m32c-dis.c:weakdef
Unexecuted instantiation: mep-dis.c:weakdef
Unexecuted instantiation: ppc-dis.c:weakdef
Unexecuted instantiation: pru-dis.c:weakdef
Unexecuted instantiation: rl78-dis.c:weakdef
Unexecuted instantiation: score-dis.c:weakdef
Unexecuted instantiation: score7-dis.c:weakdef
Unexecuted instantiation: tilepro-dis.c:weakdef
Unexecuted instantiation: wasm32-dis.c:weakdef
Unexecuted instantiation: aarch64-dis.c:weakdef
Unexecuted instantiation: bpf-dis.c:weakdef
Unexecuted instantiation: mips-dis.c:weakdef
Unexecuted instantiation: nfp-dis.c:weakdef
Unexecuted instantiation: riscv-dis.c:weakdef
Unexecuted instantiation: tilegx-dis.c:weakdef
Unexecuted instantiation: ctf-serialize.c:weakdef
Unexecuted instantiation: ctf-open-bfd.c:weakdef
Unexecuted instantiation: fuzz_addr2line.c:weakdef
Unexecuted instantiation: fuzz_as.c:weakdef
Unexecuted instantiation: codeview.c:weakdef
Unexecuted instantiation: cond.c:weakdef
Unexecuted instantiation: depend.c:weakdef
Unexecuted instantiation: dw2gencfi.c:weakdef
Unexecuted instantiation: dwarf2dbg.c:weakdef
Unexecuted instantiation: ehopt.c:weakdef
Unexecuted instantiation: expr.c:weakdef
Unexecuted instantiation: frags.c:weakdef
Unexecuted instantiation: gen-sframe.c:weakdef
Unexecuted instantiation: input-scrub.c:weakdef
Unexecuted instantiation: listing.c:weakdef
Unexecuted instantiation: macro.c:weakdef
Unexecuted instantiation: messages.c:weakdef
Unexecuted instantiation: output-file.c:weakdef
Unexecuted instantiation: read.c:weakdef
Unexecuted instantiation: remap.c:weakdef
Unexecuted instantiation: sb.c:weakdef
Unexecuted instantiation: scfidw2gen.c:weakdef
Unexecuted instantiation: stabs.c:weakdef
Unexecuted instantiation: subsegs.c:weakdef
Unexecuted instantiation: symbols.c:weakdef
Unexecuted instantiation: write.c:weakdef
Unexecuted instantiation: app.c:weakdef
Unexecuted instantiation: atof-generic.c:weakdef
Unexecuted instantiation: ecoff.c:weakdef
Unexecuted instantiation: flonum-copy.c:weakdef
Unexecuted instantiation: ginsn.c:weakdef
Unexecuted instantiation: hash.c:weakdef
Unexecuted instantiation: input-file.c:weakdef
Unexecuted instantiation: scfi.c:weakdef
Unexecuted instantiation: sframe-opt.c:weakdef
Unexecuted instantiation: tc-i386.c:weakdef
Unexecuted instantiation: obj-elf.c:weakdef
Unexecuted instantiation: atof-ieee.c:weakdef
Unexecuted instantiation: fuzz_dwarf.c:weakdef
Unexecuted instantiation: fuzz_objcopy.c:weakdef
291
292
/* Will references to this symbol always reference the symbol
293
   in this object?  */
294
#define SYMBOL_REFERENCES_LOCAL(INFO, H) \
295
0
  _bfd_elf_symbol_refs_local_p (H, INFO, 0)
296
297
/* Will _calls_ to this symbol always call the version in this object?  */
298
#define SYMBOL_CALLS_LOCAL(INFO, H) \
299
0
  _bfd_elf_symbol_refs_local_p (H, INFO, 1)
300
301
/* Whether an undefined weak symbol should resolve to its link-time
302
   value, even in PIC or PIE objects.  The linker_def test is to
303
   handle symbols like __ehdr_start that may be undefweak in early
304
   stages of linking but are guaranteed to be defined later.  */
305
#define UNDEFWEAK_NO_DYNAMIC_RELOC(INFO, H)   \
306
0
  ((H)->root.type == bfd_link_hash_undefweak    \
307
0
   && !(H)->root.linker_def        \
308
0
   && (ELF_ST_VISIBILITY ((H)->other) != STV_DEFAULT  \
309
0
       || (INFO)->dynamic_undefined_weak == 0))
310
311
/* Common symbols that are turned into definitions don't have the
312
   DEF_REGULAR flag set, so they might appear to be undefined.
313
   Symbols defined in linker scripts also don't have DEF_REGULAR set.  */
314
#define ELF_COMMON_DEF_P(H) \
315
0
  (!(H)->def_regular              \
316
0
   && !(H)->def_dynamic              \
317
0
   && (H)->root.type == bfd_link_hash_defined)
318
319
/* Records local symbols to be emitted in the dynamic symbol table.  */
320
321
struct elf_link_local_dynamic_entry
322
{
323
  struct elf_link_local_dynamic_entry *next;
324
325
  /* The input bfd this symbol came from.  */
326
  bfd *input_bfd;
327
328
  /* The index of the local symbol being copied.  */
329
  long input_indx;
330
331
  /* The index in the outgoing dynamic symbol table.  */
332
  long dynindx;
333
334
  /* A copy of the input symbol.  */
335
  Elf_Internal_Sym isym;
336
};
337
338
struct elf_link_loaded_list
339
{
340
  struct elf_link_loaded_list *next;
341
  bfd *abfd;
342
};
343
344
/* Structures used by the eh_frame optimization code.  */
345
struct eh_cie_fde
346
{
347
  union {
348
    struct {
349
      /* If REMOVED == 1, this is the CIE that the FDE originally used.
350
   The CIE belongs to the same .eh_frame input section as the FDE.
351
352
   If REMOVED == 0, this is the CIE that we have chosen to use for
353
   the output FDE.  The CIE's REMOVED field is also 0, but the CIE
354
   might belong to a different .eh_frame input section from the FDE.
355
356
   May be NULL to signify that the FDE should be discarded.  */
357
      struct eh_cie_fde *cie_inf;
358
      struct eh_cie_fde *next_for_section;
359
    } fde;
360
    struct {
361
      /* CIEs have three states:
362
363
   - REMOVED && !MERGED: Slated for removal because we haven't yet
364
     proven that an FDE needs it.  FULL_CIE, if nonnull, points to
365
     more detailed information about the CIE.
366
367
   - REMOVED && MERGED: We have merged this CIE with MERGED_WITH,
368
     which may not belong to the same input section.
369
370
   - !REMOVED: We have decided to keep this CIE.  SEC is the
371
     .eh_frame input section that contains the CIE.  */
372
      union {
373
  struct cie *full_cie;
374
  struct eh_cie_fde *merged_with;
375
  asection *sec;
376
      } u;
377
378
      /* The offset of the personality data from the start of the CIE,
379
   or 0 if the CIE doesn't have any.  */
380
      unsigned int personality_offset : 8;
381
382
      /* Length of augmentation.  aug_str_len is the length of the
383
   string including null terminator.  aug_data_len is the length
384
   of the rest up to the initial insns.  */
385
      unsigned int aug_str_len : 3;
386
      unsigned int aug_data_len : 5;
387
388
      /* True if we have marked relocations associated with this CIE.  */
389
      unsigned int gc_mark : 1;
390
391
      /* True if we have decided to turn an absolute LSDA encoding into
392
   a PC-relative one.  */
393
      unsigned int make_lsda_relative : 1;
394
395
      /* True if we have decided to turn an absolute personality
396
   encoding into a PC-relative one.  */
397
      unsigned int make_per_encoding_relative : 1;
398
399
      /* True if the CIE contains personality data and if that
400
   data uses a PC-relative encoding.  Always true when
401
   make_per_encoding_relative is.  */
402
      unsigned int per_encoding_relative : 1;
403
404
      /* True if the CIE contains personality data aligned to a
405
   multiple of eight bytes.  */
406
      unsigned int per_encoding_aligned8 : 1;
407
408
      /* True if we need to add an 'R' (FDE encoding) entry to the
409
   CIE's augmentation data.  */
410
      unsigned int add_fde_encoding : 1;
411
412
      /* True if we have merged this CIE with another.  */
413
      unsigned int merged : 1;
414
415
      /* Unused bits.  */
416
      unsigned int pad1 : 9;
417
    } cie;
418
  } u;
419
  unsigned int reloc_index;
420
  unsigned int size;
421
  unsigned int offset;
422
  unsigned int new_offset;
423
  unsigned int fde_encoding : 8;
424
  unsigned int lsda_encoding : 8;
425
  unsigned int lsda_offset : 8;
426
427
  /* True if this entry represents a CIE, false if it represents an FDE.  */
428
  unsigned int cie : 1;
429
430
  /* True if this entry is currently marked for removal.  */
431
  unsigned int removed : 1;
432
433
  /* True if we need to add a 'z' (augmentation size) entry to the CIE's
434
     augmentation data, and an associated byte to each of the CIE's FDEs.  */
435
  unsigned int add_augmentation_size : 1;
436
437
  /* True if we have decided to convert absolute FDE relocations into
438
     relative ones.  This applies to the first relocation in the FDE,
439
     which is against the code that the FDE describes.  */
440
  unsigned int make_relative : 1;
441
442
  /* Unused bits.  */
443
  unsigned int pad1 : 4;
444
445
  unsigned int *set_loc;
446
};
447
448
struct eh_frame_sec_info
449
{
450
  unsigned int count;
451
  struct cie *cies;
452
  struct eh_cie_fde entry[1];
453
};
454
455
struct eh_frame_array_ent
456
{
457
  bfd_vma initial_loc;
458
  bfd_size_type range;
459
  bfd_vma fde;
460
};
461
462
struct htab;
463
464
0
#define DWARF2_EH_HDR 1
465
0
#define COMPACT_EH_HDR 2
466
467
/* Endian-neutral code indicating that a function cannot be unwound.  */
468
0
#define COMPACT_EH_CANT_UNWIND_OPCODE 0x015d5d01
469
470
struct dwarf_eh_frame_hdr_info
471
{
472
  struct htab *cies;
473
  unsigned int fde_count;
474
  /* TRUE if .eh_frame_hdr should contain the sorted search table.
475
     We build it if we successfully read all .eh_frame input sections
476
     and recognize them.  */
477
  bool table;
478
  struct eh_frame_array_ent *array;
479
};
480
481
struct compact_eh_frame_hdr_info
482
{
483
  unsigned int allocated_entries;
484
  /* eh_frame_entry fragments.  */
485
  asection **entries;
486
};
487
488
struct eh_frame_hdr_info
489
{
490
  asection *hdr_sec;
491
  unsigned int array_count;
492
  bool frame_hdr_is_compact;
493
  union
494
    {
495
      struct dwarf_eh_frame_hdr_info dwarf;
496
      struct compact_eh_frame_hdr_info compact;
497
    }
498
  u;
499
};
500
501
/* Additional information for each function (used at link time).  */
502
struct sframe_func_bfdinfo
503
{
504
  /* Whether the function has been discarded from the final output.  */
505
  bool func_deleted_p;
506
  /* Relocation offset.  */
507
  unsigned int func_r_offset;
508
  /* Relocation index.  */
509
  unsigned int func_reloc_index;
510
};
511
512
/* Link state information of the SFrame section.  */
513
enum sframe_sec_state
514
{
515
  SFRAME_SEC_DECODED = 1,
516
  SFRAME_SEC_MERGED,
517
};
518
519
/* SFrame decoder info.
520
   Contains all information for a decoded .sframe section.  */
521
struct sframe_dec_info
522
{
523
  /* Decoder context.  */
524
  struct sframe_decoder_ctx *sfd_ctx;
525
  /* SFrame section state as it progresses through the link process.  */
526
  enum sframe_sec_state sfd_state;
527
  /* Number of function descriptor entries in this .sframe.  */
528
  unsigned int sfd_fde_count;
529
  /* Additional information for linking.  */
530
  struct sframe_func_bfdinfo *sfd_func_bfdinfo;
531
};
532
533
/* SFrame encoder info.
534
   Contains all information for an encoded .sframe section to be
535
   written out.  */
536
struct sframe_enc_info
537
{
538
  /* Encoder context.  */
539
  struct sframe_encoder_ctx *sfe_ctx;
540
  /* Output section.  */
541
  asection *sframe_section;
542
};
543
544
/* Enum used to identify target specific extensions to the elf_obj_tdata
545
   and elf_link_hash_table structures.  Note the enums deliberately start
546
   from 1 so that we can detect an uninitialized field.  The generic value
547
   is last so that additions to this enum do not need to modify more than
548
   one line.  */
549
enum elf_target_id
550
{
551
  AARCH64_ELF_DATA = 1,
552
  ALPHA_ELF_DATA,
553
  AMDGCN_ELF_DATA,
554
  ARC_ELF_DATA,
555
  ARM_ELF_DATA,
556
  AVR_ELF_DATA,
557
  BFIN_ELF_DATA,
558
  CR16_ELF_DATA,
559
  CRIS_ELF_DATA,
560
  CSKY_ELF_DATA,
561
  FRV_ELF_DATA,
562
  HPPA32_ELF_DATA,
563
  HPPA64_ELF_DATA,
564
  I386_ELF_DATA,
565
  IA64_ELF_DATA,
566
  KVX_ELF_DATA,
567
  LARCH_ELF_DATA,
568
  LM32_ELF_DATA,
569
  M32R_ELF_DATA,
570
  M68HC11_ELF_DATA,
571
  M68K_ELF_DATA,
572
  METAG_ELF_DATA,
573
  MICROBLAZE_ELF_DATA,
574
  MIPS_ELF_DATA,
575
  MMIX_ELF_DATA,
576
  MN10300_ELF_DATA,
577
  NDS32_ELF_DATA,
578
  OR1K_ELF_DATA,
579
  PPC32_ELF_DATA,
580
  PPC64_ELF_DATA,
581
  PRU_ELF_DATA,
582
  RISCV_ELF_DATA,
583
  S390_ELF_DATA,
584
  SCORE_ELF_DATA,
585
  SH_ELF_DATA,
586
  SPARC_ELF_DATA,
587
  SPU_ELF_DATA,
588
  TIC6X_ELF_DATA,
589
  TILEGX_ELF_DATA,
590
  TILEPRO_ELF_DATA,
591
  VAX_ELF_DATA,
592
  WEBASSEMBLY_ELF_DATA,
593
  X86_64_ELF_DATA,
594
  XTENSA_ELF_DATA,
595
  GENERIC_ELF_DATA
596
};
597
598
struct elf_sym_strtab
599
{
600
  Elf_Internal_Sym sym;
601
  unsigned long dest_index;
602
};
603
604
struct bfd_link_needed_list
605
{
606
  struct bfd_link_needed_list *next;
607
  bfd *by;
608
  const char *name;
609
};
610
611
enum elf_target_os
612
{
613
  is_normal,
614
  is_solaris, /* Solaris.  */
615
  is_vxworks  /* VxWorks.  */
616
};
617
618
/* Used by bfd_sym_from_r_symndx to cache a small number of local
619
   symbols.  */
620
0
#define LOCAL_SYM_CACHE_SIZE 32
621
struct sym_cache
622
{
623
  bfd *abfd;
624
  unsigned long indx[LOCAL_SYM_CACHE_SIZE];
625
  Elf_Internal_Sym sym[LOCAL_SYM_CACHE_SIZE];
626
};
627
628
/* ELF linker hash table.  */
629
630
struct elf_link_hash_table
631
{
632
  struct bfd_link_hash_table root;
633
634
  /* An identifier used to distinguish different target
635
     specific extensions to this structure.  */
636
  enum elf_target_id hash_table_id;
637
638
  /* Whether we have created the special dynamic sections required
639
     when linking against or generating a shared object.  */
640
  bool dynamic_sections_created;
641
642
  /* Whether dynamic relocations are present.  */
643
  bool dynamic_relocs;
644
645
  /* TRUE if there are local dynamic symbols.  */
646
  bool has_local_dynsyms;
647
648
  /* True if this target has relocatable executables, so needs dynamic
649
     section symbols.  */
650
  bool is_relocatable_executable;
651
652
  /* TRUE if there are IFUNC resolvers.  */
653
  bool ifunc_resolvers;
654
655
  /* TRUE if DT_PLTGOT is a required dynamic tag.  */
656
  bool dt_pltgot_required;
657
658
  /* TRUE if DT_JMPREL is a required dynamic tag.  */
659
  bool dt_jmprel_required;
660
661
  /* TRUE when we are handling DT_NEEDED entries.  */
662
  bool handling_dt_needed;
663
664
  /* TRUE if there are base symbols.  */
665
  bool has_base_symbols;
666
667
  /* The BFD used to hold special sections created by the linker.  */
668
  bfd *dynobj;
669
670
  /* The value to use when initialising got.refcount/offset and
671
     plt.refcount/offset in an elf_link_hash_entry.  Set to zero when
672
     the values are refcounts.  Set to init_got_offset/init_plt_offset
673
     in size_dynamic_sections when the values may be offsets.  */
674
  union gotplt_union init_got_refcount;
675
  union gotplt_union init_plt_refcount;
676
677
  /* The value to use for got.refcount/offset and plt.refcount/offset
678
     when the values may be offsets.  Normally (bfd_vma) -1.  */
679
  union gotplt_union init_got_offset;
680
  union gotplt_union init_plt_offset;
681
682
  /* The number of symbols found in the link which is intended for the
683
     mandatory DT_SYMTAB tag (.dynsym section) in .dynamic section.  */
684
  bfd_size_type dynsymcount;
685
  bfd_size_type local_dynsymcount;
686
687
  /* The string table of dynamic symbols, which becomes the .dynstr
688
     section.  */
689
  struct elf_strtab_hash *dynstr;
690
691
  /* The array size of the symbol string table, which becomes the
692
     .strtab section.  */
693
  bfd_size_type strtabsize;
694
695
  /* The array of strings, which becomes the .strtab section.  */
696
  struct elf_sym_strtab *strtab;
697
698
  /* The number of buckets in the hash table in the .hash section.
699
     This is based on the number of dynamic symbols.  */
700
  bfd_size_type bucketcount;
701
702
  /* A linked list of DT_NEEDED names found in dynamic objects
703
     included in the link.  */
704
  struct bfd_link_needed_list *needed;
705
706
  /* Sections in the output bfd that provides a section symbol
707
     to be used by relocations emitted against local symbols.
708
     Most targets will not use data_index_section.  */
709
  asection *text_index_section;
710
  asection *data_index_section;
711
712
  /* The _GLOBAL_OFFSET_TABLE_ symbol.  */
713
  struct elf_link_hash_entry *hgot;
714
715
  /* The _PROCEDURE_LINKAGE_TABLE_ symbol.  */
716
  struct elf_link_hash_entry *hplt;
717
718
  /* The _DYNAMIC symbol.  */
719
  struct elf_link_hash_entry *hdynamic;
720
721
  /* The __ehdr_start symbol.  */
722
  struct elf_link_hash_entry *hehdr_start;
723
724
  /* Used to link stabs in sections.  */
725
  struct stab_info stab_info;
726
727
  /* Used by eh_frame code when editing .eh_frame.  */
728
  struct eh_frame_hdr_info eh_info;
729
730
  /* Used to link stack trace info in .sframe sections.  */
731
  struct sframe_enc_info sfe_info;
732
733
  /* A linked list of local symbols to be added to .dynsym.  */
734
  struct elf_link_local_dynamic_entry *dynlocal;
735
736
  /* A linked list of DT_RPATH/DT_RUNPATH names found in dynamic
737
     objects included in the link.  */
738
  struct bfd_link_needed_list *runpath;
739
740
  /* Cached first output tls section and size of PT_TLS segment.  */
741
  asection *tls_sec;
742
  bfd_size_type tls_size;  /* Bytes.  */
743
744
  /* The offset into splt of the PLT entry for the TLS descriptor
745
     resolver.  Special values are 0, if not necessary (or not found
746
     to be necessary yet), and -1 if needed but not determined
747
     yet.  */
748
  bfd_vma tlsdesc_plt;
749
750
  /* The GOT offset for the lazy trampoline.  Communicated to the
751
     loader via DT_TLSDESC_GOT.  The magic value (bfd_vma) -1
752
     indicates an offset is not allocated.  */
753
  bfd_vma tlsdesc_got;
754
755
  /* Target OS for linker output.  */
756
  enum elf_target_os target_os;
757
758
  /* A linked list of dynamic BFD's loaded in the link.  */
759
  struct elf_link_loaded_list *dyn_loaded;
760
761
  /* Small local sym cache.  */
762
  struct sym_cache sym_cache;
763
764
  /* Hash table of symbols which are first defined in archives or shared
765
     objects when there are any IR inputs.  */
766
  struct bfd_hash_table *first_hash;
767
768
  /* Short-cuts to get to dynamic linker sections.  */
769
  asection *sgot;
770
  asection *sgotplt;
771
  asection *srelgot;
772
  asection *splt;
773
  asection *srelplt;
774
  asection *sdynbss;
775
  asection *srelbss;
776
  asection *sdynrelro;
777
  asection *sreldynrelro;
778
  asection *igotplt;
779
  asection *iplt;
780
  asection *irelplt;
781
  asection *irelifunc;
782
  asection *dynsym;
783
  asection *srelrdyn;
784
  asection *dynamic;
785
  asection *interp;
786
};
787
788
/* Returns TRUE if the hash table is a struct elf_link_hash_table.  */
789
790
static inline bool
791
is_elf_hash_table (const struct bfd_link_hash_table *htab)
792
0
{
793
0
  return htab->type == bfd_link_elf_hash_table;
794
0
}
Unexecuted instantiation: fuzz_nm.c:is_elf_hash_table
Unexecuted instantiation: bfd.c:is_elf_hash_table
Unexecuted instantiation: format.c:is_elf_hash_table
Unexecuted instantiation: libbfd.c:is_elf_hash_table
Unexecuted instantiation: opncls.c:is_elf_hash_table
Unexecuted instantiation: elf64-x86-64.c:is_elf_hash_table
Unexecuted instantiation: elfxx-x86.c:is_elf_hash_table
Unexecuted instantiation: elf-ifunc.c:is_elf_hash_table
Unexecuted instantiation: elf64.c:is_elf_hash_table
Unexecuted instantiation: elf-sframe.c:is_elf_hash_table
Unexecuted instantiation: elf.c:is_elf_hash_table
Unexecuted instantiation: elflink.c:is_elf_hash_table
Unexecuted instantiation: elf-strtab.c:is_elf_hash_table
Unexecuted instantiation: elf-eh-frame.c:is_elf_hash_table
Unexecuted instantiation: elf-properties.c:is_elf_hash_table
Unexecuted instantiation: dwarf1.c:is_elf_hash_table
Unexecuted instantiation: dwarf2.c:is_elf_hash_table
Unexecuted instantiation: elf32-i386.c:is_elf_hash_table
Unexecuted instantiation: elf32.c:is_elf_hash_table
Unexecuted instantiation: cofflink.c:is_elf_hash_table
Unexecuted instantiation: coffgen.c:is_elf_hash_table
Unexecuted instantiation: elf64-gen.c:is_elf_hash_table
Unexecuted instantiation: elf32-gen.c:is_elf_hash_table
Unexecuted instantiation: elf32-aarch64.c:is_elf_hash_table
Unexecuted instantiation: elf32-ia64.c:is_elf_hash_table
Unexecuted instantiation: elf32-kvx.c:is_elf_hash_table
Unexecuted instantiation: elf32-loongarch.c:is_elf_hash_table
Unexecuted instantiation: elf32-mips.c:is_elf_hash_table
Unexecuted instantiation: elf32-riscv.c:is_elf_hash_table
Unexecuted instantiation: elf32-score.c:is_elf_hash_table
Unexecuted instantiation: elf32-score7.c:is_elf_hash_table
Unexecuted instantiation: elf64-aarch64.c:is_elf_hash_table
Unexecuted instantiation: elf64-alpha.c:is_elf_hash_table
Unexecuted instantiation: elf64-amdgcn.c:is_elf_hash_table
Unexecuted instantiation: elf64-bpf.c:is_elf_hash_table
Unexecuted instantiation: elf64-hppa.c:is_elf_hash_table
Unexecuted instantiation: elf64-ia64-vms.c:is_elf_hash_table
Unexecuted instantiation: elf64-ia64.c:is_elf_hash_table
Unexecuted instantiation: elf64-kvx.c:is_elf_hash_table
Unexecuted instantiation: elf64-loongarch.c:is_elf_hash_table
Unexecuted instantiation: elf64-mips.c:is_elf_hash_table
Unexecuted instantiation: elf64-mmix.c:is_elf_hash_table
Unexecuted instantiation: elf64-nfp.c:is_elf_hash_table
Unexecuted instantiation: elf64-ppc.c:is_elf_hash_table
Unexecuted instantiation: elf64-riscv.c:is_elf_hash_table
Unexecuted instantiation: elf64-s390.c:is_elf_hash_table
Unexecuted instantiation: elf64-sparc.c:is_elf_hash_table
Unexecuted instantiation: elf64-tilegx.c:is_elf_hash_table
Unexecuted instantiation: elfn32-mips.c:is_elf_hash_table
Unexecuted instantiation: elfxx-aarch64.c:is_elf_hash_table
Unexecuted instantiation: elfxx-ia64.c:is_elf_hash_table
Unexecuted instantiation: elfxx-kvx.c:is_elf_hash_table
Unexecuted instantiation: elfxx-loongarch.c:is_elf_hash_table
Unexecuted instantiation: elfxx-mips.c:is_elf_hash_table
Unexecuted instantiation: elfxx-riscv.c:is_elf_hash_table
Unexecuted instantiation: elf-attrs.c:is_elf_hash_table
Unexecuted instantiation: elf-m10200.c:is_elf_hash_table
Unexecuted instantiation: elf-m10300.c:is_elf_hash_table
Unexecuted instantiation: elf-solaris2.c:is_elf_hash_table
Unexecuted instantiation: elf-vxworks.c:is_elf_hash_table
Unexecuted instantiation: elf32-am33lin.c:is_elf_hash_table
Unexecuted instantiation: elf32-arc.c:is_elf_hash_table
Unexecuted instantiation: elf32-arm.c:is_elf_hash_table
Unexecuted instantiation: elf32-avr.c:is_elf_hash_table
Unexecuted instantiation: elf32-bfin.c:is_elf_hash_table
Unexecuted instantiation: elf32-cr16.c:is_elf_hash_table
Unexecuted instantiation: elf32-cris.c:is_elf_hash_table
Unexecuted instantiation: elf32-crx.c:is_elf_hash_table
Unexecuted instantiation: elf32-csky.c:is_elf_hash_table
Unexecuted instantiation: elf32-d10v.c:is_elf_hash_table
Unexecuted instantiation: elf32-d30v.c:is_elf_hash_table
Unexecuted instantiation: elf32-dlx.c:is_elf_hash_table
Unexecuted instantiation: elf32-epiphany.c:is_elf_hash_table
Unexecuted instantiation: elf32-fr30.c:is_elf_hash_table
Unexecuted instantiation: elf32-frv.c:is_elf_hash_table
Unexecuted instantiation: elf32-ft32.c:is_elf_hash_table
Unexecuted instantiation: elf32-h8300.c:is_elf_hash_table
Unexecuted instantiation: elf32-hppa.c:is_elf_hash_table
Unexecuted instantiation: elf32-ip2k.c:is_elf_hash_table
Unexecuted instantiation: elf32-iq2000.c:is_elf_hash_table
Unexecuted instantiation: elf32-lm32.c:is_elf_hash_table
Unexecuted instantiation: elf32-m32c.c:is_elf_hash_table
Unexecuted instantiation: elf32-m32r.c:is_elf_hash_table
Unexecuted instantiation: elf32-m68hc11.c:is_elf_hash_table
Unexecuted instantiation: elf32-m68hc12.c:is_elf_hash_table
Unexecuted instantiation: elf32-m68hc1x.c:is_elf_hash_table
Unexecuted instantiation: elf32-m68k.c:is_elf_hash_table
Unexecuted instantiation: elf32-mcore.c:is_elf_hash_table
Unexecuted instantiation: elf32-mep.c:is_elf_hash_table
Unexecuted instantiation: elf32-metag.c:is_elf_hash_table
Unexecuted instantiation: elf32-microblaze.c:is_elf_hash_table
Unexecuted instantiation: elf32-moxie.c:is_elf_hash_table
Unexecuted instantiation: elf32-msp430.c:is_elf_hash_table
Unexecuted instantiation: elf32-mt.c:is_elf_hash_table
Unexecuted instantiation: elf32-nds32.c:is_elf_hash_table
Unexecuted instantiation: elf32-or1k.c:is_elf_hash_table
Unexecuted instantiation: elf32-pj.c:is_elf_hash_table
Unexecuted instantiation: elf32-ppc.c:is_elf_hash_table
Unexecuted instantiation: elf32-pru.c:is_elf_hash_table
Unexecuted instantiation: elf32-rl78.c:is_elf_hash_table
Unexecuted instantiation: elf32-rx.c:is_elf_hash_table
Unexecuted instantiation: elf32-s12z.c:is_elf_hash_table
Unexecuted instantiation: elf32-s390.c:is_elf_hash_table
Unexecuted instantiation: elf32-sh.c:is_elf_hash_table
Unexecuted instantiation: elf32-sparc.c:is_elf_hash_table
Unexecuted instantiation: elf32-spu.c:is_elf_hash_table
Unexecuted instantiation: elf32-tic6x.c:is_elf_hash_table
Unexecuted instantiation: elf32-tilegx.c:is_elf_hash_table
Unexecuted instantiation: elf32-tilepro.c:is_elf_hash_table
Unexecuted instantiation: elf32-v850.c:is_elf_hash_table
Unexecuted instantiation: elf32-vax.c:is_elf_hash_table
Unexecuted instantiation: elf32-visium.c:is_elf_hash_table
Unexecuted instantiation: elf32-wasm32.c:is_elf_hash_table
Unexecuted instantiation: elf32-xgate.c:is_elf_hash_table
Unexecuted instantiation: elf32-xstormy16.c:is_elf_hash_table
Unexecuted instantiation: elf32-xtensa.c:is_elf_hash_table
Unexecuted instantiation: elf32-z80.c:is_elf_hash_table
Unexecuted instantiation: elfxx-sparc.c:is_elf_hash_table
Unexecuted instantiation: elfxx-tilegx.c:is_elf_hash_table
Unexecuted instantiation: cpu-nds32.c:is_elf_hash_table
Unexecuted instantiation: compress.c:is_elf_hash_table
Unexecuted instantiation: merge.c:is_elf_hash_table
Unexecuted instantiation: fuzz_objdump.c:is_elf_hash_table
Unexecuted instantiation: arc-dis.c:is_elf_hash_table
Unexecuted instantiation: arm-dis.c:is_elf_hash_table
Unexecuted instantiation: csky-dis.c:is_elf_hash_table
Unexecuted instantiation: kvx-dis.c:is_elf_hash_table
Unexecuted instantiation: m32c-dis.c:is_elf_hash_table
Unexecuted instantiation: mep-dis.c:is_elf_hash_table
Unexecuted instantiation: ppc-dis.c:is_elf_hash_table
Unexecuted instantiation: pru-dis.c:is_elf_hash_table
Unexecuted instantiation: rl78-dis.c:is_elf_hash_table
Unexecuted instantiation: score-dis.c:is_elf_hash_table
Unexecuted instantiation: score7-dis.c:is_elf_hash_table
Unexecuted instantiation: tilepro-dis.c:is_elf_hash_table
Unexecuted instantiation: wasm32-dis.c:is_elf_hash_table
Unexecuted instantiation: aarch64-dis.c:is_elf_hash_table
Unexecuted instantiation: bpf-dis.c:is_elf_hash_table
Unexecuted instantiation: mips-dis.c:is_elf_hash_table
Unexecuted instantiation: nfp-dis.c:is_elf_hash_table
Unexecuted instantiation: riscv-dis.c:is_elf_hash_table
Unexecuted instantiation: tilegx-dis.c:is_elf_hash_table
Unexecuted instantiation: ctf-serialize.c:is_elf_hash_table
Unexecuted instantiation: ctf-open-bfd.c:is_elf_hash_table
Unexecuted instantiation: fuzz_addr2line.c:is_elf_hash_table
Unexecuted instantiation: fuzz_as.c:is_elf_hash_table
Unexecuted instantiation: codeview.c:is_elf_hash_table
Unexecuted instantiation: cond.c:is_elf_hash_table
Unexecuted instantiation: depend.c:is_elf_hash_table
Unexecuted instantiation: dw2gencfi.c:is_elf_hash_table
Unexecuted instantiation: dwarf2dbg.c:is_elf_hash_table
Unexecuted instantiation: ehopt.c:is_elf_hash_table
Unexecuted instantiation: expr.c:is_elf_hash_table
Unexecuted instantiation: frags.c:is_elf_hash_table
Unexecuted instantiation: gen-sframe.c:is_elf_hash_table
Unexecuted instantiation: input-scrub.c:is_elf_hash_table
Unexecuted instantiation: listing.c:is_elf_hash_table
Unexecuted instantiation: macro.c:is_elf_hash_table
Unexecuted instantiation: messages.c:is_elf_hash_table
Unexecuted instantiation: output-file.c:is_elf_hash_table
Unexecuted instantiation: read.c:is_elf_hash_table
Unexecuted instantiation: remap.c:is_elf_hash_table
Unexecuted instantiation: sb.c:is_elf_hash_table
Unexecuted instantiation: scfidw2gen.c:is_elf_hash_table
Unexecuted instantiation: stabs.c:is_elf_hash_table
Unexecuted instantiation: subsegs.c:is_elf_hash_table
Unexecuted instantiation: symbols.c:is_elf_hash_table
Unexecuted instantiation: write.c:is_elf_hash_table
Unexecuted instantiation: app.c:is_elf_hash_table
Unexecuted instantiation: atof-generic.c:is_elf_hash_table
Unexecuted instantiation: ecoff.c:is_elf_hash_table
Unexecuted instantiation: flonum-copy.c:is_elf_hash_table
Unexecuted instantiation: ginsn.c:is_elf_hash_table
Unexecuted instantiation: hash.c:is_elf_hash_table
Unexecuted instantiation: input-file.c:is_elf_hash_table
Unexecuted instantiation: scfi.c:is_elf_hash_table
Unexecuted instantiation: sframe-opt.c:is_elf_hash_table
Unexecuted instantiation: tc-i386.c:is_elf_hash_table
Unexecuted instantiation: obj-elf.c:is_elf_hash_table
Unexecuted instantiation: atof-ieee.c:is_elf_hash_table
Unexecuted instantiation: fuzz_dwarf.c:is_elf_hash_table
Unexecuted instantiation: fuzz_objcopy.c:is_elf_hash_table
795
796
/* Look up an entry in an ELF linker hash table.  */
797
798
static inline struct elf_link_hash_entry *
799
elf_link_hash_lookup (struct elf_link_hash_table *table, const char *string,
800
          bool create, bool copy, bool follow)
801
0
{
802
0
  if (ENABLE_CHECKING && !is_elf_hash_table (&table->root))
803
0
    abort ();
804
0
  return (struct elf_link_hash_entry *)
805
0
    bfd_link_hash_lookup (&table->root, string, create, copy, follow);
806
0
}
Unexecuted instantiation: fuzz_nm.c:elf_link_hash_lookup
Unexecuted instantiation: bfd.c:elf_link_hash_lookup
Unexecuted instantiation: format.c:elf_link_hash_lookup
Unexecuted instantiation: libbfd.c:elf_link_hash_lookup
Unexecuted instantiation: opncls.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-x86-64.c:elf_link_hash_lookup
Unexecuted instantiation: elfxx-x86.c:elf_link_hash_lookup
Unexecuted instantiation: elf-ifunc.c:elf_link_hash_lookup
Unexecuted instantiation: elf64.c:elf_link_hash_lookup
Unexecuted instantiation: elf-sframe.c:elf_link_hash_lookup
Unexecuted instantiation: elf.c:elf_link_hash_lookup
Unexecuted instantiation: elflink.c:elf_link_hash_lookup
Unexecuted instantiation: elf-strtab.c:elf_link_hash_lookup
Unexecuted instantiation: elf-eh-frame.c:elf_link_hash_lookup
Unexecuted instantiation: elf-properties.c:elf_link_hash_lookup
Unexecuted instantiation: dwarf1.c:elf_link_hash_lookup
Unexecuted instantiation: dwarf2.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-i386.c:elf_link_hash_lookup
Unexecuted instantiation: elf32.c:elf_link_hash_lookup
Unexecuted instantiation: cofflink.c:elf_link_hash_lookup
Unexecuted instantiation: coffgen.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-gen.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-gen.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-aarch64.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-ia64.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-kvx.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-loongarch.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-mips.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-riscv.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-score.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-score7.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-aarch64.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-alpha.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-amdgcn.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-bpf.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-hppa.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-ia64-vms.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-ia64.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-kvx.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-loongarch.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-mips.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-mmix.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-nfp.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-ppc.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-riscv.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-s390.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-sparc.c:elf_link_hash_lookup
Unexecuted instantiation: elf64-tilegx.c:elf_link_hash_lookup
Unexecuted instantiation: elfn32-mips.c:elf_link_hash_lookup
Unexecuted instantiation: elfxx-aarch64.c:elf_link_hash_lookup
Unexecuted instantiation: elfxx-ia64.c:elf_link_hash_lookup
Unexecuted instantiation: elfxx-kvx.c:elf_link_hash_lookup
Unexecuted instantiation: elfxx-loongarch.c:elf_link_hash_lookup
Unexecuted instantiation: elfxx-mips.c:elf_link_hash_lookup
Unexecuted instantiation: elfxx-riscv.c:elf_link_hash_lookup
Unexecuted instantiation: elf-attrs.c:elf_link_hash_lookup
Unexecuted instantiation: elf-m10200.c:elf_link_hash_lookup
Unexecuted instantiation: elf-m10300.c:elf_link_hash_lookup
Unexecuted instantiation: elf-solaris2.c:elf_link_hash_lookup
Unexecuted instantiation: elf-vxworks.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-am33lin.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-arc.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-arm.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-avr.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-bfin.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-cr16.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-cris.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-crx.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-csky.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-d10v.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-d30v.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-dlx.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-epiphany.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-fr30.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-frv.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-ft32.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-h8300.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-hppa.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-ip2k.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-iq2000.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-lm32.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-m32c.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-m32r.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-m68hc11.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-m68hc12.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-m68hc1x.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-m68k.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-mcore.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-mep.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-metag.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-microblaze.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-moxie.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-msp430.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-mt.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-nds32.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-or1k.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-pj.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-ppc.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-pru.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-rl78.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-rx.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-s12z.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-s390.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-sh.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-sparc.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-spu.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-tic6x.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-tilegx.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-tilepro.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-v850.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-vax.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-visium.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-wasm32.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-xgate.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-xstormy16.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-xtensa.c:elf_link_hash_lookup
Unexecuted instantiation: elf32-z80.c:elf_link_hash_lookup
Unexecuted instantiation: elfxx-sparc.c:elf_link_hash_lookup
Unexecuted instantiation: elfxx-tilegx.c:elf_link_hash_lookup
Unexecuted instantiation: cpu-nds32.c:elf_link_hash_lookup
Unexecuted instantiation: compress.c:elf_link_hash_lookup
Unexecuted instantiation: merge.c:elf_link_hash_lookup
Unexecuted instantiation: fuzz_objdump.c:elf_link_hash_lookup
Unexecuted instantiation: arc-dis.c:elf_link_hash_lookup
Unexecuted instantiation: arm-dis.c:elf_link_hash_lookup
Unexecuted instantiation: csky-dis.c:elf_link_hash_lookup
Unexecuted instantiation: kvx-dis.c:elf_link_hash_lookup
Unexecuted instantiation: m32c-dis.c:elf_link_hash_lookup
Unexecuted instantiation: mep-dis.c:elf_link_hash_lookup
Unexecuted instantiation: ppc-dis.c:elf_link_hash_lookup
Unexecuted instantiation: pru-dis.c:elf_link_hash_lookup
Unexecuted instantiation: rl78-dis.c:elf_link_hash_lookup
Unexecuted instantiation: score-dis.c:elf_link_hash_lookup
Unexecuted instantiation: score7-dis.c:elf_link_hash_lookup
Unexecuted instantiation: tilepro-dis.c:elf_link_hash_lookup
Unexecuted instantiation: wasm32-dis.c:elf_link_hash_lookup
Unexecuted instantiation: aarch64-dis.c:elf_link_hash_lookup
Unexecuted instantiation: bpf-dis.c:elf_link_hash_lookup
Unexecuted instantiation: mips-dis.c:elf_link_hash_lookup
Unexecuted instantiation: nfp-dis.c:elf_link_hash_lookup
Unexecuted instantiation: riscv-dis.c:elf_link_hash_lookup
Unexecuted instantiation: tilegx-dis.c:elf_link_hash_lookup
Unexecuted instantiation: ctf-serialize.c:elf_link_hash_lookup
Unexecuted instantiation: ctf-open-bfd.c:elf_link_hash_lookup
Unexecuted instantiation: fuzz_addr2line.c:elf_link_hash_lookup
Unexecuted instantiation: fuzz_as.c:elf_link_hash_lookup
Unexecuted instantiation: codeview.c:elf_link_hash_lookup
Unexecuted instantiation: cond.c:elf_link_hash_lookup
Unexecuted instantiation: depend.c:elf_link_hash_lookup
Unexecuted instantiation: dw2gencfi.c:elf_link_hash_lookup
Unexecuted instantiation: dwarf2dbg.c:elf_link_hash_lookup
Unexecuted instantiation: ehopt.c:elf_link_hash_lookup
Unexecuted instantiation: expr.c:elf_link_hash_lookup
Unexecuted instantiation: frags.c:elf_link_hash_lookup
Unexecuted instantiation: gen-sframe.c:elf_link_hash_lookup
Unexecuted instantiation: input-scrub.c:elf_link_hash_lookup
Unexecuted instantiation: listing.c:elf_link_hash_lookup
Unexecuted instantiation: macro.c:elf_link_hash_lookup
Unexecuted instantiation: messages.c:elf_link_hash_lookup
Unexecuted instantiation: output-file.c:elf_link_hash_lookup
Unexecuted instantiation: read.c:elf_link_hash_lookup
Unexecuted instantiation: remap.c:elf_link_hash_lookup
Unexecuted instantiation: sb.c:elf_link_hash_lookup
Unexecuted instantiation: scfidw2gen.c:elf_link_hash_lookup
Unexecuted instantiation: stabs.c:elf_link_hash_lookup
Unexecuted instantiation: subsegs.c:elf_link_hash_lookup
Unexecuted instantiation: symbols.c:elf_link_hash_lookup
Unexecuted instantiation: write.c:elf_link_hash_lookup
Unexecuted instantiation: app.c:elf_link_hash_lookup
Unexecuted instantiation: atof-generic.c:elf_link_hash_lookup
Unexecuted instantiation: ecoff.c:elf_link_hash_lookup
Unexecuted instantiation: flonum-copy.c:elf_link_hash_lookup
Unexecuted instantiation: ginsn.c:elf_link_hash_lookup
Unexecuted instantiation: hash.c:elf_link_hash_lookup
Unexecuted instantiation: input-file.c:elf_link_hash_lookup
Unexecuted instantiation: scfi.c:elf_link_hash_lookup
Unexecuted instantiation: sframe-opt.c:elf_link_hash_lookup
Unexecuted instantiation: tc-i386.c:elf_link_hash_lookup
Unexecuted instantiation: obj-elf.c:elf_link_hash_lookup
Unexecuted instantiation: atof-ieee.c:elf_link_hash_lookup
Unexecuted instantiation: fuzz_dwarf.c:elf_link_hash_lookup
Unexecuted instantiation: fuzz_objcopy.c:elf_link_hash_lookup
807
808
/* Traverse an ELF linker hash table.  */
809
810
static inline void
811
elf_link_hash_traverse (struct elf_link_hash_table *table,
812
      bool (*f) (struct elf_link_hash_entry *, void *),
813
      void *info)
814
0
{
815
0
  if (ENABLE_CHECKING && !is_elf_hash_table (&table->root))
816
0
    abort ();
817
0
  bfd_link_hash_traverse (&table->root,
818
0
        (bool (*) (struct bfd_link_hash_entry *, void *)) f,
819
0
        info);
820
0
}
Unexecuted instantiation: fuzz_nm.c:elf_link_hash_traverse
Unexecuted instantiation: bfd.c:elf_link_hash_traverse
Unexecuted instantiation: format.c:elf_link_hash_traverse
Unexecuted instantiation: libbfd.c:elf_link_hash_traverse
Unexecuted instantiation: opncls.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-x86-64.c:elf_link_hash_traverse
Unexecuted instantiation: elfxx-x86.c:elf_link_hash_traverse
Unexecuted instantiation: elf-ifunc.c:elf_link_hash_traverse
Unexecuted instantiation: elf64.c:elf_link_hash_traverse
Unexecuted instantiation: elf-sframe.c:elf_link_hash_traverse
Unexecuted instantiation: elf.c:elf_link_hash_traverse
Unexecuted instantiation: elflink.c:elf_link_hash_traverse
Unexecuted instantiation: elf-strtab.c:elf_link_hash_traverse
Unexecuted instantiation: elf-eh-frame.c:elf_link_hash_traverse
Unexecuted instantiation: elf-properties.c:elf_link_hash_traverse
Unexecuted instantiation: dwarf1.c:elf_link_hash_traverse
Unexecuted instantiation: dwarf2.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-i386.c:elf_link_hash_traverse
Unexecuted instantiation: elf32.c:elf_link_hash_traverse
Unexecuted instantiation: cofflink.c:elf_link_hash_traverse
Unexecuted instantiation: coffgen.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-gen.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-gen.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-aarch64.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-ia64.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-kvx.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-loongarch.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-mips.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-riscv.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-score.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-score7.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-aarch64.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-alpha.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-amdgcn.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-bpf.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-hppa.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-ia64-vms.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-ia64.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-kvx.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-loongarch.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-mips.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-mmix.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-nfp.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-ppc.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-riscv.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-s390.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-sparc.c:elf_link_hash_traverse
Unexecuted instantiation: elf64-tilegx.c:elf_link_hash_traverse
Unexecuted instantiation: elfn32-mips.c:elf_link_hash_traverse
Unexecuted instantiation: elfxx-aarch64.c:elf_link_hash_traverse
Unexecuted instantiation: elfxx-ia64.c:elf_link_hash_traverse
Unexecuted instantiation: elfxx-kvx.c:elf_link_hash_traverse
Unexecuted instantiation: elfxx-loongarch.c:elf_link_hash_traverse
Unexecuted instantiation: elfxx-mips.c:elf_link_hash_traverse
Unexecuted instantiation: elfxx-riscv.c:elf_link_hash_traverse
Unexecuted instantiation: elf-attrs.c:elf_link_hash_traverse
Unexecuted instantiation: elf-m10200.c:elf_link_hash_traverse
Unexecuted instantiation: elf-m10300.c:elf_link_hash_traverse
Unexecuted instantiation: elf-solaris2.c:elf_link_hash_traverse
Unexecuted instantiation: elf-vxworks.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-am33lin.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-arc.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-arm.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-avr.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-bfin.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-cr16.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-cris.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-crx.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-csky.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-d10v.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-d30v.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-dlx.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-epiphany.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-fr30.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-frv.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-ft32.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-h8300.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-hppa.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-ip2k.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-iq2000.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-lm32.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-m32c.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-m32r.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-m68hc11.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-m68hc12.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-m68hc1x.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-m68k.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-mcore.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-mep.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-metag.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-microblaze.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-moxie.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-msp430.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-mt.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-nds32.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-or1k.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-pj.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-ppc.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-pru.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-rl78.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-rx.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-s12z.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-s390.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-sh.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-sparc.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-spu.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-tic6x.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-tilegx.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-tilepro.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-v850.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-vax.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-visium.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-wasm32.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-xgate.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-xstormy16.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-xtensa.c:elf_link_hash_traverse
Unexecuted instantiation: elf32-z80.c:elf_link_hash_traverse
Unexecuted instantiation: elfxx-sparc.c:elf_link_hash_traverse
Unexecuted instantiation: elfxx-tilegx.c:elf_link_hash_traverse
Unexecuted instantiation: cpu-nds32.c:elf_link_hash_traverse
Unexecuted instantiation: compress.c:elf_link_hash_traverse
Unexecuted instantiation: merge.c:elf_link_hash_traverse
Unexecuted instantiation: fuzz_objdump.c:elf_link_hash_traverse
Unexecuted instantiation: arc-dis.c:elf_link_hash_traverse
Unexecuted instantiation: arm-dis.c:elf_link_hash_traverse
Unexecuted instantiation: csky-dis.c:elf_link_hash_traverse
Unexecuted instantiation: kvx-dis.c:elf_link_hash_traverse
Unexecuted instantiation: m32c-dis.c:elf_link_hash_traverse
Unexecuted instantiation: mep-dis.c:elf_link_hash_traverse
Unexecuted instantiation: ppc-dis.c:elf_link_hash_traverse
Unexecuted instantiation: pru-dis.c:elf_link_hash_traverse
Unexecuted instantiation: rl78-dis.c:elf_link_hash_traverse
Unexecuted instantiation: score-dis.c:elf_link_hash_traverse
Unexecuted instantiation: score7-dis.c:elf_link_hash_traverse
Unexecuted instantiation: tilepro-dis.c:elf_link_hash_traverse
Unexecuted instantiation: wasm32-dis.c:elf_link_hash_traverse
Unexecuted instantiation: aarch64-dis.c:elf_link_hash_traverse
Unexecuted instantiation: bpf-dis.c:elf_link_hash_traverse
Unexecuted instantiation: mips-dis.c:elf_link_hash_traverse
Unexecuted instantiation: nfp-dis.c:elf_link_hash_traverse
Unexecuted instantiation: riscv-dis.c:elf_link_hash_traverse
Unexecuted instantiation: tilegx-dis.c:elf_link_hash_traverse
Unexecuted instantiation: ctf-serialize.c:elf_link_hash_traverse
Unexecuted instantiation: ctf-open-bfd.c:elf_link_hash_traverse
Unexecuted instantiation: fuzz_addr2line.c:elf_link_hash_traverse
Unexecuted instantiation: fuzz_as.c:elf_link_hash_traverse
Unexecuted instantiation: codeview.c:elf_link_hash_traverse
Unexecuted instantiation: cond.c:elf_link_hash_traverse
Unexecuted instantiation: depend.c:elf_link_hash_traverse
Unexecuted instantiation: dw2gencfi.c:elf_link_hash_traverse
Unexecuted instantiation: dwarf2dbg.c:elf_link_hash_traverse
Unexecuted instantiation: ehopt.c:elf_link_hash_traverse
Unexecuted instantiation: expr.c:elf_link_hash_traverse
Unexecuted instantiation: frags.c:elf_link_hash_traverse
Unexecuted instantiation: gen-sframe.c:elf_link_hash_traverse
Unexecuted instantiation: input-scrub.c:elf_link_hash_traverse
Unexecuted instantiation: listing.c:elf_link_hash_traverse
Unexecuted instantiation: macro.c:elf_link_hash_traverse
Unexecuted instantiation: messages.c:elf_link_hash_traverse
Unexecuted instantiation: output-file.c:elf_link_hash_traverse
Unexecuted instantiation: read.c:elf_link_hash_traverse
Unexecuted instantiation: remap.c:elf_link_hash_traverse
Unexecuted instantiation: sb.c:elf_link_hash_traverse
Unexecuted instantiation: scfidw2gen.c:elf_link_hash_traverse
Unexecuted instantiation: stabs.c:elf_link_hash_traverse
Unexecuted instantiation: subsegs.c:elf_link_hash_traverse
Unexecuted instantiation: symbols.c:elf_link_hash_traverse
Unexecuted instantiation: write.c:elf_link_hash_traverse
Unexecuted instantiation: app.c:elf_link_hash_traverse
Unexecuted instantiation: atof-generic.c:elf_link_hash_traverse
Unexecuted instantiation: ecoff.c:elf_link_hash_traverse
Unexecuted instantiation: flonum-copy.c:elf_link_hash_traverse
Unexecuted instantiation: ginsn.c:elf_link_hash_traverse
Unexecuted instantiation: hash.c:elf_link_hash_traverse
Unexecuted instantiation: input-file.c:elf_link_hash_traverse
Unexecuted instantiation: scfi.c:elf_link_hash_traverse
Unexecuted instantiation: sframe-opt.c:elf_link_hash_traverse
Unexecuted instantiation: tc-i386.c:elf_link_hash_traverse
Unexecuted instantiation: obj-elf.c:elf_link_hash_traverse
Unexecuted instantiation: atof-ieee.c:elf_link_hash_traverse
Unexecuted instantiation: fuzz_dwarf.c:elf_link_hash_traverse
Unexecuted instantiation: fuzz_objcopy.c:elf_link_hash_traverse
821
822
/* Get the ELF linker hash table from a link_info structure.  */
823
824
static inline struct elf_link_hash_table *
825
elf_hash_table (const struct bfd_link_info *info)
826
0
{
827
0
  return (struct elf_link_hash_table *) info->hash;
828
0
}
Unexecuted instantiation: fuzz_nm.c:elf_hash_table
Unexecuted instantiation: bfd.c:elf_hash_table
Unexecuted instantiation: format.c:elf_hash_table
Unexecuted instantiation: libbfd.c:elf_hash_table
Unexecuted instantiation: opncls.c:elf_hash_table
Unexecuted instantiation: elf64-x86-64.c:elf_hash_table
Unexecuted instantiation: elfxx-x86.c:elf_hash_table
Unexecuted instantiation: elf-ifunc.c:elf_hash_table
Unexecuted instantiation: elf64.c:elf_hash_table
Unexecuted instantiation: elf-sframe.c:elf_hash_table
Unexecuted instantiation: elf.c:elf_hash_table
Unexecuted instantiation: elflink.c:elf_hash_table
Unexecuted instantiation: elf-strtab.c:elf_hash_table
Unexecuted instantiation: elf-eh-frame.c:elf_hash_table
Unexecuted instantiation: elf-properties.c:elf_hash_table
Unexecuted instantiation: dwarf1.c:elf_hash_table
Unexecuted instantiation: dwarf2.c:elf_hash_table
Unexecuted instantiation: elf32-i386.c:elf_hash_table
Unexecuted instantiation: elf32.c:elf_hash_table
Unexecuted instantiation: cofflink.c:elf_hash_table
Unexecuted instantiation: coffgen.c:elf_hash_table
Unexecuted instantiation: elf64-gen.c:elf_hash_table
Unexecuted instantiation: elf32-gen.c:elf_hash_table
Unexecuted instantiation: elf32-aarch64.c:elf_hash_table
Unexecuted instantiation: elf32-ia64.c:elf_hash_table
Unexecuted instantiation: elf32-kvx.c:elf_hash_table
Unexecuted instantiation: elf32-loongarch.c:elf_hash_table
Unexecuted instantiation: elf32-mips.c:elf_hash_table
Unexecuted instantiation: elf32-riscv.c:elf_hash_table
Unexecuted instantiation: elf32-score.c:elf_hash_table
Unexecuted instantiation: elf32-score7.c:elf_hash_table
Unexecuted instantiation: elf64-aarch64.c:elf_hash_table
Unexecuted instantiation: elf64-alpha.c:elf_hash_table
Unexecuted instantiation: elf64-amdgcn.c:elf_hash_table
Unexecuted instantiation: elf64-bpf.c:elf_hash_table
Unexecuted instantiation: elf64-hppa.c:elf_hash_table
Unexecuted instantiation: elf64-ia64-vms.c:elf_hash_table
Unexecuted instantiation: elf64-ia64.c:elf_hash_table
Unexecuted instantiation: elf64-kvx.c:elf_hash_table
Unexecuted instantiation: elf64-loongarch.c:elf_hash_table
Unexecuted instantiation: elf64-mips.c:elf_hash_table
Unexecuted instantiation: elf64-mmix.c:elf_hash_table
Unexecuted instantiation: elf64-nfp.c:elf_hash_table
Unexecuted instantiation: elf64-ppc.c:elf_hash_table
Unexecuted instantiation: elf64-riscv.c:elf_hash_table
Unexecuted instantiation: elf64-s390.c:elf_hash_table
Unexecuted instantiation: elf64-sparc.c:elf_hash_table
Unexecuted instantiation: elf64-tilegx.c:elf_hash_table
Unexecuted instantiation: elfn32-mips.c:elf_hash_table
Unexecuted instantiation: elfxx-aarch64.c:elf_hash_table
Unexecuted instantiation: elfxx-ia64.c:elf_hash_table
Unexecuted instantiation: elfxx-kvx.c:elf_hash_table
Unexecuted instantiation: elfxx-loongarch.c:elf_hash_table
Unexecuted instantiation: elfxx-mips.c:elf_hash_table
Unexecuted instantiation: elfxx-riscv.c:elf_hash_table
Unexecuted instantiation: elf-attrs.c:elf_hash_table
Unexecuted instantiation: elf-m10200.c:elf_hash_table
Unexecuted instantiation: elf-m10300.c:elf_hash_table
Unexecuted instantiation: elf-solaris2.c:elf_hash_table
Unexecuted instantiation: elf-vxworks.c:elf_hash_table
Unexecuted instantiation: elf32-am33lin.c:elf_hash_table
Unexecuted instantiation: elf32-arc.c:elf_hash_table
Unexecuted instantiation: elf32-arm.c:elf_hash_table
Unexecuted instantiation: elf32-avr.c:elf_hash_table
Unexecuted instantiation: elf32-bfin.c:elf_hash_table
Unexecuted instantiation: elf32-cr16.c:elf_hash_table
Unexecuted instantiation: elf32-cris.c:elf_hash_table
Unexecuted instantiation: elf32-crx.c:elf_hash_table
Unexecuted instantiation: elf32-csky.c:elf_hash_table
Unexecuted instantiation: elf32-d10v.c:elf_hash_table
Unexecuted instantiation: elf32-d30v.c:elf_hash_table
Unexecuted instantiation: elf32-dlx.c:elf_hash_table
Unexecuted instantiation: elf32-epiphany.c:elf_hash_table
Unexecuted instantiation: elf32-fr30.c:elf_hash_table
Unexecuted instantiation: elf32-frv.c:elf_hash_table
Unexecuted instantiation: elf32-ft32.c:elf_hash_table
Unexecuted instantiation: elf32-h8300.c:elf_hash_table
Unexecuted instantiation: elf32-hppa.c:elf_hash_table
Unexecuted instantiation: elf32-ip2k.c:elf_hash_table
Unexecuted instantiation: elf32-iq2000.c:elf_hash_table
Unexecuted instantiation: elf32-lm32.c:elf_hash_table
Unexecuted instantiation: elf32-m32c.c:elf_hash_table
Unexecuted instantiation: elf32-m32r.c:elf_hash_table
Unexecuted instantiation: elf32-m68hc11.c:elf_hash_table
Unexecuted instantiation: elf32-m68hc12.c:elf_hash_table
Unexecuted instantiation: elf32-m68hc1x.c:elf_hash_table
Unexecuted instantiation: elf32-m68k.c:elf_hash_table
Unexecuted instantiation: elf32-mcore.c:elf_hash_table
Unexecuted instantiation: elf32-mep.c:elf_hash_table
Unexecuted instantiation: elf32-metag.c:elf_hash_table
Unexecuted instantiation: elf32-microblaze.c:elf_hash_table
Unexecuted instantiation: elf32-moxie.c:elf_hash_table
Unexecuted instantiation: elf32-msp430.c:elf_hash_table
Unexecuted instantiation: elf32-mt.c:elf_hash_table
Unexecuted instantiation: elf32-nds32.c:elf_hash_table
Unexecuted instantiation: elf32-or1k.c:elf_hash_table
Unexecuted instantiation: elf32-pj.c:elf_hash_table
Unexecuted instantiation: elf32-ppc.c:elf_hash_table
Unexecuted instantiation: elf32-pru.c:elf_hash_table
Unexecuted instantiation: elf32-rl78.c:elf_hash_table
Unexecuted instantiation: elf32-rx.c:elf_hash_table
Unexecuted instantiation: elf32-s12z.c:elf_hash_table
Unexecuted instantiation: elf32-s390.c:elf_hash_table
Unexecuted instantiation: elf32-sh.c:elf_hash_table
Unexecuted instantiation: elf32-sparc.c:elf_hash_table
Unexecuted instantiation: elf32-spu.c:elf_hash_table
Unexecuted instantiation: elf32-tic6x.c:elf_hash_table
Unexecuted instantiation: elf32-tilegx.c:elf_hash_table
Unexecuted instantiation: elf32-tilepro.c:elf_hash_table
Unexecuted instantiation: elf32-v850.c:elf_hash_table
Unexecuted instantiation: elf32-vax.c:elf_hash_table
Unexecuted instantiation: elf32-visium.c:elf_hash_table
Unexecuted instantiation: elf32-wasm32.c:elf_hash_table
Unexecuted instantiation: elf32-xgate.c:elf_hash_table
Unexecuted instantiation: elf32-xstormy16.c:elf_hash_table
Unexecuted instantiation: elf32-xtensa.c:elf_hash_table
Unexecuted instantiation: elf32-z80.c:elf_hash_table
Unexecuted instantiation: elfxx-sparc.c:elf_hash_table
Unexecuted instantiation: elfxx-tilegx.c:elf_hash_table
Unexecuted instantiation: cpu-nds32.c:elf_hash_table
Unexecuted instantiation: compress.c:elf_hash_table
Unexecuted instantiation: merge.c:elf_hash_table
Unexecuted instantiation: fuzz_objdump.c:elf_hash_table
Unexecuted instantiation: arc-dis.c:elf_hash_table
Unexecuted instantiation: arm-dis.c:elf_hash_table
Unexecuted instantiation: csky-dis.c:elf_hash_table
Unexecuted instantiation: kvx-dis.c:elf_hash_table
Unexecuted instantiation: m32c-dis.c:elf_hash_table
Unexecuted instantiation: mep-dis.c:elf_hash_table
Unexecuted instantiation: ppc-dis.c:elf_hash_table
Unexecuted instantiation: pru-dis.c:elf_hash_table
Unexecuted instantiation: rl78-dis.c:elf_hash_table
Unexecuted instantiation: score-dis.c:elf_hash_table
Unexecuted instantiation: score7-dis.c:elf_hash_table
Unexecuted instantiation: tilepro-dis.c:elf_hash_table
Unexecuted instantiation: wasm32-dis.c:elf_hash_table
Unexecuted instantiation: aarch64-dis.c:elf_hash_table
Unexecuted instantiation: bpf-dis.c:elf_hash_table
Unexecuted instantiation: mips-dis.c:elf_hash_table
Unexecuted instantiation: nfp-dis.c:elf_hash_table
Unexecuted instantiation: riscv-dis.c:elf_hash_table
Unexecuted instantiation: tilegx-dis.c:elf_hash_table
Unexecuted instantiation: ctf-serialize.c:elf_hash_table
Unexecuted instantiation: ctf-open-bfd.c:elf_hash_table
Unexecuted instantiation: fuzz_addr2line.c:elf_hash_table
Unexecuted instantiation: fuzz_as.c:elf_hash_table
Unexecuted instantiation: codeview.c:elf_hash_table
Unexecuted instantiation: cond.c:elf_hash_table
Unexecuted instantiation: depend.c:elf_hash_table
Unexecuted instantiation: dw2gencfi.c:elf_hash_table
Unexecuted instantiation: dwarf2dbg.c:elf_hash_table
Unexecuted instantiation: ehopt.c:elf_hash_table
Unexecuted instantiation: expr.c:elf_hash_table
Unexecuted instantiation: frags.c:elf_hash_table
Unexecuted instantiation: gen-sframe.c:elf_hash_table
Unexecuted instantiation: input-scrub.c:elf_hash_table
Unexecuted instantiation: listing.c:elf_hash_table
Unexecuted instantiation: macro.c:elf_hash_table
Unexecuted instantiation: messages.c:elf_hash_table
Unexecuted instantiation: output-file.c:elf_hash_table
Unexecuted instantiation: read.c:elf_hash_table
Unexecuted instantiation: remap.c:elf_hash_table
Unexecuted instantiation: sb.c:elf_hash_table
Unexecuted instantiation: scfidw2gen.c:elf_hash_table
Unexecuted instantiation: stabs.c:elf_hash_table
Unexecuted instantiation: subsegs.c:elf_hash_table
Unexecuted instantiation: symbols.c:elf_hash_table
Unexecuted instantiation: write.c:elf_hash_table
Unexecuted instantiation: app.c:elf_hash_table
Unexecuted instantiation: atof-generic.c:elf_hash_table
Unexecuted instantiation: ecoff.c:elf_hash_table
Unexecuted instantiation: flonum-copy.c:elf_hash_table
Unexecuted instantiation: ginsn.c:elf_hash_table
Unexecuted instantiation: hash.c:elf_hash_table
Unexecuted instantiation: input-file.c:elf_hash_table
Unexecuted instantiation: scfi.c:elf_hash_table
Unexecuted instantiation: sframe-opt.c:elf_hash_table
Unexecuted instantiation: tc-i386.c:elf_hash_table
Unexecuted instantiation: obj-elf.c:elf_hash_table
Unexecuted instantiation: atof-ieee.c:elf_hash_table
Unexecuted instantiation: fuzz_dwarf.c:elf_hash_table
Unexecuted instantiation: fuzz_objcopy.c:elf_hash_table
829
830
static inline enum elf_target_id
831
elf_hash_table_id (const struct elf_link_hash_table *table)
832
0
{
833
0
  return table->hash_table_id;
834
0
}
Unexecuted instantiation: fuzz_nm.c:elf_hash_table_id
Unexecuted instantiation: bfd.c:elf_hash_table_id
Unexecuted instantiation: format.c:elf_hash_table_id
Unexecuted instantiation: libbfd.c:elf_hash_table_id
Unexecuted instantiation: opncls.c:elf_hash_table_id
Unexecuted instantiation: elf64-x86-64.c:elf_hash_table_id
Unexecuted instantiation: elfxx-x86.c:elf_hash_table_id
Unexecuted instantiation: elf-ifunc.c:elf_hash_table_id
Unexecuted instantiation: elf64.c:elf_hash_table_id
Unexecuted instantiation: elf-sframe.c:elf_hash_table_id
Unexecuted instantiation: elf.c:elf_hash_table_id
Unexecuted instantiation: elflink.c:elf_hash_table_id
Unexecuted instantiation: elf-strtab.c:elf_hash_table_id
Unexecuted instantiation: elf-eh-frame.c:elf_hash_table_id
Unexecuted instantiation: elf-properties.c:elf_hash_table_id
Unexecuted instantiation: dwarf1.c:elf_hash_table_id
Unexecuted instantiation: dwarf2.c:elf_hash_table_id
Unexecuted instantiation: elf32-i386.c:elf_hash_table_id
Unexecuted instantiation: elf32.c:elf_hash_table_id
Unexecuted instantiation: cofflink.c:elf_hash_table_id
Unexecuted instantiation: coffgen.c:elf_hash_table_id
Unexecuted instantiation: elf64-gen.c:elf_hash_table_id
Unexecuted instantiation: elf32-gen.c:elf_hash_table_id
Unexecuted instantiation: elf32-aarch64.c:elf_hash_table_id
Unexecuted instantiation: elf32-ia64.c:elf_hash_table_id
Unexecuted instantiation: elf32-kvx.c:elf_hash_table_id
Unexecuted instantiation: elf32-loongarch.c:elf_hash_table_id
Unexecuted instantiation: elf32-mips.c:elf_hash_table_id
Unexecuted instantiation: elf32-riscv.c:elf_hash_table_id
Unexecuted instantiation: elf32-score.c:elf_hash_table_id
Unexecuted instantiation: elf32-score7.c:elf_hash_table_id
Unexecuted instantiation: elf64-aarch64.c:elf_hash_table_id
Unexecuted instantiation: elf64-alpha.c:elf_hash_table_id
Unexecuted instantiation: elf64-amdgcn.c:elf_hash_table_id
Unexecuted instantiation: elf64-bpf.c:elf_hash_table_id
Unexecuted instantiation: elf64-hppa.c:elf_hash_table_id
Unexecuted instantiation: elf64-ia64-vms.c:elf_hash_table_id
Unexecuted instantiation: elf64-ia64.c:elf_hash_table_id
Unexecuted instantiation: elf64-kvx.c:elf_hash_table_id
Unexecuted instantiation: elf64-loongarch.c:elf_hash_table_id
Unexecuted instantiation: elf64-mips.c:elf_hash_table_id
Unexecuted instantiation: elf64-mmix.c:elf_hash_table_id
Unexecuted instantiation: elf64-nfp.c:elf_hash_table_id
Unexecuted instantiation: elf64-ppc.c:elf_hash_table_id
Unexecuted instantiation: elf64-riscv.c:elf_hash_table_id
Unexecuted instantiation: elf64-s390.c:elf_hash_table_id
Unexecuted instantiation: elf64-sparc.c:elf_hash_table_id
Unexecuted instantiation: elf64-tilegx.c:elf_hash_table_id
Unexecuted instantiation: elfn32-mips.c:elf_hash_table_id
Unexecuted instantiation: elfxx-aarch64.c:elf_hash_table_id
Unexecuted instantiation: elfxx-ia64.c:elf_hash_table_id
Unexecuted instantiation: elfxx-kvx.c:elf_hash_table_id
Unexecuted instantiation: elfxx-loongarch.c:elf_hash_table_id
Unexecuted instantiation: elfxx-mips.c:elf_hash_table_id
Unexecuted instantiation: elfxx-riscv.c:elf_hash_table_id
Unexecuted instantiation: elf-attrs.c:elf_hash_table_id
Unexecuted instantiation: elf-m10200.c:elf_hash_table_id
Unexecuted instantiation: elf-m10300.c:elf_hash_table_id
Unexecuted instantiation: elf-solaris2.c:elf_hash_table_id
Unexecuted instantiation: elf-vxworks.c:elf_hash_table_id
Unexecuted instantiation: elf32-am33lin.c:elf_hash_table_id
Unexecuted instantiation: elf32-arc.c:elf_hash_table_id
Unexecuted instantiation: elf32-arm.c:elf_hash_table_id
Unexecuted instantiation: elf32-avr.c:elf_hash_table_id
Unexecuted instantiation: elf32-bfin.c:elf_hash_table_id
Unexecuted instantiation: elf32-cr16.c:elf_hash_table_id
Unexecuted instantiation: elf32-cris.c:elf_hash_table_id
Unexecuted instantiation: elf32-crx.c:elf_hash_table_id
Unexecuted instantiation: elf32-csky.c:elf_hash_table_id
Unexecuted instantiation: elf32-d10v.c:elf_hash_table_id
Unexecuted instantiation: elf32-d30v.c:elf_hash_table_id
Unexecuted instantiation: elf32-dlx.c:elf_hash_table_id
Unexecuted instantiation: elf32-epiphany.c:elf_hash_table_id
Unexecuted instantiation: elf32-fr30.c:elf_hash_table_id
Unexecuted instantiation: elf32-frv.c:elf_hash_table_id
Unexecuted instantiation: elf32-ft32.c:elf_hash_table_id
Unexecuted instantiation: elf32-h8300.c:elf_hash_table_id
Unexecuted instantiation: elf32-hppa.c:elf_hash_table_id
Unexecuted instantiation: elf32-ip2k.c:elf_hash_table_id
Unexecuted instantiation: elf32-iq2000.c:elf_hash_table_id
Unexecuted instantiation: elf32-lm32.c:elf_hash_table_id
Unexecuted instantiation: elf32-m32c.c:elf_hash_table_id
Unexecuted instantiation: elf32-m32r.c:elf_hash_table_id
Unexecuted instantiation: elf32-m68hc11.c:elf_hash_table_id
Unexecuted instantiation: elf32-m68hc12.c:elf_hash_table_id
Unexecuted instantiation: elf32-m68hc1x.c:elf_hash_table_id
Unexecuted instantiation: elf32-m68k.c:elf_hash_table_id
Unexecuted instantiation: elf32-mcore.c:elf_hash_table_id
Unexecuted instantiation: elf32-mep.c:elf_hash_table_id
Unexecuted instantiation: elf32-metag.c:elf_hash_table_id
Unexecuted instantiation: elf32-microblaze.c:elf_hash_table_id
Unexecuted instantiation: elf32-moxie.c:elf_hash_table_id
Unexecuted instantiation: elf32-msp430.c:elf_hash_table_id
Unexecuted instantiation: elf32-mt.c:elf_hash_table_id
Unexecuted instantiation: elf32-nds32.c:elf_hash_table_id
Unexecuted instantiation: elf32-or1k.c:elf_hash_table_id
Unexecuted instantiation: elf32-pj.c:elf_hash_table_id
Unexecuted instantiation: elf32-ppc.c:elf_hash_table_id
Unexecuted instantiation: elf32-pru.c:elf_hash_table_id
Unexecuted instantiation: elf32-rl78.c:elf_hash_table_id
Unexecuted instantiation: elf32-rx.c:elf_hash_table_id
Unexecuted instantiation: elf32-s12z.c:elf_hash_table_id
Unexecuted instantiation: elf32-s390.c:elf_hash_table_id
Unexecuted instantiation: elf32-sh.c:elf_hash_table_id
Unexecuted instantiation: elf32-sparc.c:elf_hash_table_id
Unexecuted instantiation: elf32-spu.c:elf_hash_table_id
Unexecuted instantiation: elf32-tic6x.c:elf_hash_table_id
Unexecuted instantiation: elf32-tilegx.c:elf_hash_table_id
Unexecuted instantiation: elf32-tilepro.c:elf_hash_table_id
Unexecuted instantiation: elf32-v850.c:elf_hash_table_id
Unexecuted instantiation: elf32-vax.c:elf_hash_table_id
Unexecuted instantiation: elf32-visium.c:elf_hash_table_id
Unexecuted instantiation: elf32-wasm32.c:elf_hash_table_id
Unexecuted instantiation: elf32-xgate.c:elf_hash_table_id
Unexecuted instantiation: elf32-xstormy16.c:elf_hash_table_id
Unexecuted instantiation: elf32-xtensa.c:elf_hash_table_id
Unexecuted instantiation: elf32-z80.c:elf_hash_table_id
Unexecuted instantiation: elfxx-sparc.c:elf_hash_table_id
Unexecuted instantiation: elfxx-tilegx.c:elf_hash_table_id
Unexecuted instantiation: cpu-nds32.c:elf_hash_table_id
Unexecuted instantiation: compress.c:elf_hash_table_id
Unexecuted instantiation: merge.c:elf_hash_table_id
Unexecuted instantiation: fuzz_objdump.c:elf_hash_table_id
Unexecuted instantiation: arc-dis.c:elf_hash_table_id
Unexecuted instantiation: arm-dis.c:elf_hash_table_id
Unexecuted instantiation: csky-dis.c:elf_hash_table_id
Unexecuted instantiation: kvx-dis.c:elf_hash_table_id
Unexecuted instantiation: m32c-dis.c:elf_hash_table_id
Unexecuted instantiation: mep-dis.c:elf_hash_table_id
Unexecuted instantiation: ppc-dis.c:elf_hash_table_id
Unexecuted instantiation: pru-dis.c:elf_hash_table_id
Unexecuted instantiation: rl78-dis.c:elf_hash_table_id
Unexecuted instantiation: score-dis.c:elf_hash_table_id
Unexecuted instantiation: score7-dis.c:elf_hash_table_id
Unexecuted instantiation: tilepro-dis.c:elf_hash_table_id
Unexecuted instantiation: wasm32-dis.c:elf_hash_table_id
Unexecuted instantiation: aarch64-dis.c:elf_hash_table_id
Unexecuted instantiation: bpf-dis.c:elf_hash_table_id
Unexecuted instantiation: mips-dis.c:elf_hash_table_id
Unexecuted instantiation: nfp-dis.c:elf_hash_table_id
Unexecuted instantiation: riscv-dis.c:elf_hash_table_id
Unexecuted instantiation: tilegx-dis.c:elf_hash_table_id
Unexecuted instantiation: ctf-serialize.c:elf_hash_table_id
Unexecuted instantiation: ctf-open-bfd.c:elf_hash_table_id
Unexecuted instantiation: fuzz_addr2line.c:elf_hash_table_id
Unexecuted instantiation: fuzz_as.c:elf_hash_table_id
Unexecuted instantiation: codeview.c:elf_hash_table_id
Unexecuted instantiation: cond.c:elf_hash_table_id
Unexecuted instantiation: depend.c:elf_hash_table_id
Unexecuted instantiation: dw2gencfi.c:elf_hash_table_id
Unexecuted instantiation: dwarf2dbg.c:elf_hash_table_id
Unexecuted instantiation: ehopt.c:elf_hash_table_id
Unexecuted instantiation: expr.c:elf_hash_table_id
Unexecuted instantiation: frags.c:elf_hash_table_id
Unexecuted instantiation: gen-sframe.c:elf_hash_table_id
Unexecuted instantiation: input-scrub.c:elf_hash_table_id
Unexecuted instantiation: listing.c:elf_hash_table_id
Unexecuted instantiation: macro.c:elf_hash_table_id
Unexecuted instantiation: messages.c:elf_hash_table_id
Unexecuted instantiation: output-file.c:elf_hash_table_id
Unexecuted instantiation: read.c:elf_hash_table_id
Unexecuted instantiation: remap.c:elf_hash_table_id
Unexecuted instantiation: sb.c:elf_hash_table_id
Unexecuted instantiation: scfidw2gen.c:elf_hash_table_id
Unexecuted instantiation: stabs.c:elf_hash_table_id
Unexecuted instantiation: subsegs.c:elf_hash_table_id
Unexecuted instantiation: symbols.c:elf_hash_table_id
Unexecuted instantiation: write.c:elf_hash_table_id
Unexecuted instantiation: app.c:elf_hash_table_id
Unexecuted instantiation: atof-generic.c:elf_hash_table_id
Unexecuted instantiation: ecoff.c:elf_hash_table_id
Unexecuted instantiation: flonum-copy.c:elf_hash_table_id
Unexecuted instantiation: ginsn.c:elf_hash_table_id
Unexecuted instantiation: hash.c:elf_hash_table_id
Unexecuted instantiation: input-file.c:elf_hash_table_id
Unexecuted instantiation: scfi.c:elf_hash_table_id
Unexecuted instantiation: sframe-opt.c:elf_hash_table_id
Unexecuted instantiation: tc-i386.c:elf_hash_table_id
Unexecuted instantiation: obj-elf.c:elf_hash_table_id
Unexecuted instantiation: atof-ieee.c:elf_hash_table_id
Unexecuted instantiation: fuzz_dwarf.c:elf_hash_table_id
Unexecuted instantiation: fuzz_objcopy.c:elf_hash_table_id
835

836
/* Constant information held for an ELF backend.  */
837
838
struct elf_size_info {
839
  unsigned char sizeof_ehdr, sizeof_phdr, sizeof_shdr;
840
  unsigned char sizeof_rel, sizeof_rela, sizeof_sym, sizeof_dyn, sizeof_note;
841
842
  /* The size of entries in the .hash section.  */
843
  unsigned char sizeof_hash_entry;
844
845
  /* The number of internal relocations to allocate per external
846
     relocation entry.  */
847
  unsigned char int_rels_per_ext_rel;
848
  /* We use some fixed size arrays.  This should be large enough to
849
     handle all back-ends.  */
850
0
#define MAX_INT_RELS_PER_EXT_REL 3
851
852
  unsigned char arch_size, log_file_align;
853
  unsigned char elfclass, ev_current;
854
  int (*write_out_phdrs)
855
    (bfd *, const Elf_Internal_Phdr *, unsigned int);
856
  bool (*write_shdrs_and_ehdr) (bfd *);
857
  bool (*checksum_contents)
858
    (bfd * , void (*) (const void *, size_t, void *), void *);
859
  void (*write_relocs)
860
    (bfd *, asection *, void *);
861
  bool (*swap_symbol_in)
862
    (bfd *, const void *, const void *, Elf_Internal_Sym *);
863
  void (*swap_symbol_out)
864
    (bfd *, const Elf_Internal_Sym *, void *, void *);
865
  bool (*slurp_reloc_table)
866
    (bfd *, asection *, asymbol **, bool);
867
  long (*slurp_symbol_table)
868
    (bfd *, asymbol **, bool);
869
  void (*swap_dyn_in)
870
    (bfd *, const void *, Elf_Internal_Dyn *);
871
  void (*swap_dyn_out)
872
    (bfd *, const Elf_Internal_Dyn *, void *);
873
874
  /* This function is called to swap in a REL relocation.  If an
875
     external relocation corresponds to more than one internal
876
     relocation, then all relocations are swapped in at once.  */
877
  void (*swap_reloc_in)
878
    (bfd *, const bfd_byte *, Elf_Internal_Rela *);
879
880
  /* This function is called to swap out a REL relocation.  */
881
  void (*swap_reloc_out)
882
    (bfd *, const Elf_Internal_Rela *, bfd_byte *);
883
884
  /* This function is called to swap in a RELA relocation.  If an
885
     external relocation corresponds to more than one internal
886
     relocation, then all relocations are swapped in at once.  */
887
  void (*swap_reloca_in)
888
    (bfd *, const bfd_byte *, Elf_Internal_Rela *);
889
890
  /* This function is called to swap out a RELA relocation.  */
891
  void (*swap_reloca_out)
892
    (bfd *, const Elf_Internal_Rela *, bfd_byte *);
893
};
894
895
#define elf_symbol_from(S) \
896
77.0k
  ((((S)->flags & BSF_SYNTHETIC) == 0        \
897
77.0k
    && (S)->the_bfd != NULL          \
898
77.0k
    && (S)->the_bfd->xvec->flavour == bfd_target_elf_flavour  \
899
77.0k
    && (S)->the_bfd->tdata.elf_obj_data != 0)     \
900
77.0k
   ? (elf_symbol_type *) (S)          \
901
77.0k
   : 0)
902
903
enum elf_reloc_type_class {
904
  reloc_class_normal,
905
  reloc_class_relative,
906
  reloc_class_copy,
907
  reloc_class_ifunc,
908
  reloc_class_plt
909
};
910
911
struct elf_reloc_cookie
912
{
913
  bfd *abfd;
914
  Elf_Internal_Rela *rels, *rel, *relend;
915
  /* Number of symbols in .symtab.  */
916
  unsigned int num_sym;
917
  /* Number of symbols that may be local syms (all when bad_symtab).  */
918
  unsigned int locsymcount;
919
  /* Symbol index of first possible global sym (0 when bad_symtab).  */
920
  unsigned int extsymoff;
921
  int r_sym_shift;
922
};
923
924
/* The level of IRIX compatibility we're striving for.  */
925
926
typedef enum {
927
  ict_none,
928
  ict_irix5,
929
  ict_irix6
930
} irix_compat_t;
931
932
/* Mapping of ELF section names and types.  */
933
struct bfd_elf_special_section
934
{
935
  const char *prefix;
936
  unsigned int prefix_length;
937
  /* 0 means name must match PREFIX exactly.
938
     -1 means name must start with PREFIX followed by an arbitrary string.
939
     -2 means name must match PREFIX exactly or consist of PREFIX followed
940
     by a dot then anything.
941
     > 0 means name must start with the first PREFIX_LENGTH chars of
942
     PREFIX and finish with the last SUFFIX_LENGTH chars of PREFIX.  */
943
  signed int suffix_length;
944
  unsigned int type;
945
  bfd_vma attr;
946
};
947
948
enum action_discarded
949
  {
950
    COMPLAIN = 1,
951
    PRETEND = 2
952
  };
953
954
typedef asection * (*elf_gc_mark_hook_fn)
955
  (asection *, struct bfd_link_info *, struct elf_reloc_cookie *,
956
   struct elf_link_hash_entry *, unsigned int);
957
958
enum elf_property_kind
959
 {
960
    /* A new property.  */
961
    property_unknown = 0,
962
    /* A property ignored by backend.  */
963
    property_ignored,
964
    /* A corrupt property reported by backend.  */
965
    property_corrupt,
966
    /* A property should be removed due to property merge.  */
967
    property_remove,
968
    /* A property which is a number.  */
969
    property_number
970
 };
971
972
typedef struct elf_property
973
{
974
  unsigned int pr_type;
975
  unsigned int pr_datasz;
976
  union
977
    {
978
      /* For property_number, this is a number.  */
979
      bfd_vma number;
980
      /* Add a new one if elf_property_kind is updated.  */
981
    } u;
982
  enum elf_property_kind pr_kind;
983
} elf_property;
984
985
typedef struct elf_property_list
986
{
987
  struct elf_property_list *next;
988
  struct elf_property property;
989
} elf_property_list;
990
991
/* This structure is used to pass information to
992
   elf_backend_add_glibc_version_dependency.  */
993
994
struct elf_find_verdep_info
995
{
996
  /* General link information.  */
997
  struct bfd_link_info *info;
998
  /* The number of dependencies.  */
999
  unsigned int vers;
1000
  /* Whether we had a failure.  */
1001
  bool failed;
1002
};
1003
1004
struct bfd_elf_section_reloc_data;
1005
1006
struct elf_backend_data
1007
{
1008
  /* The architecture for this backend.  */
1009
  ENUM_BITFIELD (bfd_architecture) arch : 8;
1010
1011
  /* EI_OSABI.  */
1012
  unsigned elf_osabi : 8;
1013
1014
  /* The ELF machine code (EM_xxxx) for this backend.  */
1015
  unsigned elf_machine_code : 16;
1016
1017
  /* An identifier used to distinguish different target specific
1018
     extensions to elf_obj_tdata and elf_link_hash_table structures.  */
1019
  ENUM_BITFIELD (elf_target_id) target_id : 8;
1020
1021
  /* Target OS.  */
1022
  ENUM_BITFIELD (elf_target_os) target_os : 2;
1023
1024
  /* True if object files must have exactly matching osabi.  False if
1025
     other osabi values are allowed.  */
1026
  unsigned osabi_exact : 1;
1027
1028
  /* The maximum page size for this backend.  */
1029
  unsigned maxpagesize;
1030
1031
  /* The minimum page size for this backend.  An input object will not be
1032
     considered page aligned unless its sections are correctly aligned for
1033
     pages at least this large.  May be smaller than maxpagesize.  */
1034
  unsigned minpagesize;
1035
1036
  /* The common page size for this backend.  */
1037
  unsigned commonpagesize;
1038
1039
  /* The p_align value for this backend.  If it is set, p_align of
1040
      PT_LOAD alignment will be to p_align by default.  */
1041
  unsigned p_align;
1042
1043
  /* The BFD flags applied to sections created for dynamic linking.  */
1044
  flagword dynamic_sec_flags;
1045
1046
  /* Architecture-specific data for this backend.
1047
     This is actually a pointer to some type like struct elf_ARCH_data.  */
1048
  const void *arch_data;
1049
1050
  /* A function to translate an ELF RELA relocation to a BFD arelent
1051
     structure.  Returns TRUE upon success, FALSE otherwise.  */
1052
  bool (*elf_info_to_howto)
1053
    (bfd *, arelent *, Elf_Internal_Rela *);
1054
1055
  /* A function to translate an ELF REL relocation to a BFD arelent
1056
     structure.  Returns TRUE upon success, FALSE otherwise.  */
1057
  bool (*elf_info_to_howto_rel)
1058
    (bfd *, arelent *, Elf_Internal_Rela *);
1059
1060
  /* A function to determine whether a symbol is global when
1061
     partitioning the symbol table into local and global symbols.
1062
     This should be NULL for most targets, in which case the correct
1063
     thing will be done.  MIPS ELF, at least on the Irix 5, has
1064
     special requirements.  */
1065
  bool (*elf_backend_sym_is_global)
1066
    (bfd *, asymbol *);
1067
1068
  /* The remaining functions are hooks which are called only if they
1069
     are not NULL.  */
1070
1071
  /* A function to permit a backend specific check on whether a
1072
     particular BFD format is relevant for an object file, and to
1073
     permit the backend to set any global information it wishes.  When
1074
     this is called elf_elfheader is set, but anything else should be
1075
     used with caution.  If this returns FALSE, the check_format
1076
     routine will return a bfd_error_wrong_format error.  */
1077
  bool (*elf_backend_object_p)
1078
    (bfd *);
1079
1080
  /* A function to do additional symbol processing when reading the
1081
     ELF symbol table.  This is where any processor-specific special
1082
     section indices are handled.  */
1083
  void (*elf_backend_symbol_processing)
1084
    (bfd *, asymbol *);
1085
1086
  /* A function to do additional symbol processing after reading the
1087
     entire ELF symbol table.  */
1088
  bool (*elf_backend_symbol_table_processing)
1089
    (bfd *, elf_symbol_type *, unsigned int);
1090
1091
  /* A function to set the type of the info field.  Processor-specific
1092
     types should be handled here.  */
1093
  int (*elf_backend_get_symbol_type)
1094
    (Elf_Internal_Sym *, int);
1095
1096
  /* A function to return the linker hash table entry of a symbol that
1097
     might be satisfied by an archive symbol.  */
1098
  struct bfd_link_hash_entry * (*elf_backend_archive_symbol_lookup)
1099
    (bfd *, struct bfd_link_info *, const char *);
1100
1101
  /* Return true if local section symbols should have a non-null st_name.
1102
     NULL implies false.  */
1103
  bool (*elf_backend_name_local_section_symbols)
1104
    (bfd *);
1105
1106
  /* A function to do additional processing on the ELF section header
1107
     just before writing it out.  This is used to set the flags and
1108
     type fields for some sections, or to actually write out data for
1109
     unusual sections.  */
1110
  bool (*elf_backend_section_processing)
1111
    (bfd *, Elf_Internal_Shdr *);
1112
1113
  /* A function to handle unusual section types when creating BFD
1114
     sections from ELF sections.  */
1115
  bool (*elf_backend_section_from_shdr)
1116
    (bfd *, Elf_Internal_Shdr *, const char *, int);
1117
1118
  /* A function to convert machine dependent ELF section header flags to
1119
     BFD internal section header flags.  */
1120
  bool (*elf_backend_section_flags)
1121
    (const Elf_Internal_Shdr *);
1122
1123
  /* A function that returns a struct containing ELF section flags and
1124
     type for the given BFD section.   */
1125
  const struct bfd_elf_special_section * (*get_sec_type_attr)
1126
    (bfd *, asection *);
1127
1128
  /* A function to handle unusual program segment types when creating BFD
1129
     sections from ELF program segments.  */
1130
  bool (*elf_backend_section_from_phdr)
1131
    (bfd *, Elf_Internal_Phdr *, int, const char *);
1132
1133
  /* A function to set up the ELF section header for a BFD section in
1134
     preparation for writing it out.  This is where the flags and type
1135
     fields are set for unusual sections.  */
1136
  bool (*elf_backend_fake_sections)
1137
    (bfd *, Elf_Internal_Shdr *, asection *);
1138
1139
  /* A function to get the ELF section index for a BFD section.  If
1140
     this returns TRUE, the section was found.  If it is a normal ELF
1141
     section, *RETVAL should be left unchanged.  If it is not a normal
1142
     ELF section *RETVAL should be set to the SHN_xxxx index.  */
1143
  bool (*elf_backend_section_from_bfd_section)
1144
    (bfd *, asection *, int *retval);
1145
1146
  /* If this field is not NULL, it is called by the add_symbols phase
1147
     of a link just before adding a symbol to the global linker hash
1148
     table.  It may modify any of the fields as it wishes.  If *NAME
1149
     is set to NULL, the symbol will be skipped rather than being
1150
     added to the hash table.  This function is responsible for
1151
     handling all processor dependent symbol bindings and section
1152
     indices, and must set at least *FLAGS and *SEC for each processor
1153
     dependent case; failure to do so will cause a link error.  */
1154
  bool (*elf_add_symbol_hook)
1155
    (bfd *abfd, struct bfd_link_info *info, Elf_Internal_Sym *,
1156
     const char **name, flagword *flags, asection **sec, bfd_vma *value);
1157
1158
  /* If this field is not NULL, it is called by the elf_link_output_sym
1159
     phase of a link for each symbol which will appear in the object file.
1160
     On error, this function returns 0.  1 is returned when the symbol
1161
     should be output, 2 is returned when the symbol should be discarded.  */
1162
  int (*elf_backend_link_output_symbol_hook)
1163
    (struct bfd_link_info *info, const char *, Elf_Internal_Sym *,
1164
     asection *, struct elf_link_hash_entry *);
1165
1166
  /* The CREATE_DYNAMIC_SECTIONS function is called by the ELF backend
1167
     linker the first time it encounters a dynamic object in the link.
1168
     This function must create any sections required for dynamic
1169
     linking.  The ABFD argument is a dynamic object.  The .interp,
1170
     .dynamic, .dynsym, .dynstr, and .hash functions have already been
1171
     created, and this function may modify the section flags if
1172
     desired.  This function will normally create the .got and .plt
1173
     sections, but different backends have different requirements.  */
1174
  bool (*elf_backend_create_dynamic_sections)
1175
    (bfd *abfd, struct bfd_link_info *info);
1176
1177
  /* When creating a shared library, determine whether to omit the
1178
     dynamic symbol for the section.  */
1179
  bool (*elf_backend_omit_section_dynsym)
1180
    (struct bfd_link_info *info, asection *osec);
1181
1182
  /* Return TRUE if relocations of targets are compatible to the extent
1183
     that CHECK_RELOCS will properly process them.  PR 4424.  */
1184
  bool (*relocs_compatible) (const bfd_target *, const bfd_target *);
1185
1186
  /* The CHECK_RELOCS function is called after all input files have been
1187
     opened.  It is called once for each section with relocs of an object
1188
     file.  The function must look through the relocs and do any special
1189
     handling required.  This generally means allocating space in the
1190
     global offset table, and perhaps allocating space for a reloc.  The
1191
     relocs are always passed as Rela structures; if the section
1192
     actually uses Rel structures, the r_addend field will always be
1193
     zero.  */
1194
  bool (*check_relocs)
1195
    (bfd *abfd, struct bfd_link_info *info, asection *o,
1196
     const Elf_Internal_Rela *relocs);
1197
1198
  /* The SIZE_RELATIVE_RELOCS function is called to size relative
1199
     relocations when mappig sections to segments.  */
1200
  bool (*size_relative_relocs)
1201
    (struct bfd_link_info *info, bool *need_layout);
1202
1203
  /* The FINISH_RELATIVE_RELOCS function is called to finish relative
1204
     relocations in bfd_elf_final_link.  */
1205
  bool (*finish_relative_relocs)
1206
    (struct bfd_link_info *info);
1207
1208
  /* The CHECK_DIRECTIVES function is called once per input file by
1209
     the add_symbols phase of the ELF backend linker.  The function
1210
     must inspect the bfd and create any additional symbols according
1211
     to any custom directives in the bfd.  */
1212
  bool (*check_directives)
1213
    (bfd *abfd, struct bfd_link_info *info);
1214
1215
  /* The NOTICE_AS_NEEDED function is called as the linker is about to
1216
     handle an as-needed lib (ACT = notice_as_needed), and after the
1217
     linker has decided to keep the lib (ACT = notice_needed) or when
1218
     the lib is not needed (ACT = notice_not_needed).  */
1219
  bool (*notice_as_needed)
1220
    (bfd *abfd, struct bfd_link_info *info, enum notice_asneeded_action act);
1221
1222
  /* The ADJUST_DYNAMIC_SYMBOL function is called by the ELF backend
1223
     linker for every symbol which is defined by a dynamic object and
1224
     referenced by a regular object.  This is called after all the
1225
     input files have been seen, but before the LATE_SIZE_SECTIONS
1226
     function has been called.  The hash table entry should be
1227
     bfd_link_hash_defined ore bfd_link_hash_defweak, and it should be
1228
     defined in a section from a dynamic object.  Dynamic object
1229
     sections are not included in the final link, and this function is
1230
     responsible for changing the value to something which the rest of
1231
     the link can deal with.  This will normally involve adding an
1232
     entry to the .plt or .got or some such section, and setting the
1233
     symbol to point to that.  */
1234
  bool (*elf_backend_adjust_dynamic_symbol)
1235
    (struct bfd_link_info *info, struct elf_link_hash_entry *h);
1236
1237
  /* The EARLY_SIZE_SECTIONS and LATE_SIZE_SECTIONS functions are
1238
     called by the backend linker after all linker input files have
1239
     been seen and sections have been assigned to output sections, but
1240
     before the section sizes have been set.  Both of these functions
1241
     are called even when no dynamic object is seen by the linker.
1242
     Between them, they must set the sizes of the dynamic sections and
1243
     other backend specific sections, and may fill in their contents.
1244
     Most backends need only use LATE_SIZE_SECTIONS.
1245
     EARLY_SIZE_SECTIONS is called before --export-dynamic makes some
1246
     symbols dynamic and before ADJUST_DYNAMIC_SYMBOL processes
1247
     dynamic symbols, LATE_SIZE_SECTIONS afterwards.  The generic ELF
1248
     linker can handle the .dynsym, .dynstr and .hash sections.
1249
     Besides those, these functions must handle the .interp section
1250
     and any other sections created by CREATE_DYNAMIC_SECTIONS.  */
1251
  bool (*elf_backend_early_size_sections)
1252
    (struct bfd_link_info *info);
1253
  bool (*elf_backend_late_size_sections)
1254
    (struct bfd_link_info *info);
1255
1256
  /* The STRIP_ZERO_SIZED_DYNAMIC_SECTIONS function is called by the
1257
     ELF backend linker to strip zero-sized dynamic sections after
1258
     the section sizes have been set.  */
1259
  bool (*elf_backend_strip_zero_sized_dynamic_sections)
1260
    (struct bfd_link_info *info);
1261
1262
  /* Set TEXT_INDEX_SECTION and DATA_INDEX_SECTION, the output sections
1263
     we keep to use as a base for relocs and symbols.  */
1264
  void (*elf_backend_init_index_section)
1265
    (struct bfd_link_info *info);
1266
1267
  /* The RELOCATE_SECTION function is called by the ELF backend linker
1268
     to handle the relocations for a section.
1269
1270
     The relocs are always passed as Rela structures; if the section
1271
     actually uses Rel structures, the r_addend field will always be
1272
     zero.
1273
1274
     This function is responsible for adjust the section contents as
1275
     necessary, and (if using Rela relocs and generating a
1276
     relocatable output file) adjusting the reloc addend as
1277
     necessary.
1278
1279
     This function does not have to worry about setting the reloc
1280
     address or the reloc symbol index.
1281
1282
     LOCAL_SYMS is a pointer to the swapped in local symbols.
1283
1284
     LOCAL_SECTIONS is an array giving the section in the input file
1285
     corresponding to the st_shndx field of each local symbol.
1286
1287
     The global hash table entry for the global symbols can be found
1288
     via elf_sym_hashes (input_bfd).
1289
1290
     When generating relocatable output, this function must handle
1291
     STB_LOCAL/STT_SECTION symbols specially.  The output symbol is
1292
     going to be the section symbol corresponding to the output
1293
     section, which means that the addend must be adjusted
1294
     accordingly.
1295
1296
     Returns FALSE on error, TRUE on success, 2 if successful and
1297
     relocations should be written for this section.  */
1298
  int (*elf_backend_relocate_section)
1299
    (struct bfd_link_info *info, bfd *input_bfd,
1300
     asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs,
1301
     Elf_Internal_Sym *local_syms, asection **local_sections);
1302
1303
  /* The FINISH_DYNAMIC_SYMBOL function is called by the ELF backend
1304
     linker just before it writes a symbol out to the .dynsym section.
1305
     The processor backend may make any required adjustment to the
1306
     symbol.  It may also take the opportunity to set contents of the
1307
     dynamic sections.  Note that FINISH_DYNAMIC_SYMBOL is called on
1308
     all .dynsym symbols, while ADJUST_DYNAMIC_SYMBOL is only called
1309
     on those symbols which are defined by a dynamic object.  */
1310
  bool (*elf_backend_finish_dynamic_symbol)
1311
    (struct bfd_link_info *info,
1312
     struct elf_link_hash_entry *h, Elf_Internal_Sym *sym);
1313
1314
  /* The FINISH_DYNAMIC_SECTIONS function is called by the ELF backend
1315
     linker just before it writes all the dynamic sections out to the
1316
     output file.  The FINISH_DYNAMIC_SYMBOL will have been called on
1317
     all dynamic symbols.  */
1318
  bool (*elf_backend_finish_dynamic_sections)
1319
    (struct bfd_link_info *info, bfd_byte *);
1320
1321
  /* A function to do any beginning processing needed for the ELF file
1322
     before building the ELF headers and computing file positions.  */
1323
  void (*elf_backend_begin_write_processing)
1324
    (bfd *, struct bfd_link_info *);
1325
1326
  /* A function to do any final processing needed for the ELF file
1327
     before writing it out.  */
1328
  bool (*elf_backend_final_write_processing)
1329
    (bfd *);
1330
1331
  /* This function is called by get_program_header_size.  It should
1332
     return the number of additional program segments which this BFD
1333
     will need.  It should return -1 on error.  */
1334
  int (*elf_backend_additional_program_headers)
1335
    (bfd *, struct bfd_link_info *);
1336
1337
  /* This function is called to modify an existing segment map in a
1338
     backend specific fashion.  */
1339
  bool (*elf_backend_modify_segment_map)
1340
    (bfd *, struct bfd_link_info *);
1341
1342
  /* This function is called to modify program headers just before
1343
     they are written.  */
1344
  bool (*elf_backend_modify_headers)
1345
    (bfd *, struct bfd_link_info *);
1346
1347
  /* This function is called to see if the PHDR header should be
1348
     checked for validity.  */
1349
  bool (*elf_backend_allow_non_load_phdr)
1350
    (bfd *,  const Elf_Internal_Phdr *, unsigned);
1351
1352
  /* This function is called before section garbage collection to
1353
     mark entry symbol sections.  */
1354
  void (*gc_keep)
1355
    (struct bfd_link_info *);
1356
1357
  /* This function is called during section garbage collection to
1358
     mark sections that define global symbols.  */
1359
  bool (*gc_mark_dynamic_ref)
1360
    (struct elf_link_hash_entry *, void *);
1361
1362
  /* This function is called during section gc to discover the section a
1363
     particular relocation refers to.  */
1364
  elf_gc_mark_hook_fn gc_mark_hook;
1365
1366
  /* This function, if defined, is called after the first gc marking pass
1367
     to allow the backend to mark additional sections.  */
1368
  bool (*gc_mark_extra_sections)
1369
    (struct bfd_link_info *, elf_gc_mark_hook_fn);
1370
1371
  /* This function is called to initialise ELF file header info.
1372
     Customised versions can modify things like the OS and ABI version.  */
1373
  bool (*elf_backend_init_file_header)
1374
    (bfd *, struct bfd_link_info *);
1375
1376
  /* This function, if defined, prints a symbol to file and returns the
1377
     name of the symbol to be printed.  It should return NULL to fall
1378
     back to default symbol printing.  */
1379
  const char *(*elf_backend_print_symbol_all)
1380
    (bfd *, void *, asymbol *);
1381
1382
  /* This function, if defined, is called after all local symbols and
1383
     global symbols converted to locals are emitted into the symtab
1384
     section.  It allows the backend to emit special local symbols
1385
     not handled in the hash table.  */
1386
  bool (*elf_backend_output_arch_local_syms)
1387
    (struct bfd_link_info *, void *,
1388
     int (*) (void *, const char *, Elf_Internal_Sym *, asection *,
1389
        struct elf_link_hash_entry *));
1390
1391
  /* This function, if defined, is called after all symbols are emitted
1392
     into the symtab section.  It allows the backend to emit special
1393
     global symbols not handled in the hash table.  */
1394
  bool (*elf_backend_output_arch_syms)
1395
    (struct bfd_link_info *, void *,
1396
     int (*) (void *, const char *, Elf_Internal_Sym *, asection *,
1397
        struct elf_link_hash_entry *));
1398
1399
  /* Filter what symbols of the output file to include in the import
1400
     library if one is created.  */
1401
  size_t (*elf_backend_filter_implib_symbols)
1402
    (struct bfd_link_info *, asymbol **, size_t);
1403
1404
  /* Copy any information related to dynamic linking from a pre-existing
1405
     symbol to a newly created symbol.  Also called to copy flags and
1406
     other back-end info to a weakdef, in which case the symbol is not
1407
     newly created and plt/got refcounts and dynamic indices should not
1408
     be copied.  */
1409
  void (*elf_backend_copy_indirect_symbol)
1410
    (struct bfd_link_info *, struct elf_link_hash_entry *,
1411
     struct elf_link_hash_entry *);
1412
1413
  /* Modify any information related to dynamic linking such that the
1414
     symbol is not exported.  */
1415
  void (*elf_backend_hide_symbol)
1416
    (struct bfd_link_info *, struct elf_link_hash_entry *, bool);
1417
1418
  /* A function to do additional symbol fixup, called by
1419
     _bfd_elf_fix_symbol_flags.  */
1420
  bool (*elf_backend_fixup_symbol)
1421
    (struct bfd_link_info *, struct elf_link_hash_entry *);
1422
1423
  /* Merge the backend specific symbol attribute.  */
1424
  void (*elf_backend_merge_symbol_attribute)
1425
    (struct elf_link_hash_entry *, unsigned int, bool, bool);
1426
1427
  /* This function, if defined, will return a string containing the
1428
     name of a target-specific dynamic tag.  */
1429
  char *(*elf_backend_get_target_dtag)
1430
    (bfd_vma);
1431
1432
  /* Decide whether an undefined symbol is special and can be ignored.
1433
     This is the case for OPTIONAL symbols on IRIX.  */
1434
  bool (*elf_backend_ignore_undef_symbol)
1435
    (struct elf_link_hash_entry *);
1436
1437
  /* Emit relocations.  Overrides default routine for emitting relocs,
1438
     except during a relocatable link, or if all relocs are being emitted.  */
1439
  bool (*elf_backend_emit_relocs)
1440
    (bfd *, asection *, Elf_Internal_Shdr *, Elf_Internal_Rela *,
1441
     struct elf_link_hash_entry **);
1442
1443
  /* Update relocations.  It is allowed to change the number and the order.
1444
     In such a case hashes should be invalidated.  */
1445
  void (*elf_backend_update_relocs)
1446
    (asection *, struct bfd_elf_section_reloc_data *);
1447
1448
  /* Count relocations.  Not called for relocatable links
1449
     or if all relocs are being preserved in the output.  */
1450
  unsigned int (*elf_backend_count_relocs)
1451
    (struct bfd_link_info *, asection *);
1452
1453
  /* Count additionals relocations.  Called for relocatable links if
1454
     additional relocations needs to be created.  */
1455
  unsigned int (*elf_backend_count_additional_relocs)
1456
    (asection *);
1457
1458
  /* Say whether to sort relocs output by ld -r and ld --emit-relocs,
1459
     by r_offset.  If NULL, default to true.  */
1460
  bool (*sort_relocs_p)
1461
    (asection *);
1462
1463
  /* This function, if defined, is called when an NT_PRSTATUS note is found
1464
     in a core file.  */
1465
  bool (*elf_backend_grok_prstatus)
1466
    (bfd *, Elf_Internal_Note *);
1467
1468
  /* This function, if defined, is called when an NT_PSINFO or NT_PRPSINFO
1469
     note is found in a core file.  */
1470
  bool (*elf_backend_grok_psinfo)
1471
    (bfd *, Elf_Internal_Note *);
1472
1473
  /* This function, if defined, is called when a "FreeBSD" NT_PRSTATUS
1474
     note is found in a core file.  */
1475
  bool (*elf_backend_grok_freebsd_prstatus)
1476
    (bfd *, Elf_Internal_Note *);
1477
1478
  /* This function, if defined, is called to write a note to a corefile.  */
1479
  char *(*elf_backend_write_core_note)
1480
    (bfd *abfd, char *buf, int *bufsiz, int note_type, ...);
1481
1482
  /* This function, if defined, is called to convert target-specific
1483
     section flag names into hex values.  */
1484
  flagword (*elf_backend_lookup_section_flags_hook)
1485
    (char *);
1486
1487
  /* This function returns class of a reloc type.  */
1488
  enum elf_reloc_type_class (*elf_backend_reloc_type_class)
1489
  (const struct bfd_link_info *, const asection *, const Elf_Internal_Rela *);
1490
1491
  /* This function, if defined, removes information about discarded functions
1492
     from other sections which mention them.  */
1493
  bool (*elf_backend_discard_info)
1494
    (bfd *, struct elf_reloc_cookie *, struct bfd_link_info *);
1495
1496
  /* This function, if defined, signals that the function above has removed
1497
     the discarded relocations for this section.  */
1498
  bool (*elf_backend_ignore_discarded_relocs)
1499
    (asection *);
1500
1501
  /* What to do when ld finds relocations against symbols defined in
1502
     discarded sections.  */
1503
  unsigned int (*action_discarded)
1504
    (asection *);
1505
1506
  /* This function returns the width of FDE pointers in bytes, or 0 if
1507
     that can't be determined for some reason.  The default definition
1508
     goes by the bfd's EI_CLASS.  */
1509
  unsigned int (*elf_backend_eh_frame_address_size)
1510
    (bfd *, const asection *);
1511
1512
  /* These functions tell elf-eh-frame whether to attempt to turn
1513
     absolute or lsda encodings into pc-relative ones.  The default
1514
     definition enables these transformations.  */
1515
  bool (*elf_backend_can_make_relative_eh_frame)
1516
     (bfd *, struct bfd_link_info *, asection *);
1517
  bool (*elf_backend_can_make_lsda_relative_eh_frame)
1518
     (bfd *, struct bfd_link_info *, asection *);
1519
1520
  /* This function returns an encoding after computing the encoded
1521
     value (and storing it in ENCODED) for the given OFFSET into OSEC,
1522
     to be stored in at LOC_OFFSET into the LOC_SEC input section.
1523
     The default definition chooses a 32-bit PC-relative encoding.  */
1524
  bfd_byte (*elf_backend_encode_eh_address)
1525
     (bfd *abfd, struct bfd_link_info *info,
1526
      asection *osec, bfd_vma offset,
1527
      asection *loc_sec, bfd_vma loc_offset,
1528
      bfd_vma *encoded);
1529
1530
  /* This function, if defined, may write out the given section.
1531
     Returns TRUE if it did so and FALSE if the caller should.  */
1532
  bool (*elf_backend_write_section)
1533
    (bfd *, struct bfd_link_info *, asection *, bfd_byte *);
1534
1535
  /* This function adds glibc version dependency.  */
1536
  void (*elf_backend_add_glibc_version_dependency)
1537
    (struct elf_find_verdep_info *);
1538
1539
  /* This function, if defined, returns TRUE if it is section symbols
1540
     only that are considered local for the purpose of partitioning the
1541
     symbol table into local and global symbols.  This should be NULL
1542
     for most targets, in which case the correct thing will be done.
1543
     MIPS ELF, at least on the Irix 5, has special requirements.  */
1544
  bool (*elf_backend_elfsym_local_is_section)
1545
    (bfd *);
1546
1547
  /* The level of IRIX compatibility we're striving for.
1548
     MIPS ELF specific function.  */
1549
  irix_compat_t (*elf_backend_mips_irix_compat)
1550
    (bfd *);
1551
1552
  reloc_howto_type *(*elf_backend_mips_rtype_to_howto)
1553
    (bfd *, unsigned int, bool);
1554
1555
  /* The swapping table to use when dealing with ECOFF information.
1556
     Used for the MIPS ELF .mdebug section.  */
1557
  const struct ecoff_debug_swap *elf_backend_ecoff_debug_swap;
1558
1559
  /* This function implements `bfd_elf_bfd_from_remote_memory';
1560
     see elf.c, elfcode.h.  */
1561
  bfd *(*elf_backend_bfd_from_remote_memory)
1562
    (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep,
1563
     int (*target_read_memory) (bfd_vma vma, bfd_byte *myaddr,
1564
        bfd_size_type len));
1565
1566
  bool (*elf_backend_core_find_build_id) (bfd *, bfd_vma);
1567
1568
  /* This function is used by `_bfd_elf_get_synthetic_symtab';
1569
     see elf.c.  */
1570
  bfd_vma (*plt_sym_val) (bfd_vma, const asection *, const arelent *);
1571
1572
  /* Is symbol defined in common section?  */
1573
  bool (*common_definition) (Elf_Internal_Sym *);
1574
1575
  /* Return a common section index for section.  */
1576
  unsigned int (*common_section_index) (asection *);
1577
1578
  /* Return a common section for section.  */
1579
  asection *(*common_section) (asection *);
1580
1581
  /* Return TRUE if we can merge 2 definitions.  */
1582
  bool (*merge_symbol) (struct elf_link_hash_entry *,
1583
             const Elf_Internal_Sym *, asection **,
1584
             bool, bool,
1585
             bfd *, const asection *);
1586
1587
  /* Return TRUE if symbol should be hashed in the `.gnu.hash' section.  */
1588
  bool (*elf_hash_symbol) (struct elf_link_hash_entry *);
1589
1590
  /* If non-NULL, called to register the location of XLAT_LOC within
1591
     .MIPS.xhash at which real final dynindx for H will be written.
1592
     If XLAT_LOC is zero, the symbol is not included in
1593
     .MIPS.xhash and no dynindx will be written.  */
1594
  void (*record_xhash_symbol)
1595
    (struct elf_link_hash_entry *h, bfd_vma xlat_loc);
1596
1597
  /* Return TRUE if type is a function symbol type.  */
1598
  bool (*is_function_type) (unsigned int type);
1599
1600
  /* If the ELF symbol SYM might be a function in SEC, return the
1601
     function size and set *CODE_OFF to the function's entry point,
1602
     otherwise return zero.  */
1603
  bfd_size_type (*maybe_function_sym) (const asymbol *sym, asection *sec,
1604
               bfd_vma *code_off);
1605
1606
  /* Given NAME, the name of a relocation section stripped of its
1607
     .rel/.rela prefix, return the section in ABFD to which the
1608
     relocations apply.  */
1609
  asection *(*get_reloc_section) (bfd *abfd, const char *name);
1610
1611
  /* Called to set the sh_flags, sh_link and sh_info fields of OSECTION which
1612
     has a type >= SHT_LOOS.  Returns TRUE if the fields were initialised,
1613
     FALSE otherwise.  Can be called multiple times for a given section,
1614
     until it returns TRUE.  Most of the times it is called ISECTION will be
1615
     set to an input section that might be associated with the output section.
1616
     The last time that it is called, ISECTION will be set to NULL.  */
1617
  bool (*elf_backend_copy_special_section_fields)
1618
    (const bfd *ibfd, bfd *obfd, const Elf_Internal_Shdr *isection,
1619
     Elf_Internal_Shdr *osection);
1620
1621
  /* Used to handle bad SHF_LINK_ORDER input.  */
1622
  void (*link_order_error_handler) (const char *, ...);
1623
1624
  /* Name of the PLT relocation section.  */
1625
  const char *relplt_name;
1626
1627
  /* Alternate EM_xxxx machine codes for this backend.  */
1628
  int elf_machine_alt1;
1629
  int elf_machine_alt2;
1630
1631
  const struct elf_size_info *s;
1632
1633
  /* An array of target specific special sections.  */
1634
  const struct bfd_elf_special_section *special_sections;
1635
1636
  /* The size in bytes of the header for the GOT.  This includes the
1637
     so-called reserved entries on some systems.  */
1638
  bfd_vma got_header_size;
1639
1640
  /* The size of the GOT entry for the symbol pointed to by H if non-NULL,
1641
     otherwise by the local symbol with index SYMNDX in IBFD.  */
1642
  bfd_vma (*got_elt_size) (struct bfd_link_info *,
1643
         struct elf_link_hash_entry *h,
1644
         bfd *ibfd,
1645
         unsigned long symndx);
1646
1647
  /* The vendor name to use for a processor-standard attributes section.  */
1648
  const char *obj_attrs_vendor;
1649
1650
  /* The section name to use for a processor-standard attributes section.  */
1651
  const char *obj_attrs_section;
1652
1653
  /* Return 1, 2 or 3 to indicate what type of arguments a tag takes.  */
1654
  int (*obj_attrs_arg_type) (obj_attr_tag_t);
1655
1656
  /* The section type to use for an attributes section.  */
1657
  unsigned int obj_attrs_section_type;
1658
1659
  /* The preferred version of object attributes for the output object.  */
1660
  obj_attr_version_t default_obj_attr_version;
1661
1662
  /* Decode the object attributes version from the version number encoded in
1663
     the input object.  */
1664
  obj_attr_version_t (*obj_attrs_version_dec) (uint8_t);
1665
1666
  /* Encode the object attributes version into the output object.  */
1667
  uint8_t (*obj_attrs_version_enc) (obj_attr_version_t);
1668
1669
  /* The known subsections and attributes (v2 only).  */
1670
  const known_subsection_v2_t *obj_attr_v2_known_subsections;
1671
1672
  /* The size of the array of known subsections.  */
1673
  const size_t obj_attr_v2_known_subsections_size;
1674
1675
  /* Translate GNU properties that have object attributes v2 equivalents.  */
1676
  void (*translate_gnu_props_to_obj_attrs) (const bfd *,
1677
    const elf_property_list *);
1678
1679
  /* Translate object attributes v2 that have GNU properties equivalents.  */
1680
  void (*translate_obj_attrs_to_gnu_props) (bfd *,
1681
    const obj_attr_subsection_v2_t *);
1682
1683
  /* Get default value for an attribute.  */
1684
  bool (*obj_attr_v2_default_value) (const struct bfd_link_info *,
1685
    const obj_attr_info_t *, const obj_attr_subsection_v2_t *, obj_attr_v2_t *);
1686
1687
  /* Merge a object attribute v2.  */
1688
  obj_attr_v2_merge_result_t (*obj_attr_v2_tag_merge)
1689
    (const struct bfd_link_info *, const bfd *, const obj_attr_subsection_v2_t *,
1690
     const obj_attr_v2_t *, const obj_attr_v2_t *, const obj_attr_v2_t *);
1691
1692
  /* This function determines the order in which any attributes are
1693
     written.  It must be defined for input in the range
1694
     LEAST_KNOWN_OBJ_ATTRIBUTE..NUM_KNOWN_OBJ_ATTRIBUTES-1 (this range
1695
     is used in order to make unity easy).  The returned value is the
1696
     actual tag number to place in the input position.  */
1697
  int (*obj_attrs_order) (int);
1698
1699
  /* Handle merging unknown attributes; either warn and return TRUE,
1700
     or give an error and return FALSE.  */
1701
  bool (*obj_attrs_handle_unknown) (bfd *, int);
1702
1703
  /* Parse GNU properties.  Return the property kind.  If the property
1704
     is corrupt, issue an error message and return property_corrupt.  */
1705
  enum elf_property_kind (*parse_gnu_properties) (bfd *, unsigned int,
1706
              bfd_byte *,
1707
              unsigned int);
1708
1709
  /* Merge GNU properties.  Return TRUE if property is updated.  */
1710
  bool (*merge_gnu_properties) (struct bfd_link_info *, bfd *, bfd *,
1711
               elf_property *, elf_property *);
1712
1713
  /* Set up object attributes.  */
1714
  bfd *(*setup_object_attributes) (struct bfd_link_info *);
1715
1716
  /* Set up GNU properties.  */
1717
  bfd *(*setup_gnu_properties) (struct bfd_link_info *);
1718
1719
  /* Fix up GNU properties.  */
1720
  void (*fixup_gnu_properties) (struct bfd_link_info *,
1721
        elf_property_list **);
1722
1723
  /* Encoding used for compact EH tables.  */
1724
  int (*compact_eh_encoding) (struct bfd_link_info *);
1725
1726
  /* Opcode representing no unwind.  */
1727
  int (*cant_unwind_opcode) (struct bfd_link_info *);
1728
1729
  /* Called when emitting an ELF symbol whoes input version had an
1730
     ST_SHNDX field set to a value in the range SHN_LOPROC..SHN_HIOS.
1731
     Returns the value to be installed in the ST_SHNDX field of the
1732
     emitted symbol.  If not defined, the value is left unchanged.  */
1733
  unsigned int (*symbol_section_index) (bfd *, elf_symbol_type *);
1734
1735
  /* Called when a section has extra reloc sections.  */
1736
  bool (*init_secondary_reloc_section) (bfd *, Elf_Internal_Shdr *,
1737
          const char *, unsigned int);
1738
1739
  /* Called when after loading the normal relocs for a section.  */
1740
  bool (*slurp_secondary_relocs) (bfd *, asection *, asymbol **, bool);
1741
1742
  /* Called after writing the normal relocs for a section.  */
1743
  bool (*write_secondary_relocs) (bfd *, asection *);
1744
1745
  /* This is non-zero if static TLS segments require a special alignment.  */
1746
  unsigned static_tls_alignment;
1747
1748
  /* Alignment for the PT_GNU_STACK segment.  */
1749
  unsigned stack_align;
1750
1751
  /* This is TRUE if the linker should act like collect and gather
1752
     global constructors and destructors by name.  This is TRUE for
1753
     MIPS ELF because the Irix 5 tools can not handle the .init
1754
     section.  */
1755
  unsigned collect : 1;
1756
1757
  /* This is TRUE if the linker should ignore changes to the type of a
1758
     symbol.  This is TRUE for MIPS ELF because some Irix 5 objects
1759
     record undefined functions as STT_OBJECT although the definitions
1760
     are STT_FUNC.  */
1761
  unsigned type_change_ok : 1;
1762
1763
  /* Whether the backend may use REL relocations.  (Some backends use
1764
     both REL and RELA relocations, and this flag is set for those
1765
     backends.)  */
1766
  unsigned may_use_rel_p : 1;
1767
1768
  /* Whether the backend may use RELA relocations.  (Some backends use
1769
     both REL and RELA relocations, and this flag is set for those
1770
     backends.)  */
1771
  unsigned may_use_rela_p : 1;
1772
1773
  /* Whether the default relocation type is RELA.  If a backend with
1774
     this flag set wants REL relocations for a particular section,
1775
     it must note that explicitly.  Similarly, if this flag is clear,
1776
     and the backend wants RELA relocations for a particular
1777
     section.  */
1778
  unsigned default_use_rela_p : 1;
1779
1780
  /* True if PLT and copy relocations should be RELA by default.  */
1781
  unsigned rela_plts_and_copies_p : 1;
1782
1783
  /* Set if RELA relocations for a relocatable link can be handled by
1784
     generic code.  Backends that set this flag need do nothing in the
1785
     backend relocate_section routine for relocatable linking.  */
1786
  unsigned rela_normal : 1;
1787
1788
  /* Set if DT_REL/DT_RELA/DT_RELSZ/DT_RELASZ should not include PLT
1789
     relocations.  */
1790
  unsigned dtrel_excludes_plt : 1;
1791
1792
  /* TRUE if addresses "naturally" sign extend.  This is used when
1793
     swapping in from Elf32 when BFD64.  */
1794
  unsigned sign_extend_vma : 1;
1795
1796
  unsigned want_got_plt : 1;
1797
  unsigned plt_readonly : 1;
1798
  unsigned want_plt_sym : 1;
1799
  unsigned plt_not_loaded : 1;
1800
  unsigned plt_alignment : 4;
1801
  unsigned can_gc_sections : 1;
1802
  unsigned can_refcount : 1;
1803
  unsigned want_got_sym : 1;
1804
  unsigned want_dynbss : 1;
1805
  unsigned want_dynrelro : 1;
1806
  unsigned want_stub_bfd : 1;
1807
1808
  /* Targets which do not support physical addressing often require
1809
     that the p_paddr field in the section header to be set to zero.
1810
     This field indicates whether this behavior is required.  */
1811
  unsigned want_p_paddr_set_to_zero : 1;
1812
1813
  /* Target has broken hardware and/or kernel that requires pages not
1814
     to be mapped twice with different permissions.  */
1815
  unsigned no_page_alias : 1;
1816
1817
  /* True if an object file lacking a .note.GNU-stack section
1818
     should be assumed to be requesting exec stack.  At least one
1819
     other file in the link needs to have a .note.GNU-stack section
1820
     for a PT_GNU_STACK segment to be created.  */
1821
  unsigned default_execstack : 1;
1822
1823
  /* True if elf_section_data(sec)->this_hdr.contents is sec->rawsize
1824
     in length rather than sec->size in length, if sec->rawsize is
1825
     non-zero and smaller than sec->size.  */
1826
  unsigned caches_rawsize : 1;
1827
1828
  /* Address of protected data defined in the shared library may be
1829
     external, i.e., due to copy relocation.   */
1830
  unsigned extern_protected_data : 1;
1831
1832
  /* True if `_bfd_elf_link_renumber_dynsyms' must be called even for
1833
     static binaries.  */
1834
  unsigned always_renumber_dynsyms : 1;
1835
1836
  /* True if the 32-bit Linux PRPSINFO structure's `pr_uid' and `pr_gid'
1837
     members use a 16-bit data type.  */
1838
  unsigned linux_prpsinfo32_ugid16 : 1;
1839
1840
  /* True if the 64-bit Linux PRPSINFO structure's `pr_uid' and `pr_gid'
1841
     members use a 16-bit data type.  */
1842
  unsigned linux_prpsinfo64_ugid16 : 1;
1843
1844
  /* True if the backend can use mmap to map in all input section
1845
     contents.  All bfd_malloc_and_get_section and free usages on
1846
     section contents must be replaced by _bfd_elf_mmap_section_contents
1847
     and _bfd_elf_munmap_section_contents.  */
1848
  unsigned use_mmap : 1;
1849
};
1850
1851
#ifndef __cplusplus
1852
typedef const struct elf_backend_data elf_backend_data;
1853
#endif
1854
1855
/* Information about reloc sections associated with a bfd_elf_section_data
1856
   structure.  */
1857
struct bfd_elf_section_reloc_data
1858
{
1859
  /* The ELF header for the reloc section associated with this
1860
     section, if any.  */
1861
  Elf_Internal_Shdr *hdr;
1862
  /* The number of relocations currently assigned to HDR.  */
1863
  unsigned int count;
1864
  /* The ELF section number of the reloc section.  Only used for an
1865
     output file.  */
1866
  int idx;
1867
  /* Used by the backend linker to store the symbol hash table entries
1868
     associated with relocs against global symbols.  */
1869
  struct elf_link_hash_entry **hashes;
1870
};
1871
1872
/* Information stored for each BFD section in an ELF file.  This
1873
   structure is allocated by elf_new_section_hook.  */
1874
1875
struct bfd_elf_section_data
1876
{
1877
  /* The ELF header for this section.  */
1878
  Elf_Internal_Shdr this_hdr;
1879
1880
  /* INPUT_SECTION_FLAGS if specified in the linker script.  */
1881
  struct flag_info *section_flag_info;
1882
1883
  /* Information about the REL and RELA reloc sections associated
1884
     with this section, if any.  */
1885
  struct bfd_elf_section_reloc_data rel, rela;
1886
1887
  /* The ELF section number of this section.  */
1888
  int this_idx;
1889
1890
  /* Used by the backend linker when generating a shared library to
1891
     record the dynamic symbol index for a section symbol
1892
     corresponding to this section.  A value of 0 means that there is
1893
     no dynamic symbol for this section.  */
1894
  int dynindx;
1895
1896
  /* A pointer to the linked-to section for SHF_LINK_ORDER.  */
1897
  asection *linked_to;
1898
1899
  /* A pointer to the swapped relocs.  If the section uses REL relocs,
1900
     rather than RELA, all the r_addend fields will be zero.  This
1901
     pointer may be NULL.  It is used by the backend linker.  */
1902
  Elf_Internal_Rela *relocs;
1903
1904
  /* A pointer to a linked list tracking dynamic relocs copied for
1905
     local symbols.  */
1906
  void *local_dynrel;
1907
1908
  /* A pointer to the bfd section used for dynamic relocs.  */
1909
  asection *sreloc;
1910
1911
  union {
1912
    /* Group name, if this section is a member of a group.  */
1913
    const char *name;
1914
1915
    /* Group signature sym, if this is the SHT_GROUP section.  */
1916
    struct bfd_symbol *id;
1917
  } group;
1918
1919
  /* For a member of a group, points to the SHT_GROUP section.
1920
     NULL for the SHT_GROUP section itself and non-group sections.  */
1921
  asection *sec_group;
1922
1923
  /* A linked list of member sections in the group.  Circular when used by
1924
     the linker.  For the SHT_GROUP section, points at first member.  */
1925
  asection *next_in_group;
1926
1927
  /* The FDEs associated with this section.  The u.fde.next_in_section
1928
     field acts as a chain pointer.  */
1929
  struct eh_cie_fde *fde_list;
1930
1931
  /* Link from a text section to its .eh_frame_entry section.  */
1932
  asection *eh_frame_entry;
1933
1934
  /* If the mmapped_p flag is set, this points to the actual mmapped
1935
     address of contents.  If it is set to NULL, contents isn't
1936
     mmapped.  */
1937
  void *contents_addr;
1938
1939
  /* If the mmapped_p flag is set, this is the actual mmapped size of
1940
     contents.  */
1941
  size_t contents_size;
1942
1943
  /* TRUE if the section has secondary reloc sections associated with it.
1944
     FIXME: In the future it might be better to change this into a list
1945
     of secondary reloc sections, making lookup easier and faster.  */
1946
  bool has_secondary_relocs;
1947
};
1948
1949
7.78M
#define elf_section_data(sec) ((struct bfd_elf_section_data*)(sec)->used_by_bfd)
1950
33.2k
#define elf_linked_to_section(sec) (elf_section_data(sec)->linked_to)
1951
707k
#define elf_section_type(sec) (elf_section_data(sec)->this_hdr.sh_type)
1952
1.68M
#define elf_section_flags(sec)  (elf_section_data(sec)->this_hdr.sh_flags)
1953
323k
#define elf_section_info(sec) (elf_section_data(sec)->this_hdr.sh_info)
1954
26.4k
#define elf_group_name(sec) (elf_section_data(sec)->group.name)
1955
31
#define elf_group_id(sec) (elf_section_data(sec)->group.id)
1956
452k
#define elf_next_in_group(sec)  (elf_section_data(sec)->next_in_group)
1957
0
#define elf_fde_list(sec) (elf_section_data(sec)->fde_list)
1958
118k
#define elf_sec_group(sec)  (elf_section_data(sec)->sec_group)
1959
0
#define elf_section_eh_frame_entry(sec) (elf_section_data(sec)->eh_frame_entry)
1960
1961
#define xvec_get_elf_backend_data(xvec) \
1962
82.7M
  ((const struct elf_backend_data *) (xvec)->backend_data)
1963
1964
#define get_elf_backend_data(abfd) \
1965
82.7M
   xvec_get_elf_backend_data ((abfd)->xvec)
1966
1967
#define ABI_64_P(abfd) \
1968
8.19k
  (get_elf_backend_data (abfd)->s->elfclass == ELFCLASS64)
1969
1970
/* The least object attributes (within an attributes subsection) known
1971
   for any target.  Some code assumes that the value 0 is not used and
1972
   the field for that attribute can instead be used as a marker to
1973
   indicate that attributes have been initialized.  */
1974
264
#define LEAST_KNOWN_OBJ_ATTRIBUTE 2
1975
1976
/* The maximum number of known object attributes for any target.  */
1977
340k
#define NUM_KNOWN_OBJ_ATTRIBUTES 77
1978
1979
/* The value of an object attribute.  The type indicates whether the attribute
1980
   holds and integer, a string, or both.  It can also indicate that there can
1981
   be no default (i.e. all values must be written to file, even zero), or
1982
   that the value is in error and should not be written to file.  */
1983
1984
typedef struct obj_attribute
1985
{
1986
875k
#define ATTR_TYPE_FLAG_INT_VAL    (1 << 0)
1987
395k
#define ATTR_TYPE_FLAG_STR_VAL    (1 << 1)
1988
1.48k
#define ATTR_TYPE_FLAG_NO_DEFAULT (1 << 2)
1989
0
#define ATTR_TYPE_FLAG_ERROR    (1 << 3)
1990
1991
0
#define ATTR_TYPE_HAS_INT_VAL(TYPE) ((TYPE) & ATTR_TYPE_FLAG_INT_VAL)
1992
0
#define ATTR_TYPE_HAS_STR_VAL(TYPE) ((TYPE) & ATTR_TYPE_FLAG_STR_VAL)
1993
0
#define ATTR_TYPE_HAS_NO_DEFAULT(TYPE)  ((TYPE) & ATTR_TYPE_FLAG_NO_DEFAULT)
1994
0
#define ATTR_TYPE_HAS_ERROR(TYPE) ((TYPE) & ATTR_TYPE_FLAG_ERROR)
1995
1996
  int type;
1997
  unsigned int i;
1998
  char *s;
1999
} obj_attribute;
2000
2001
typedef struct obj_attribute_list
2002
{
2003
  struct obj_attribute_list *next;
2004
  obj_attr_tag_t tag;
2005
  obj_attribute attr;
2006
} obj_attribute_list;
2007
2008
/* Object attributes may either be defined by the processor ABI, index
2009
   OBJ_ATTR_PROC in the *_obj_attributes arrays, or be GNU-specific
2010
   (and possibly also processor-specific), index OBJ_ATTR_GNU.  */
2011
typedef enum {
2012
  OBJ_ATTR_PROC,
2013
  OBJ_ATTR_GNU,
2014
} obj_attr_vendor_t;
2015
44
#define OBJ_ATTR_FIRST OBJ_ATTR_PROC
2016
132
#define OBJ_ATTR_LAST OBJ_ATTR_GNU
2017
2018
/* The following object attribute tags are taken as generic, for all
2019
   targets and for "gnu" where there is no target standard.  */
2020
enum
2021
{
2022
  Tag_NULL = 0,
2023
  Tag_File = 1,
2024
  Tag_Section = 2,
2025
  Tag_Symbol = 3,
2026
  Tag_compatibility = 32
2027
};
2028
2029
/* The following struct stores information about every SystemTap section
2030
   found in the object file.  */
2031
struct sdt_note
2032
{
2033
  struct sdt_note *next;
2034
  bfd_size_type size;
2035
  bfd_byte data[1];
2036
};
2037
2038
/* tdata information grabbed from an elf core file.  */
2039
struct core_elf_obj_tdata
2040
{
2041
  int signal;
2042
  int pid;
2043
  int lwpid;
2044
  char* program;
2045
  char* command;
2046
};
2047
2048
/* Extra tdata information held for output ELF BFDs.  */
2049
struct output_elf_obj_tdata
2050
{
2051
  struct elf_segment_map *seg_map;
2052
  struct elf_strtab_hash *strtab_ptr;
2053
2054
  /* STT_SECTION symbols for each section */
2055
  asymbol **section_syms;
2056
2057
  /* NT_GNU_BUILD_ID note type info.  */
2058
  struct
2059
  {
2060
    bool (*after_write_object_contents) (bfd *);
2061
    const char *style;
2062
    asection *sec;
2063
  } build_id;
2064
2065
  /* FDO_PACKAGING_METADATA note type info.  */
2066
  struct
2067
  {
2068
    bool (*after_write_object_contents) (bfd *);
2069
    const char *json;
2070
    asection *sec;
2071
  } package_metadata;
2072
2073
  /* Records the result of `get_program_header_size'.  */
2074
  bfd_size_type program_header_size;
2075
2076
  /* Used when laying out sections.  */
2077
  file_ptr next_file_pos;
2078
2079
  /* Linker information.  */
2080
  struct bfd_link_info *link_info;
2081
2082
  unsigned int num_section_syms;
2083
  unsigned int shstrtab_section, strtab_section;
2084
2085
  /* Segment flags for the PT_GNU_STACK segment.  */
2086
  unsigned int stack_flags;
2087
2088
  /* Used to determine if PT_GNU_SFRAME segment header should be
2089
     created.  */
2090
  asection *sframe;
2091
2092
  /* Holds the object attributes section if it exists.  */
2093
  asection *obj_object_attributes;
2094
2095
  /* Used to determine if the e_flags field has been initialized */
2096
  bool flags_init;
2097
};
2098
2099
/* Indicate if the bfd contains SHF_GNU_MBIND/SHF_GNU_RETAIN sections or
2100
   symbols that have the STT_GNU_IFUNC symbol type or STB_GNU_UNIQUE
2101
   binding.  Used to set the osabi field in the ELF header structure.  */
2102
enum elf_gnu_osabi
2103
{
2104
  elf_gnu_osabi_mbind = 1 << 0,
2105
  elf_gnu_osabi_ifunc = 1 << 1,
2106
  elf_gnu_osabi_unique = 1 << 2,
2107
  elf_gnu_osabi_retain = 1 << 3,
2108
};
2109
2110
typedef struct elf_section_list
2111
{
2112
  Elf_Internal_Shdr      hdr;
2113
  unsigned int         ndx;
2114
  struct elf_section_list *  next;
2115
} elf_section_list;
2116
2117
enum dynamic_lib_link_class {
2118
  DYN_NORMAL = 0,
2119
  DYN_AS_NEEDED = 1,
2120
  DYN_DT_NEEDED = 2,
2121
  DYN_NO_ADD_NEEDED = 4,
2122
  DYN_NO_NEEDED = 8
2123
};
2124
2125
/* Some private data is stashed away for future use using the tdata pointer
2126
   in the bfd structure.  */
2127
2128
struct elf_obj_tdata
2129
{
2130
  Elf_Internal_Ehdr elf_header[1];  /* Actual data, but ref like ptr */
2131
  Elf_Internal_Shdr **elf_sect_ptr;
2132
  Elf_Internal_Phdr *phdr;
2133
  Elf_Internal_Shdr symtab_hdr;
2134
  Elf_Internal_Shdr shstrtab_hdr;
2135
  Elf_Internal_Shdr strtab_hdr;
2136
  Elf_Internal_Shdr dynsymtab_hdr;
2137
  Elf_Internal_Shdr dynstrtab_hdr;
2138
  Elf_Internal_Shdr dynversym_hdr;
2139
  Elf_Internal_Shdr dynverref_hdr;
2140
  Elf_Internal_Shdr dynverdef_hdr;
2141
  Elf_Internal_Sym *dt_symtab;
2142
  bfd_byte *dt_versym;
2143
  bfd_byte *dt_verdef;
2144
  bfd_byte *dt_verneed;
2145
  size_t dt_symtab_count;
2146
  size_t dt_verdef_count;
2147
  size_t dt_verneed_count;
2148
  char * dt_strtab;
2149
  size_t dt_strsz;
2150
  elf_section_list * symtab_shndx_list;
2151
  bfd_vma gp;       /* The gp value */
2152
  unsigned int gp_size;     /* The gp size */
2153
  unsigned int num_elf_sections;  /* elf_sect_ptr size */
2154
  unsigned char *being_created;
2155
2156
  /* A mapping from external symbols to entries in the linker hash
2157
     table, used when linking.  This is indexed by the symbol index
2158
     minus the sh_info field of the symbol table header.  */
2159
  struct elf_link_hash_entry **sym_hashes;
2160
2161
  /* Section indices of local symbols, used by gc-sections.  */
2162
  unsigned int *loc_shndx;
2163
2164
  /* Track usage and final offsets of GOT entries for local symbols.
2165
     This array is indexed by symbol index.  Elements are used
2166
     identically to "got" in struct elf_link_hash_entry.  */
2167
  union
2168
    {
2169
      bfd_signed_vma *refcounts;
2170
      bfd_vma *offsets;
2171
      struct got_entry **ents;
2172
    } local_got;
2173
2174
  /* The linker ELF emulation code needs to let the backend ELF linker
2175
     know what filename should be used for a dynamic object if the
2176
     dynamic object is found using a search.  The emulation code then
2177
     sometimes needs to know what name was actually used.  Until the
2178
     file has been added to the linker symbol table, this field holds
2179
     the name the linker wants.  After it has been added, it holds the
2180
     name actually used, which will be the DT_SONAME entry if there is
2181
     one.  */
2182
  const char *dt_name;
2183
2184
  /* The linker emulation needs to know what audit libs
2185
     are used by a dynamic object.  */
2186
  const char *dt_audit;
2187
2188
  /* Used by find_nearest_line entry point.  */
2189
  void *line_info;
2190
2191
  /* A place to stash dwarf1 info for this bfd.  */
2192
  void *dwarf1_find_line_info;
2193
2194
  /* A place to stash dwarf2 info for this bfd.  */
2195
  void *dwarf2_find_line_info;
2196
2197
  /* Stash away info for yet another find line/function variant.  */
2198
  void *elf_find_function_cache;
2199
2200
  /* Number of symbol version definitions we are about to emit.  */
2201
  unsigned int cverdefs;
2202
2203
  /* Number of symbol version references we are about to emit.  */
2204
  unsigned int cverrefs;
2205
2206
  /* Symbol version definitions in external objects.  */
2207
  Elf_Internal_Verdef *verdef;
2208
2209
  /* Symbol version references to external objects.  */
2210
  Elf_Internal_Verneed *verref;
2211
2212
  /* A pointer to the .eh_frame section.  */
2213
  asection *eh_frame_section;
2214
2215
  /* A pointer to the .sframe section.  */
2216
  asection *sframe_section;
2217
2218
  /* Symbol buffer.  */
2219
  void *symbuf;
2220
2221
  /* List of GNU properties.  Will be updated by setup_gnu_properties
2222
     after all input GNU properties are merged for output.  */
2223
  elf_property_list *properties;
2224
2225
  /* The version of object attributes for this object.
2226
     For an input object, the format version used to store the data.
2227
     For an output object, the targeted format version.  */
2228
  obj_attr_version_t obj_attr_version;
2229
2230
  obj_attribute known_obj_attributes[2][NUM_KNOWN_OBJ_ATTRIBUTES];
2231
  obj_attribute_list *other_obj_attributes[2];
2232
2233
  /* Object attributes v2: A subsection can only hold attributes with the
2234
     same data type (uleb128, NTBS, etc), so each type requires a separate
2235
     subsection.  */
2236
  obj_attr_subsection_list_t obj_attr_subsections;
2237
2238
  /* Linked-list containing information about every Systemtap section
2239
     found in the object file.  Each section corresponds to one entry
2240
     in the list.  */
2241
  struct sdt_note *sdt_note_head;
2242
2243
  unsigned int symtab_section, dynsymtab_section;
2244
  unsigned int dynversym_section, dynverdef_section, dynverref_section;
2245
2246
  /* An identifier used to distinguish different target
2247
     specific extensions to this structure.  */
2248
  ENUM_BITFIELD (elf_target_id) object_id : 6;
2249
2250
  /* Whether a dyanmic object was specified normally on the linker
2251
     command line, or was specified when --as-needed was in effect,
2252
     or was found via a DT_NEEDED entry.  */
2253
  ENUM_BITFIELD (dynamic_lib_link_class) dyn_lib_class : 4;
2254
2255
  /* Whether the bfd uses OS specific bits that require ELFOSABI_GNU.  */
2256
  ENUM_BITFIELD (elf_gnu_osabi) has_gnu_osabi : 4;
2257
2258
  /* Whether if the bfd contains the GNU_PROPERTY_NO_COPY_ON_PROTECTED
2259
     property.  */
2260
  unsigned int has_no_copy_on_protected : 1;
2261
2262
  /* Whether if the bfd contains the
2263
     GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS property.  */
2264
  unsigned int has_indirect_extern_access : 1;
2265
2266
  /* Irix 5 often screws up the symbol table, sorting local symbols
2267
     after global symbols.  This flag is set if the symbol table in
2268
     this BFD appears to be screwed up.  If it is, we ignore the
2269
     sh_info field in the symbol table header, and always read all the
2270
     symbols.  */
2271
  unsigned int bad_symtab : 1;
2272
2273
  /* Set if DT_FLAGS_1 has DF_1_PIE set.  */
2274
  unsigned int is_pie : 1;
2275
2276
  /* Set after the sym_hashes array has been assigned in
2277
     elf_link_input_bfd.  */
2278
  unsigned int sym_hashes_valid : 1;
2279
2280
  /* Information grabbed from an elf core file.  */
2281
  struct core_elf_obj_tdata *core;
2282
2283
  /* More information held for output ELF BFDs.  */
2284
  struct output_elf_obj_tdata *o;
2285
};
2286
2287
34.3M
#define elf_tdata(bfd)    ((bfd) -> tdata.elf_obj_data)
2288
2289
3.59M
#define elf_object_id(bfd)  (elf_tdata(bfd) -> object_id)
2290
3.03k
#define elf_program_header_size(bfd) (elf_tdata(bfd) -> o->program_header_size)
2291
10.8M
#define elf_elfheader(bfd)  (elf_tdata(bfd) -> elf_header)
2292
6.44M
#define elf_elfsections(bfd)  (elf_tdata(bfd) -> elf_sect_ptr)
2293
4.63M
#define elf_numsections(bfd)  (elf_tdata(bfd) -> num_elf_sections)
2294
2.93k
#define elf_seg_map(bfd)  (elf_tdata(bfd) -> o->seg_map)
2295
0
#define elf_link_info(bfd)  (elf_tdata(bfd) -> o->link_info)
2296
2.93k
#define elf_next_file_pos(bfd)  (elf_tdata(bfd) -> o->next_file_pos)
2297
84
#define elf_stack_flags(bfd)  (elf_tdata(bfd) -> o->stack_flags)
2298
84
#define elf_sframe(bfd)   (elf_tdata(bfd) -> o->sframe)
2299
#define elf_obj_object_attributes(bfd) \
2300
0
        (elf_tdata(bfd) -> o->obj_object_attributes)
2301
13.8k
#define elf_shstrtab(bfd) (elf_tdata(bfd) -> o->strtab_ptr)
2302
338k
#define elf_onesymtab(bfd)  (elf_tdata(bfd) -> symtab_section)
2303
77.9k
#define elf_symtab_shndx_list(bfd)  (elf_tdata(bfd) -> symtab_shndx_list)
2304
3.77k
#define elf_strtab_sec(bfd) (elf_tdata(bfd) -> o->strtab_section)
2305
4.05k
#define elf_shstrtab_sec(bfd) (elf_tdata(bfd) -> o->shstrtab_section)
2306
78.3k
#define elf_symtab_hdr(bfd) (elf_tdata(bfd) -> symtab_hdr)
2307
76.0k
#define elf_dynsymtab(bfd)  (elf_tdata(bfd) -> dynsymtab_section)
2308
56.8k
#define elf_dynversym(bfd)  (elf_tdata(bfd) -> dynversym_section)
2309
40.6k
#define elf_dynverdef(bfd)  (elf_tdata(bfd) -> dynverdef_section)
2310
40.8k
#define elf_dynverref(bfd)  (elf_tdata(bfd) -> dynverref_section)
2311
#define elf_eh_frame_section(bfd) \
2312
0
        (elf_tdata(bfd) -> eh_frame_section)
2313
#define elf_sframe_section(bfd) \
2314
0
        (elf_tdata(bfd) -> sframe_section)
2315
97
#define elf_section_syms(bfd) (elf_tdata(bfd) -> o->section_syms)
2316
97
#define elf_num_section_syms(bfd) (elf_tdata(bfd) -> o->num_section_syms)
2317
#define core_prpsinfo(bfd)  (elf_tdata(bfd) -> prpsinfo)
2318
#define core_prstatus(bfd)  (elf_tdata(bfd) -> prstatus)
2319
1.99k
#define elf_gp(bfd)   (elf_tdata(bfd) -> gp)
2320
65
#define elf_gp_size(bfd)  (elf_tdata(bfd) -> gp_size)
2321
282
#define elf_sym_hashes(bfd) (elf_tdata(bfd) -> sym_hashes)
2322
#define elf_sym_hashes_valid(bfd) \
2323
282
        (elf_tdata(bfd) -> sym_hashes_valid)
2324
0
#define elf_loc_shndx(bfd)  (elf_tdata(bfd) -> loc_shndx)
2325
0
#define elf_local_got_refcounts(bfd) (elf_tdata(bfd) -> local_got.refcounts)
2326
0
#define elf_local_got_offsets(bfd) (elf_tdata(bfd) -> local_got.offsets)
2327
0
#define elf_local_got_ents(bfd) (elf_tdata(bfd) -> local_got.ents)
2328
0
#define elf_dt_name(bfd)  (elf_tdata(bfd) -> dt_name)
2329
0
#define elf_dt_audit(bfd) (elf_tdata(bfd) -> dt_audit)
2330
0
#define elf_dyn_lib_class(bfd)  (elf_tdata(bfd) -> dyn_lib_class)
2331
9.83k
#define elf_bad_symtab(bfd) (elf_tdata(bfd) -> bad_symtab)
2332
1.48k
#define elf_flags_init(bfd) (elf_tdata(bfd) -> o->flags_init)
2333
272k
#define elf_use_dt_symtab_p(bfd) (elf_tdata(bfd) -> dt_symtab_count != 0)
2334
12.3k
#define elf_obj_attr_version(bfd) (elf_tdata (bfd) -> obj_attr_version)
2335
291k
#define elf_known_obj_attributes(bfd) (elf_tdata (bfd) -> known_obj_attributes)
2336
44.6k
#define elf_other_obj_attributes(bfd) (elf_tdata (bfd) -> other_obj_attributes)
2337
#define elf_known_obj_attributes_proc(bfd) \
2338
0
  (elf_known_obj_attributes (bfd) [OBJ_ATTR_PROC])
2339
#define elf_other_obj_attributes_proc(bfd) \
2340
0
  (elf_other_obj_attributes (bfd) [OBJ_ATTR_PROC])
2341
70.0k
#define elf_obj_attr_subsections(bfd) (elf_tdata (bfd) -> obj_attr_subsections)
2342
3.57k
#define elf_properties(bfd) (elf_tdata (bfd) -> properties)
2343
#define elf_has_no_copy_on_protected(bfd) \
2344
238
  (elf_tdata(bfd) -> has_no_copy_on_protected)
2345
#define elf_has_indirect_extern_access(bfd) \
2346
23
  (elf_tdata(bfd) -> has_indirect_extern_access)
2347

2348
extern void _bfd_elf_swap_verdef_in
2349
  (bfd *, const Elf_External_Verdef *, Elf_Internal_Verdef *) ATTRIBUTE_HIDDEN;
2350
extern void _bfd_elf_swap_verdef_out
2351
  (bfd *, const Elf_Internal_Verdef *, Elf_External_Verdef *) ATTRIBUTE_HIDDEN;
2352
extern void _bfd_elf_swap_verdaux_in
2353
  (bfd *, const Elf_External_Verdaux *, Elf_Internal_Verdaux *)
2354
  ATTRIBUTE_HIDDEN;
2355
extern void _bfd_elf_swap_verdaux_out
2356
  (bfd *, const Elf_Internal_Verdaux *, Elf_External_Verdaux *)
2357
  ATTRIBUTE_HIDDEN;
2358
extern void _bfd_elf_swap_verneed_in
2359
  (bfd *, const Elf_External_Verneed *, Elf_Internal_Verneed *)
2360
  ATTRIBUTE_HIDDEN;
2361
extern void _bfd_elf_swap_verneed_out
2362
  (bfd *, const Elf_Internal_Verneed *, Elf_External_Verneed *)
2363
  ATTRIBUTE_HIDDEN;
2364
extern void _bfd_elf_swap_vernaux_in
2365
  (bfd *, const Elf_External_Vernaux *, Elf_Internal_Vernaux *)
2366
  ATTRIBUTE_HIDDEN;
2367
extern void _bfd_elf_swap_vernaux_out
2368
  (bfd *, const Elf_Internal_Vernaux *, Elf_External_Vernaux *)
2369
  ATTRIBUTE_HIDDEN;
2370
extern void _bfd_elf_swap_versym_in
2371
  (bfd *, const Elf_External_Versym *, Elf_Internal_Versym *) ATTRIBUTE_HIDDEN;
2372
extern void _bfd_elf_swap_versym_out
2373
  (bfd *, const Elf_Internal_Versym *, Elf_External_Versym *) ATTRIBUTE_HIDDEN;
2374
2375
extern unsigned int _bfd_elf_section_from_bfd_section
2376
  (bfd *, asection *) ATTRIBUTE_HIDDEN;
2377
extern char *bfd_elf_string_from_elf_section
2378
  (bfd *, unsigned, unsigned);
2379
extern Elf_Internal_Sym *bfd_elf_get_elf_syms
2380
  (bfd *, Elf_Internal_Shdr *, size_t, size_t, Elf_Internal_Sym *, void *,
2381
   Elf_External_Sym_Shndx *);
2382
extern char * bfd_elf_get_str_section (bfd *, unsigned int);
2383
extern const char *bfd_elf_sym_name
2384
  (bfd *, Elf_Internal_Shdr *, const Elf_Internal_Sym *, asection *);
2385
2386
extern bool _bfd_elf_copy_private_bfd_data
2387
  (bfd *, bfd *) ATTRIBUTE_HIDDEN;
2388
extern bool _bfd_elf_print_private_bfd_data
2389
  (bfd *, void *) ATTRIBUTE_HIDDEN;
2390
const char * _bfd_elf_get_symbol_version_string
2391
  (bfd *, asymbol *, bool, bool *) ATTRIBUTE_HIDDEN;
2392
extern void _bfd_elf_print_symbol
2393
  (bfd *, void *, asymbol *, bfd_print_symbol_type) ATTRIBUTE_HIDDEN;
2394
2395
extern unsigned int _bfd_elf_eh_frame_address_size
2396
  (bfd *, const asection *) ATTRIBUTE_HIDDEN;
2397
extern bfd_byte _bfd_elf_encode_eh_address
2398
  (bfd *abfd, struct bfd_link_info *info, asection *osec, bfd_vma offset,
2399
   asection *loc_sec, bfd_vma loc_offset, bfd_vma *encoded) ATTRIBUTE_HIDDEN;
2400
extern bool _bfd_elf_can_make_relative
2401
  (bfd *input_bfd, struct bfd_link_info *info, asection *eh_frame_section)
2402
  ATTRIBUTE_HIDDEN;
2403
2404
extern enum elf_reloc_type_class _bfd_elf_reloc_type_class
2405
  (const struct bfd_link_info *, const asection *,
2406
   const Elf_Internal_Rela *) ATTRIBUTE_HIDDEN;
2407
extern bfd_vma _bfd_elf_rela_local_sym
2408
  (bfd *, const Elf_Internal_Sym *, asection **, Elf_Internal_Rela *)
2409
  ATTRIBUTE_HIDDEN;
2410
extern bfd_vma _bfd_elf_rel_local_sym
2411
  (bfd *, const Elf_Internal_Sym *, asection **, bfd_vma) ATTRIBUTE_HIDDEN;
2412
extern bfd_vma _bfd_elf_section_offset
2413
  (bfd *, struct bfd_link_info *, asection *, bfd_vma) ATTRIBUTE_HIDDEN;
2414
2415
extern unsigned long bfd_elf_hash
2416
  (const char *);
2417
extern unsigned long bfd_elf_gnu_hash
2418
  (const char *);
2419
2420
extern bfd_reloc_status_type bfd_elf_generic_reloc
2421
  (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
2422
extern bool bfd_elf_allocate_object
2423
  (bfd *, size_t);
2424
extern bool bfd_elf_make_object
2425
  (bfd *);
2426
extern bool bfd_elf_mkcorefile
2427
  (bfd *);
2428
extern bool _bfd_elf_make_section_from_shdr
2429
  (bfd *, Elf_Internal_Shdr *, const char *, int) ATTRIBUTE_HIDDEN;
2430
extern bool _bfd_elf_make_section_from_phdr
2431
  (bfd *, Elf_Internal_Phdr *, int, const char *) ATTRIBUTE_HIDDEN;
2432
extern struct bfd_hash_entry *_bfd_elf_link_hash_newfunc
2433
  (struct bfd_hash_entry *, struct bfd_hash_table *, const char *)
2434
  ATTRIBUTE_HIDDEN;
2435
extern struct bfd_link_hash_table *_bfd_elf_link_hash_table_create
2436
  (bfd *) ATTRIBUTE_HIDDEN;
2437
extern void _bfd_elf_link_hash_table_free
2438
  (bfd *) ATTRIBUTE_HIDDEN;
2439
extern void _bfd_elf_link_hash_copy_indirect
2440
  (struct bfd_link_info *, struct elf_link_hash_entry *,
2441
   struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN;
2442
extern void _bfd_elf_link_hash_hide_symbol
2443
  (struct bfd_link_info *, struct elf_link_hash_entry *, bool)
2444
  ATTRIBUTE_HIDDEN;
2445
extern void _bfd_elf_link_hide_symbol
2446
  (bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *)
2447
  ATTRIBUTE_HIDDEN;
2448
extern bool _bfd_elf_link_hash_fixup_symbol
2449
  (struct bfd_link_info *, struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN;
2450
extern bool _bfd_elf_link_hash_table_init
2451
  (struct elf_link_hash_table *, bfd *,
2452
   struct bfd_hash_entry *(*)
2453
     (struct bfd_hash_entry *, struct bfd_hash_table *, const char *),
2454
   unsigned int) ATTRIBUTE_HIDDEN;
2455
extern bool _bfd_elf_slurp_version_tables
2456
  (bfd *, bool) ATTRIBUTE_HIDDEN;
2457
extern bool bfd_elf_match_sections_by_type
2458
  (bfd *, const asection *, bfd *, const asection *);
2459
extern bool bfd_elf_is_group_section
2460
  (bfd *, const struct bfd_section *);
2461
extern const char *bfd_elf_group_name
2462
  (bfd *, const struct bfd_section *);
2463
extern bool _bfd_elf_section_already_linked
2464
  (bfd *, asection *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2465
extern void bfd_elf_set_group_contents
2466
  (bfd *, asection *, void *);
2467
extern size_t _bfd_elf_filter_implib_symbols
2468
  (struct bfd_link_info *, asymbol **, size_t) ATTRIBUTE_HIDDEN;
2469
extern asection *_bfd_elf_check_kept_section
2470
  (asection *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2471
0
#define _bfd_elf_link_just_syms _bfd_generic_link_just_syms
2472
extern void _bfd_elf_copy_link_hash_symbol_type
2473
  (bfd *, struct bfd_link_hash_entry *, struct bfd_link_hash_entry *)
2474
  ATTRIBUTE_HIDDEN;
2475
extern bool bfd_elf_size_group_sections
2476
  (struct bfd_link_info *);
2477
extern bool _bfd_elf_fixup_group_sections
2478
  (bfd *, asection *) ATTRIBUTE_HIDDEN;
2479
extern bool _bfd_elf_copy_private_header_data
2480
  (bfd *, bfd *) ATTRIBUTE_HIDDEN;
2481
extern bool _bfd_elf_copy_private_symbol_data
2482
  (bfd *, asymbol **, bfd *, asymbol **) ATTRIBUTE_HIDDEN;
2483
extern bool _bfd_elf_copy_private_section_data
2484
  (bfd *, asection *, bfd *, asection *, struct bfd_link_info *)
2485
  ATTRIBUTE_HIDDEN;
2486
extern bool _bfd_elf_write_object_contents
2487
  (bfd *) ATTRIBUTE_HIDDEN;
2488
extern bool _bfd_elf_write_corefile_contents
2489
  (bfd *) ATTRIBUTE_HIDDEN;
2490
extern bool _bfd_elf_set_section_contents
2491
  (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type) ATTRIBUTE_HIDDEN;
2492
extern long _bfd_elf_get_symtab_upper_bound
2493
  (bfd *) ATTRIBUTE_HIDDEN;
2494
extern long _bfd_elf_canonicalize_symtab
2495
  (bfd *, asymbol **) ATTRIBUTE_HIDDEN;
2496
extern long _bfd_elf_get_dynamic_symtab_upper_bound
2497
  (bfd *) ATTRIBUTE_HIDDEN;
2498
extern long _bfd_elf_canonicalize_dynamic_symtab
2499
  (bfd *, asymbol **) ATTRIBUTE_HIDDEN;
2500
extern long _bfd_elf_get_synthetic_symtab
2501
  (bfd *, long, asymbol **, long, asymbol **, asymbol **) ATTRIBUTE_HIDDEN;
2502
extern long _bfd_elf_get_reloc_upper_bound
2503
  (bfd *, sec_ptr) ATTRIBUTE_HIDDEN;
2504
extern long _bfd_elf_canonicalize_reloc
2505
  (bfd *, sec_ptr, arelent **, asymbol **) ATTRIBUTE_HIDDEN;
2506
extern asection * _bfd_elf_make_dynamic_reloc_section
2507
  (asection *, bfd *, unsigned int, bfd *, bool) ATTRIBUTE_HIDDEN;
2508
extern long _bfd_elf_get_dynamic_reloc_upper_bound
2509
  (bfd *) ATTRIBUTE_HIDDEN;
2510
extern long _bfd_elf_canonicalize_dynamic_reloc
2511
  (bfd *, arelent **, asymbol **) ATTRIBUTE_HIDDEN;
2512
extern asymbol *_bfd_elf_make_empty_symbol
2513
  (bfd *) ATTRIBUTE_HIDDEN;
2514
extern void _bfd_elf_get_symbol_info
2515
  (bfd *, asymbol *, symbol_info *) ATTRIBUTE_HIDDEN;
2516
extern bool _bfd_elf_is_local_label_name
2517
  (bfd *, const char *) ATTRIBUTE_HIDDEN;
2518
extern alent *_bfd_elf_get_lineno
2519
  (bfd *, asymbol *) ATTRIBUTE_HIDDEN;
2520
extern bool _bfd_elf_set_arch_mach
2521
  (bfd *, enum bfd_architecture, unsigned long) ATTRIBUTE_HIDDEN;
2522
extern bool _bfd_elf_find_nearest_line
2523
  (bfd *, asymbol **, asection *, bfd_vma,
2524
   const char **, const char **, unsigned int *, unsigned int *)
2525
  ATTRIBUTE_HIDDEN;
2526
extern bool _bfd_elf_find_nearest_line_with_alt
2527
  (bfd *, const char *, asymbol **, asection *, bfd_vma,
2528
   const char **, const char **, unsigned int *, unsigned int *)
2529
  ATTRIBUTE_HIDDEN;
2530
extern bool _bfd_elf_find_line
2531
  (bfd *, asymbol **, asymbol *, const char **, unsigned int *)
2532
  ATTRIBUTE_HIDDEN;
2533
extern bool _bfd_elf_find_inliner_info
2534
  (bfd *, const char **, const char **, unsigned int *) ATTRIBUTE_HIDDEN;
2535
extern asymbol *_bfd_elf_find_function
2536
  (bfd *, asymbol **, asection *, bfd_vma, const char **, const char **)
2537
  ATTRIBUTE_HIDDEN;
2538
extern bool _bfd_elf_relax_delete_range_ok
2539
  (const bfd *, const asection *, bfd_vma, bfd_vma, bfd_vma) ATTRIBUTE_HIDDEN;
2540
#define _bfd_elf_read_minisymbols _bfd_generic_read_minisymbols
2541
#define _bfd_elf_minisymbol_to_symbol _bfd_generic_minisymbol_to_symbol
2542
extern int _bfd_elf_sizeof_headers
2543
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2544
extern bool _bfd_elf_new_section_hook
2545
  (bfd *, asection *) ATTRIBUTE_HIDDEN;
2546
extern const struct bfd_elf_special_section *_bfd_elf_get_special_section
2547
  (const char *, const struct bfd_elf_special_section *, unsigned int)
2548
  ATTRIBUTE_HIDDEN;
2549
extern const struct bfd_elf_special_section *_bfd_elf_get_sec_type_attr
2550
  (bfd *, asection *) ATTRIBUTE_HIDDEN;
2551
2552
extern bool _bfd_elf_link_hide_sym_by_version
2553
  (struct bfd_link_info *, struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN;
2554
2555
/* If the target doesn't have reloc handling written yet:  */
2556
extern bool _bfd_elf_no_info_to_howto
2557
  (bfd *, arelent *, Elf_Internal_Rela *) ATTRIBUTE_HIDDEN;
2558
2559
extern bool bfd_section_from_shdr
2560
  (bfd *, unsigned int shindex);
2561
extern bool bfd_section_from_phdr
2562
  (bfd *, Elf_Internal_Phdr *, int);
2563
2564
extern int _bfd_elf_symbol_from_bfd_symbol
2565
  (bfd *, asymbol **) ATTRIBUTE_HIDDEN;
2566
2567
extern Elf_Internal_Sym *bfd_sym_from_r_symndx
2568
  (struct sym_cache *, bfd *, unsigned long);
2569
extern asection *bfd_section_from_elf_index
2570
  (bfd *, unsigned int);
2571
2572
extern struct elf_strtab_hash * _bfd_elf_strtab_init
2573
  (void) ATTRIBUTE_HIDDEN;
2574
extern void _bfd_elf_strtab_free
2575
  (struct elf_strtab_hash *) ATTRIBUTE_HIDDEN;
2576
extern size_t _bfd_elf_strtab_add
2577
  (struct elf_strtab_hash *, const char *, bool) ATTRIBUTE_HIDDEN;
2578
extern void _bfd_elf_strtab_addref
2579
  (struct elf_strtab_hash *, size_t) ATTRIBUTE_HIDDEN;
2580
extern void _bfd_elf_strtab_delref
2581
  (struct elf_strtab_hash *, size_t) ATTRIBUTE_HIDDEN;
2582
extern unsigned int _bfd_elf_strtab_refcount
2583
  (struct elf_strtab_hash *, size_t) ATTRIBUTE_HIDDEN;
2584
extern void _bfd_elf_strtab_clear_all_refs
2585
  (struct elf_strtab_hash *) ATTRIBUTE_HIDDEN;
2586
extern void *_bfd_elf_strtab_save
2587
  (struct elf_strtab_hash *) ATTRIBUTE_HIDDEN;
2588
extern void _bfd_elf_strtab_restore
2589
  (struct elf_strtab_hash *, void *) ATTRIBUTE_HIDDEN;
2590
extern bfd_size_type _bfd_elf_strtab_size
2591
  (struct elf_strtab_hash *) ATTRIBUTE_HIDDEN;
2592
extern bfd_size_type bfd_elf_strtab_len
2593
  (struct elf_strtab_hash *);
2594
extern bfd_size_type _bfd_elf_strtab_offset
2595
  (struct elf_strtab_hash *, size_t) ATTRIBUTE_HIDDEN;
2596
extern const char *bfd_elf_strtab_str
2597
  (struct elf_strtab_hash *, size_t idx, bfd_size_type *offset);
2598
extern bool _bfd_elf_strtab_emit
2599
  (bfd *, struct elf_strtab_hash *) ATTRIBUTE_HIDDEN;
2600
extern void _bfd_elf_strtab_finalize
2601
  (struct elf_strtab_hash *) ATTRIBUTE_HIDDEN;
2602
2603
extern bool bfd_elf_parse_eh_frame_entries
2604
  (struct bfd_link_info *);
2605
extern bool _bfd_elf_parse_eh_frame_entry
2606
  (struct bfd_link_info *, asection *, struct elf_reloc_cookie *)
2607
  ATTRIBUTE_HIDDEN;
2608
extern void _bfd_elf_parse_eh_frame
2609
  (bfd *, struct bfd_link_info *, asection *, struct elf_reloc_cookie *)
2610
  ATTRIBUTE_HIDDEN;
2611
extern bool _bfd_elf_end_eh_frame_parsing
2612
  (struct bfd_link_info *info) ATTRIBUTE_HIDDEN;
2613
2614
extern int _bfd_elf_discard_section_eh_frame
2615
  (bfd *, struct bfd_link_info *, asection *,
2616
   bool (*) (bfd_vma, void *), struct elf_reloc_cookie *) ATTRIBUTE_HIDDEN;
2617
extern bool _bfd_elf_adjust_eh_frame_global_symbol
2618
  (struct elf_link_hash_entry *, void *) ATTRIBUTE_HIDDEN;
2619
extern bool _bfd_elf_discard_section_eh_frame_hdr
2620
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2621
extern bfd_vma _bfd_elf_eh_frame_section_offset
2622
  (bfd *, struct bfd_link_info *, asection *, bfd_vma) ATTRIBUTE_HIDDEN;
2623
extern bool _bfd_elf_write_section_eh_frame
2624
  (bfd *, struct bfd_link_info *, asection *, bfd_byte *) ATTRIBUTE_HIDDEN;
2625
extern bool _bfd_elf_write_linker_section_eh_frame
2626
  (bfd *, struct bfd_link_info *, asection *, bfd_byte *) ATTRIBUTE_HIDDEN;
2627
extern bool _bfd_elf_write_section_eh_frame_entry
2628
  (bfd *, struct bfd_link_info *, asection *, bfd_byte *) ATTRIBUTE_HIDDEN;
2629
extern bool _bfd_elf_fixup_eh_frame_hdr
2630
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2631
extern bool _bfd_elf_write_section_eh_frame_hdr
2632
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2633
extern bool _bfd_elf_eh_frame_present
2634
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2635
extern bool _bfd_elf_eh_frame_entry_present
2636
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2637
extern bool _bfd_elf_maybe_strip_eh_frame_hdr
2638
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2639
2640
#ifdef OBJ_MAYBE_ELF_SFRAME
2641
2642
extern bool _bfd_elf_sframe_present
2643
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2644
extern bool _bfd_elf_sframe_present_input_bfds
2645
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2646
extern bool _bfd_elf_parse_sframe
2647
  (bfd *, struct bfd_link_info *, asection *, struct elf_reloc_cookie *)
2648
  ATTRIBUTE_HIDDEN;
2649
extern bool _bfd_elf_discard_section_sframe
2650
  (asection *, bool (*) (bfd_vma, void *), struct elf_reloc_cookie *)
2651
  ATTRIBUTE_HIDDEN;
2652
extern bool _bfd_elf_merge_section_sframe
2653
  (bfd *, struct bfd_link_info *, asection *, bfd_byte *) ATTRIBUTE_HIDDEN;
2654
extern bfd_vma _bfd_elf_sframe_section_offset
2655
  (bfd *, struct bfd_link_info *, asection *, bfd_vma) ATTRIBUTE_HIDDEN;
2656
extern bool _bfd_elf_write_section_sframe
2657
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2658
extern bool _bfd_elf_set_section_sframe
2659
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2660
2661
#else /* !OBJ_MAYBE_ELF_SFRAME */
2662
2663
static inline bool _bfd_elf_sframe_present
2664
  (struct bfd_link_info *info ATTRIBUTE_UNUSED)
2665
0
{ return false; }
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_sframe_present
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_sframe_present
Unexecuted instantiation: arc-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: arm-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: csky-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: kvx-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: m32c-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: mep-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: ppc-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: pru-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: rl78-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: score-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: score7-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: bpf-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: mips-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: nfp-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: riscv-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_sframe_present
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_sframe_present
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_sframe_present
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_sframe_present
Unexecuted instantiation: fuzz_as.c:_bfd_elf_sframe_present
Unexecuted instantiation: codeview.c:_bfd_elf_sframe_present
Unexecuted instantiation: cond.c:_bfd_elf_sframe_present
Unexecuted instantiation: depend.c:_bfd_elf_sframe_present
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_sframe_present
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_sframe_present
Unexecuted instantiation: ehopt.c:_bfd_elf_sframe_present
Unexecuted instantiation: expr.c:_bfd_elf_sframe_present
Unexecuted instantiation: frags.c:_bfd_elf_sframe_present
Unexecuted instantiation: gen-sframe.c:_bfd_elf_sframe_present
Unexecuted instantiation: input-scrub.c:_bfd_elf_sframe_present
Unexecuted instantiation: listing.c:_bfd_elf_sframe_present
Unexecuted instantiation: macro.c:_bfd_elf_sframe_present
Unexecuted instantiation: messages.c:_bfd_elf_sframe_present
Unexecuted instantiation: output-file.c:_bfd_elf_sframe_present
Unexecuted instantiation: read.c:_bfd_elf_sframe_present
Unexecuted instantiation: remap.c:_bfd_elf_sframe_present
Unexecuted instantiation: sb.c:_bfd_elf_sframe_present
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_sframe_present
Unexecuted instantiation: stabs.c:_bfd_elf_sframe_present
Unexecuted instantiation: subsegs.c:_bfd_elf_sframe_present
Unexecuted instantiation: symbols.c:_bfd_elf_sframe_present
Unexecuted instantiation: write.c:_bfd_elf_sframe_present
Unexecuted instantiation: app.c:_bfd_elf_sframe_present
Unexecuted instantiation: atof-generic.c:_bfd_elf_sframe_present
Unexecuted instantiation: ecoff.c:_bfd_elf_sframe_present
Unexecuted instantiation: flonum-copy.c:_bfd_elf_sframe_present
Unexecuted instantiation: ginsn.c:_bfd_elf_sframe_present
Unexecuted instantiation: hash.c:_bfd_elf_sframe_present
Unexecuted instantiation: input-file.c:_bfd_elf_sframe_present
Unexecuted instantiation: scfi.c:_bfd_elf_sframe_present
Unexecuted instantiation: sframe-opt.c:_bfd_elf_sframe_present
Unexecuted instantiation: tc-i386.c:_bfd_elf_sframe_present
Unexecuted instantiation: obj-elf.c:_bfd_elf_sframe_present
Unexecuted instantiation: atof-ieee.c:_bfd_elf_sframe_present
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_sframe_present
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_sframe_present
2666
static inline bool _bfd_elf_sframe_present_input_bfds
2667
  (struct bfd_link_info *info ATTRIBUTE_UNUSED)
2668
0
{ return false; }
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: arc-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: arm-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: csky-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: kvx-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: m32c-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: mep-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: ppc-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: pru-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: rl78-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: score-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: score7-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: bpf-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: mips-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: nfp-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: riscv-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: fuzz_as.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: codeview.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: cond.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: depend.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: ehopt.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: expr.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: frags.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: gen-sframe.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: input-scrub.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: listing.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: macro.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: messages.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: output-file.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: read.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: remap.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: sb.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: stabs.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: subsegs.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: symbols.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: write.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: app.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: atof-generic.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: ecoff.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: flonum-copy.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: ginsn.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: hash.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: input-file.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: scfi.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: sframe-opt.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: tc-i386.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: obj-elf.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: atof-ieee.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_sframe_present_input_bfds
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_sframe_present_input_bfds
2669
static inline bool _bfd_elf_parse_sframe
2670
  (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED,
2671
   asection *sec ATTRIBUTE_UNUSED,
2672
   struct elf_reloc_cookie *cookie ATTRIBUTE_UNUSED)
2673
0
{ return false; }
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_parse_sframe
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_parse_sframe
Unexecuted instantiation: arc-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: arm-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: csky-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: kvx-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: m32c-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: mep-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: ppc-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: pru-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: rl78-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: score-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: score7-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: bpf-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: mips-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: nfp-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: riscv-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_parse_sframe
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_parse_sframe
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_parse_sframe
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_parse_sframe
Unexecuted instantiation: fuzz_as.c:_bfd_elf_parse_sframe
Unexecuted instantiation: codeview.c:_bfd_elf_parse_sframe
Unexecuted instantiation: cond.c:_bfd_elf_parse_sframe
Unexecuted instantiation: depend.c:_bfd_elf_parse_sframe
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_parse_sframe
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_parse_sframe
Unexecuted instantiation: ehopt.c:_bfd_elf_parse_sframe
Unexecuted instantiation: expr.c:_bfd_elf_parse_sframe
Unexecuted instantiation: frags.c:_bfd_elf_parse_sframe
Unexecuted instantiation: gen-sframe.c:_bfd_elf_parse_sframe
Unexecuted instantiation: input-scrub.c:_bfd_elf_parse_sframe
Unexecuted instantiation: listing.c:_bfd_elf_parse_sframe
Unexecuted instantiation: macro.c:_bfd_elf_parse_sframe
Unexecuted instantiation: messages.c:_bfd_elf_parse_sframe
Unexecuted instantiation: output-file.c:_bfd_elf_parse_sframe
Unexecuted instantiation: read.c:_bfd_elf_parse_sframe
Unexecuted instantiation: remap.c:_bfd_elf_parse_sframe
Unexecuted instantiation: sb.c:_bfd_elf_parse_sframe
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_parse_sframe
Unexecuted instantiation: stabs.c:_bfd_elf_parse_sframe
Unexecuted instantiation: subsegs.c:_bfd_elf_parse_sframe
Unexecuted instantiation: symbols.c:_bfd_elf_parse_sframe
Unexecuted instantiation: write.c:_bfd_elf_parse_sframe
Unexecuted instantiation: app.c:_bfd_elf_parse_sframe
Unexecuted instantiation: atof-generic.c:_bfd_elf_parse_sframe
Unexecuted instantiation: ecoff.c:_bfd_elf_parse_sframe
Unexecuted instantiation: flonum-copy.c:_bfd_elf_parse_sframe
Unexecuted instantiation: ginsn.c:_bfd_elf_parse_sframe
Unexecuted instantiation: hash.c:_bfd_elf_parse_sframe
Unexecuted instantiation: input-file.c:_bfd_elf_parse_sframe
Unexecuted instantiation: scfi.c:_bfd_elf_parse_sframe
Unexecuted instantiation: sframe-opt.c:_bfd_elf_parse_sframe
Unexecuted instantiation: tc-i386.c:_bfd_elf_parse_sframe
Unexecuted instantiation: obj-elf.c:_bfd_elf_parse_sframe
Unexecuted instantiation: atof-ieee.c:_bfd_elf_parse_sframe
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_parse_sframe
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_parse_sframe
2674
static inline bool _bfd_elf_discard_section_sframe
2675
  (asection *sec ATTRIBUTE_UNUSED,
2676
  bool (*reloc_symbol_deleted_p) (bfd_vma, void *) ATTRIBUTE_UNUSED,
2677
  struct elf_reloc_cookie *cookie ATTRIBUTE_UNUSED)
2678
0
{ return false; }
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: arc-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: arm-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: csky-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: kvx-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: m32c-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: mep-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: ppc-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: pru-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: rl78-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: score-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: score7-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: bpf-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: mips-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: nfp-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: riscv-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: fuzz_as.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: codeview.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: cond.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: depend.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: ehopt.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: expr.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: frags.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: gen-sframe.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: input-scrub.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: listing.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: macro.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: messages.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: output-file.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: read.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: remap.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: sb.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: stabs.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: subsegs.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: symbols.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: write.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: app.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: atof-generic.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: ecoff.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: flonum-copy.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: ginsn.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: hash.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: input-file.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: scfi.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: sframe-opt.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: tc-i386.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: obj-elf.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: atof-ieee.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_discard_section_sframe
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_discard_section_sframe
2679
static inline bool _bfd_elf_merge_section_sframe
2680
  (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED,
2681
   asection *sec ATTRIBUTE_UNUSED, bfd_byte *contents ATTRIBUTE_UNUSED)
2682
0
{ return false; }
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: arc-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: arm-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: csky-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: kvx-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: m32c-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: mep-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: ppc-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: pru-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: rl78-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: score-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: score7-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: bpf-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: mips-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: nfp-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: riscv-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: fuzz_as.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: codeview.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: cond.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: depend.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: ehopt.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: expr.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: frags.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: gen-sframe.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: input-scrub.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: listing.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: macro.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: messages.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: output-file.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: read.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: remap.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: sb.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: stabs.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: subsegs.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: symbols.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: write.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: app.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: atof-generic.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: ecoff.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: flonum-copy.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: ginsn.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: hash.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: input-file.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: scfi.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: sframe-opt.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: tc-i386.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: obj-elf.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: atof-ieee.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_merge_section_sframe
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_merge_section_sframe
2683
static inline bfd_vma _bfd_elf_sframe_section_offset
2684
  (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED,
2685
   asection *sec ATTRIBUTE_UNUSED, bfd_vma offset)
2686
0
{ return offset; }
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: arc-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: arm-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: csky-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: kvx-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: m32c-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: mep-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: ppc-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: pru-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: rl78-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: score-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: score7-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: bpf-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: mips-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: nfp-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: riscv-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: fuzz_as.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: codeview.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: cond.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: depend.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: ehopt.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: expr.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: frags.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: gen-sframe.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: input-scrub.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: listing.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: macro.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: messages.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: output-file.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: read.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: remap.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: sb.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: stabs.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: subsegs.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: symbols.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: write.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: app.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: atof-generic.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: ecoff.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: flonum-copy.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: ginsn.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: hash.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: input-file.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: scfi.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: sframe-opt.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: tc-i386.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: obj-elf.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: atof-ieee.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_sframe_section_offset
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_sframe_section_offset
2687
static inline bool _bfd_elf_write_section_sframe
2688
  (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED)
2689
0
{ return true; }
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: arc-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: arm-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: csky-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: kvx-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: m32c-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: mep-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: ppc-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: pru-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: rl78-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: score-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: score7-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: bpf-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: mips-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: nfp-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: riscv-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: fuzz_as.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: codeview.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: cond.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: depend.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: ehopt.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: expr.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: frags.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: gen-sframe.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: input-scrub.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: listing.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: macro.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: messages.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: output-file.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: read.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: remap.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: sb.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: stabs.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: subsegs.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: symbols.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: write.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: app.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: atof-generic.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: ecoff.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: flonum-copy.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: ginsn.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: hash.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: input-file.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: scfi.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: sframe-opt.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: tc-i386.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: obj-elf.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: atof-ieee.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_write_section_sframe
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_write_section_sframe
2690
static inline bool _bfd_elf_set_section_sframe
2691
  (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED)
2692
0
{ return false; }
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: arc-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: arm-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: csky-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: kvx-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: m32c-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: mep-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: ppc-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: pru-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: rl78-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: score-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: score7-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: bpf-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: mips-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: nfp-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: riscv-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: fuzz_as.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: codeview.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: cond.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: depend.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: ehopt.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: expr.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: frags.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: gen-sframe.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: input-scrub.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: listing.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: macro.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: messages.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: output-file.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: read.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: remap.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: sb.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: stabs.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: subsegs.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: symbols.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: write.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: app.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: atof-generic.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: ecoff.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: flonum-copy.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: ginsn.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: hash.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: input-file.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: scfi.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: sframe-opt.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: tc-i386.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: obj-elf.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: atof-ieee.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_set_section_sframe
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_set_section_sframe
2693
2694
#endif /* OBJ_MAYBE_ELF_SFRAME */
2695
2696
extern bool _bfd_elf_hash_symbol
2697
  (struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN;
2698
2699
extern long _bfd_elf_link_lookup_local_dynindx
2700
  (struct bfd_link_info *, bfd *, long) ATTRIBUTE_HIDDEN;
2701
extern bool _bfd_elf_compute_section_file_positions
2702
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2703
extern file_ptr _bfd_elf_assign_file_position_for_section
2704
  (Elf_Internal_Shdr *, file_ptr, bool, unsigned char) ATTRIBUTE_HIDDEN;
2705
extern bool _bfd_elf_modify_headers
2706
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2707
2708
extern bool _bfd_elf_validate_reloc
2709
  (bfd *, arelent *) ATTRIBUTE_HIDDEN;
2710
2711
extern bool bfd_elf_record_link_assignment
2712
  (struct bfd_link_info *, const char *, bool, bool);
2713
extern bool bfd_elf_stack_segment_size (struct bfd_link_info *,
2714
          const char *, bfd_vma);
2715
extern bool bfd_elf_size_dynamic_sections
2716
  (struct bfd_link_info *, const char *, const char *, const char *,
2717
   const char *, const char *, const char * const *, struct bfd_section **);
2718
extern bool bfd_elf_size_dynsym_hash_dynstr
2719
  (struct bfd_link_info *);
2720
extern bool bfd_elf_get_bfd_needed_list
2721
  (bfd *, struct bfd_link_needed_list **);
2722
extern struct bfd_link_needed_list *bfd_elf_get_needed_list
2723
  (struct bfd_link_info *);
2724
extern void bfd_elf_set_dt_needed_name
2725
  (bfd *, const char *);
2726
extern const char *bfd_elf_get_dt_soname
2727
  (bfd *);
2728
extern void bfd_elf_set_dyn_lib_class
2729
  (bfd *, enum dynamic_lib_link_class);
2730
extern int bfd_elf_get_dyn_lib_class
2731
  (bfd *);
2732
extern struct bfd_link_needed_list *bfd_elf_get_runpath_list
2733
  (struct bfd_link_info *);
2734
extern int bfd_elf_discard_info
2735
  (struct bfd_link_info *);
2736
extern unsigned int _bfd_elf_default_action_discarded
2737
  (struct bfd_section *) ATTRIBUTE_HIDDEN;
2738
extern struct bfd_section *bfd_elf_tls_setup
2739
  (struct bfd_link_info *);
2740
2741
extern bfd *_bfd_elf_link_dynobj_internal
2742
  (struct bfd_link_info *, bool) ATTRIBUTE_HIDDEN;
2743
static inline bfd *
2744
_bfd_elf_link_dynobj (struct bfd_link_info *info)
2745
0
{ return _bfd_elf_link_dynobj_internal (info, true); }
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_link_dynobj
Unexecuted instantiation: bfd.c:_bfd_elf_link_dynobj
Unexecuted instantiation: format.c:_bfd_elf_link_dynobj
Unexecuted instantiation: libbfd.c:_bfd_elf_link_dynobj
Unexecuted instantiation: opncls.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-x86-64.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elfxx-x86.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf-ifunc.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf-sframe.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elflink.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf-strtab.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf-eh-frame.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf-properties.c:_bfd_elf_link_dynobj
Unexecuted instantiation: dwarf1.c:_bfd_elf_link_dynobj
Unexecuted instantiation: dwarf2.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-i386.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32.c:_bfd_elf_link_dynobj
Unexecuted instantiation: cofflink.c:_bfd_elf_link_dynobj
Unexecuted instantiation: coffgen.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-gen.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-gen.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-aarch64.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-ia64.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-kvx.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-loongarch.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-mips.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-riscv.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-score.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-score7.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-aarch64.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-alpha.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-amdgcn.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-bpf.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-hppa.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-ia64-vms.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-ia64.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-kvx.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-loongarch.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-mips.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-mmix.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-nfp.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-ppc.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-riscv.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-s390.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-sparc.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf64-tilegx.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elfn32-mips.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elfxx-aarch64.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elfxx-ia64.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elfxx-kvx.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elfxx-loongarch.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elfxx-mips.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elfxx-riscv.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf-attrs.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf-m10200.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf-m10300.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf-solaris2.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf-vxworks.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-am33lin.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-arc.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-arm.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-avr.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-bfin.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-cr16.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-cris.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-crx.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-csky.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-d10v.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-d30v.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-dlx.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-epiphany.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-fr30.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-frv.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-ft32.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-h8300.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-hppa.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-ip2k.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-iq2000.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-lm32.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-m32c.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-m32r.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-m68hc11.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-m68hc12.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-m68hc1x.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-m68k.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-mcore.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-mep.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-metag.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-microblaze.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-moxie.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-msp430.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-mt.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-nds32.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-or1k.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-pj.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-ppc.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-pru.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-rl78.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-rx.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-s12z.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-s390.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-sh.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-sparc.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-spu.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-tic6x.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-tilegx.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-tilepro.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-v850.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-vax.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-visium.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-wasm32.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-xgate.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-xstormy16.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-xtensa.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elf32-z80.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elfxx-sparc.c:_bfd_elf_link_dynobj
Unexecuted instantiation: elfxx-tilegx.c:_bfd_elf_link_dynobj
Unexecuted instantiation: cpu-nds32.c:_bfd_elf_link_dynobj
Unexecuted instantiation: compress.c:_bfd_elf_link_dynobj
Unexecuted instantiation: merge.c:_bfd_elf_link_dynobj
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_link_dynobj
Unexecuted instantiation: arc-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: arm-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: csky-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: kvx-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: m32c-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: mep-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: ppc-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: pru-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: rl78-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: score-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: score7-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: bpf-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: mips-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: nfp-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: riscv-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_link_dynobj
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_link_dynobj
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_link_dynobj
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_link_dynobj
Unexecuted instantiation: fuzz_as.c:_bfd_elf_link_dynobj
Unexecuted instantiation: codeview.c:_bfd_elf_link_dynobj
Unexecuted instantiation: cond.c:_bfd_elf_link_dynobj
Unexecuted instantiation: depend.c:_bfd_elf_link_dynobj
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_link_dynobj
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_link_dynobj
Unexecuted instantiation: ehopt.c:_bfd_elf_link_dynobj
Unexecuted instantiation: expr.c:_bfd_elf_link_dynobj
Unexecuted instantiation: frags.c:_bfd_elf_link_dynobj
Unexecuted instantiation: gen-sframe.c:_bfd_elf_link_dynobj
Unexecuted instantiation: input-scrub.c:_bfd_elf_link_dynobj
Unexecuted instantiation: listing.c:_bfd_elf_link_dynobj
Unexecuted instantiation: macro.c:_bfd_elf_link_dynobj
Unexecuted instantiation: messages.c:_bfd_elf_link_dynobj
Unexecuted instantiation: output-file.c:_bfd_elf_link_dynobj
Unexecuted instantiation: read.c:_bfd_elf_link_dynobj
Unexecuted instantiation: remap.c:_bfd_elf_link_dynobj
Unexecuted instantiation: sb.c:_bfd_elf_link_dynobj
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_link_dynobj
Unexecuted instantiation: stabs.c:_bfd_elf_link_dynobj
Unexecuted instantiation: subsegs.c:_bfd_elf_link_dynobj
Unexecuted instantiation: symbols.c:_bfd_elf_link_dynobj
Unexecuted instantiation: write.c:_bfd_elf_link_dynobj
Unexecuted instantiation: app.c:_bfd_elf_link_dynobj
Unexecuted instantiation: atof-generic.c:_bfd_elf_link_dynobj
Unexecuted instantiation: ecoff.c:_bfd_elf_link_dynobj
Unexecuted instantiation: flonum-copy.c:_bfd_elf_link_dynobj
Unexecuted instantiation: ginsn.c:_bfd_elf_link_dynobj
Unexecuted instantiation: hash.c:_bfd_elf_link_dynobj
Unexecuted instantiation: input-file.c:_bfd_elf_link_dynobj
Unexecuted instantiation: scfi.c:_bfd_elf_link_dynobj
Unexecuted instantiation: sframe-opt.c:_bfd_elf_link_dynobj
Unexecuted instantiation: tc-i386.c:_bfd_elf_link_dynobj
Unexecuted instantiation: obj-elf.c:_bfd_elf_link_dynobj
Unexecuted instantiation: atof-ieee.c:_bfd_elf_link_dynobj
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_link_dynobj
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_link_dynobj
2746
2747
extern bool bfd_elf_link_create_dynamic_sections
2748
  (struct bfd_link_info *);
2749
extern bool _bfd_elf_omit_section_dynsym_default
2750
  (struct bfd_link_info *, asection *) ATTRIBUTE_HIDDEN;
2751
extern bool _bfd_elf_omit_section_dynsym_all
2752
  (struct bfd_link_info *, asection *) ATTRIBUTE_HIDDEN;
2753
extern bool _bfd_elf_create_dynamic_sections
2754
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2755
extern bool _bfd_elf_create_got_section
2756
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2757
extern asection *_bfd_elf_section_for_symbol
2758
  (struct elf_reloc_cookie *, unsigned long) ATTRIBUTE_HIDDEN;
2759
extern struct elf_link_hash_entry *_bfd_elf_define_linkage_sym
2760
  (bfd *, struct bfd_link_info *, asection *, const char *) ATTRIBUTE_HIDDEN;
2761
extern void _bfd_elf_init_0_index_sections
2762
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2763
extern void _bfd_elf_init_1_index_section
2764
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2765
extern void _bfd_elf_init_2_index_sections
2766
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2767
2768
extern bool _bfd_elfcore_make_pseudosection
2769
  (bfd *, char *, size_t, ufile_ptr) ATTRIBUTE_HIDDEN;
2770
extern char *_bfd_elfcore_strndup
2771
  (bfd *, char *, size_t) ATTRIBUTE_HIDDEN;
2772
2773
extern Elf_Internal_Rela *_bfd_elf_link_read_relocs
2774
  (bfd *, const asection *, void *, Elf_Internal_Rela *, bool);
2775
extern Elf_Internal_Rela *_bfd_elf_link_info_read_relocs
2776
  (bfd *, struct bfd_link_info *, const asection *, void *, Elf_Internal_Rela *,
2777
   bool) ATTRIBUTE_HIDDEN;
2778
2779
extern bool _bfd_elf_link_output_relocs
2780
  (bfd *, asection *, Elf_Internal_Shdr *, Elf_Internal_Rela *,
2781
   struct elf_link_hash_entry **) ATTRIBUTE_HIDDEN;
2782
2783
extern bool _bfd_elf_link_add_glibc_version_dependency
2784
  (struct elf_find_verdep_info *, const char *const [], bool *)
2785
  ATTRIBUTE_HIDDEN;
2786
2787
extern void _bfd_elf_link_add_dt_relr_dependency
2788
  (struct elf_find_verdep_info *) ATTRIBUTE_HIDDEN;
2789
2790
extern bool _bfd_elf_adjust_dynamic_copy
2791
  (struct bfd_link_info *, struct elf_link_hash_entry *, asection *)
2792
  ATTRIBUTE_HIDDEN;
2793
2794
extern bool _bfd_elf_dynamic_symbol_p
2795
  (struct elf_link_hash_entry *, struct bfd_link_info *, bool) ATTRIBUTE_HIDDEN;
2796
2797
extern bool _bfd_elf_symbol_refs_local_p
2798
  (struct elf_link_hash_entry *, struct bfd_link_info *, bool) ATTRIBUTE_HIDDEN;
2799
2800
extern bfd_reloc_status_type bfd_elf_perform_complex_relocation
2801
  (bfd *, asection *, bfd_byte *, Elf_Internal_Rela *, bfd_vma);
2802
2803
extern bool _bfd_elf_setup_sections
2804
  (bfd *) ATTRIBUTE_HIDDEN;
2805
2806
extern bool _bfd_elf_get_dynamic_symbols
2807
  (bfd *, Elf_Internal_Phdr *, Elf_Internal_Phdr *, size_t,
2808
   bfd_size_type) ATTRIBUTE_HIDDEN;
2809
extern asection *_bfd_elf_get_section_from_dynamic_symbol
2810
  (bfd *, Elf_Internal_Sym *) ATTRIBUTE_HIDDEN;
2811
2812
extern struct bfd_link_hash_entry *bfd_elf_define_start_stop
2813
  (struct bfd_link_info *, const char *, asection *);
2814
2815
extern bool _bfd_elf_init_file_header (bfd *, struct bfd_link_info *)
2816
  ATTRIBUTE_HIDDEN;
2817
2818
extern bool _bfd_elf_final_write_processing (bfd *) ATTRIBUTE_HIDDEN;
2819
2820
extern bfd_cleanup bfd_elf32_object_p
2821
  (bfd *);
2822
extern bfd_cleanup bfd_elf32_core_file_p
2823
  (bfd *);
2824
extern char *bfd_elf32_core_file_failing_command
2825
  (bfd *);
2826
extern int bfd_elf32_core_file_failing_signal
2827
  (bfd *);
2828
extern bool bfd_elf32_core_file_matches_executable_p
2829
  (bfd *, bfd *);
2830
extern int bfd_elf32_core_file_pid
2831
  (bfd *);
2832
extern bool _bfd_elf32_core_find_build_id
2833
  (bfd *, bfd_vma) ATTRIBUTE_HIDDEN;
2834
2835
extern bool bfd_elf32_swap_symbol_in
2836
  (bfd *, const void *, const void *, Elf_Internal_Sym *);
2837
extern void bfd_elf32_swap_symbol_out
2838
  (bfd *, const Elf_Internal_Sym *, void *, void *);
2839
extern void bfd_elf32_swap_reloc_in
2840
  (bfd *, const bfd_byte *, Elf_Internal_Rela *);
2841
extern void bfd_elf32_swap_reloc_out
2842
  (bfd *, const Elf_Internal_Rela *, bfd_byte *);
2843
extern void bfd_elf32_swap_reloca_in
2844
  (bfd *, const bfd_byte *, Elf_Internal_Rela *);
2845
extern void bfd_elf32_swap_reloca_out
2846
  (bfd *, const Elf_Internal_Rela *, bfd_byte *);
2847
extern void bfd_elf32_swap_phdr_in
2848
  (bfd *, const Elf32_External_Phdr *, Elf_Internal_Phdr *);
2849
extern void bfd_elf32_swap_phdr_out
2850
  (bfd *, const Elf_Internal_Phdr *, Elf32_External_Phdr *);
2851
extern void bfd_elf32_swap_dyn_in
2852
  (bfd *, const void *, Elf_Internal_Dyn *);
2853
extern void bfd_elf32_swap_dyn_out
2854
  (bfd *, const Elf_Internal_Dyn *, void *);
2855
extern long bfd_elf32_slurp_symbol_table
2856
  (bfd *, asymbol **, bool);
2857
extern bool bfd_elf32_write_shdrs_and_ehdr
2858
  (bfd *);
2859
extern int bfd_elf32_write_out_phdrs
2860
  (bfd *, const Elf_Internal_Phdr *, unsigned int);
2861
extern bool bfd_elf32_checksum_contents
2862
  (bfd * , void (*) (const void *, size_t, void *), void *);
2863
extern void bfd_elf32_write_relocs
2864
  (bfd *, asection *, void *);
2865
extern bool bfd_elf32_slurp_reloc_table
2866
  (bfd *, asection *, asymbol **, bool);
2867
2868
extern bfd_cleanup bfd_elf64_object_p
2869
  (bfd *);
2870
extern bfd_cleanup bfd_elf64_core_file_p
2871
  (bfd *);
2872
extern char *bfd_elf64_core_file_failing_command
2873
  (bfd *);
2874
extern int bfd_elf64_core_file_failing_signal
2875
  (bfd *);
2876
extern bool bfd_elf64_core_file_matches_executable_p
2877
  (bfd *, bfd *);
2878
extern int bfd_elf64_core_file_pid
2879
  (bfd *);
2880
extern bool _bfd_elf64_core_find_build_id
2881
  (bfd *, bfd_vma) ATTRIBUTE_HIDDEN;
2882
2883
extern bool bfd_elf64_swap_symbol_in
2884
  (bfd *, const void *, const void *, Elf_Internal_Sym *);
2885
extern void bfd_elf64_swap_symbol_out
2886
  (bfd *, const Elf_Internal_Sym *, void *, void *);
2887
extern void bfd_elf64_swap_reloc_in
2888
  (bfd *, const bfd_byte *, Elf_Internal_Rela *);
2889
extern void bfd_elf64_swap_reloc_out
2890
  (bfd *, const Elf_Internal_Rela *, bfd_byte *);
2891
extern void bfd_elf64_swap_reloca_in
2892
  (bfd *, const bfd_byte *, Elf_Internal_Rela *);
2893
extern void bfd_elf64_swap_reloca_out
2894
  (bfd *, const Elf_Internal_Rela *, bfd_byte *);
2895
extern void bfd_elf64_swap_phdr_in
2896
  (bfd *, const Elf64_External_Phdr *, Elf_Internal_Phdr *);
2897
extern void bfd_elf64_swap_phdr_out
2898
  (bfd *, const Elf_Internal_Phdr *, Elf64_External_Phdr *);
2899
extern void bfd_elf64_swap_dyn_in
2900
  (bfd *, const void *, Elf_Internal_Dyn *);
2901
extern void bfd_elf64_swap_dyn_out
2902
  (bfd *, const Elf_Internal_Dyn *, void *);
2903
extern long bfd_elf64_slurp_symbol_table
2904
  (bfd *, asymbol **, bool);
2905
extern bool bfd_elf64_write_shdrs_and_ehdr
2906
  (bfd *);
2907
extern int bfd_elf64_write_out_phdrs
2908
  (bfd *, const Elf_Internal_Phdr *, unsigned int);
2909
extern bool bfd_elf64_checksum_contents
2910
  (bfd * , void (*) (const void *, size_t, void *), void *);
2911
extern void bfd_elf64_write_relocs
2912
  (bfd *, asection *, void *);
2913
extern bool bfd_elf64_slurp_reloc_table
2914
  (bfd *, asection *, asymbol **, bool);
2915
2916
extern bool _bfd_elf_default_relocs_compatible
2917
  (const bfd_target *, const bfd_target *) ATTRIBUTE_HIDDEN;
2918
2919
extern bool _bfd_elf_relocs_compatible
2920
  (const bfd_target *, const bfd_target *) ATTRIBUTE_HIDDEN;
2921
extern bool _bfd_elf_notice_as_needed
2922
  (bfd *, struct bfd_link_info *, enum notice_asneeded_action) ATTRIBUTE_HIDDEN;
2923
2924
extern struct bfd_link_hash_entry *_bfd_elf_archive_symbol_lookup
2925
  (bfd *, struct bfd_link_info *, const char *) ATTRIBUTE_HIDDEN;
2926
extern bool bfd_elf_link_add_symbols
2927
  (bfd *, struct bfd_link_info *);
2928
extern bool _bfd_elf_add_dynamic_entry
2929
  (struct bfd_link_info *, bfd_vma, bfd_vma) ATTRIBUTE_HIDDEN;
2930
extern bool _bfd_elf_strip_zero_sized_dynamic_sections
2931
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2932
extern int bfd_elf_add_dt_needed_tag
2933
  (bfd *, struct bfd_link_info *);
2934
extern bool _bfd_elf_link_check_relocs
2935
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2936
extern bool _bfd_elf_link_iterate_on_relocs
2937
  (bfd *, struct bfd_link_info *,
2938
   bool (*) (bfd *, struct bfd_link_info *, asection *,
2939
       const Elf_Internal_Rela *)) ATTRIBUTE_HIDDEN;
2940
2941
extern bool bfd_elf_link_record_dynamic_symbol
2942
  (struct bfd_link_info *, struct elf_link_hash_entry *);
2943
2944
extern int bfd_elf_link_record_local_dynamic_symbol
2945
  (struct bfd_link_info *, bfd *, long);
2946
2947
extern bool _bfd_elf_free_cached_info
2948
  (bfd *) ATTRIBUTE_HIDDEN;
2949
2950
extern bool _bfd_elf_common_definition
2951
  (Elf_Internal_Sym *) ATTRIBUTE_HIDDEN;
2952
2953
extern unsigned int _bfd_elf_common_section_index
2954
  (asection *) ATTRIBUTE_HIDDEN;
2955
2956
extern asection *_bfd_elf_common_section
2957
  (asection *) ATTRIBUTE_HIDDEN;
2958
2959
extern bfd_vma _bfd_elf_default_got_elt_size
2960
  (struct bfd_link_info *, struct elf_link_hash_entry *, bfd *,
2961
   unsigned long) ATTRIBUTE_HIDDEN;
2962
2963
extern bfd_reloc_status_type _bfd_elf_rel_vtable_reloc_fn
2964
  (bfd *, arelent *, struct bfd_symbol *, void *,
2965
   asection *, bfd *, char **) ATTRIBUTE_HIDDEN;
2966
2967
extern bool _bfd_elf_final_link
2968
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
2969
2970
extern void _bfd_elf_gc_keep
2971
  (struct bfd_link_info *info) ATTRIBUTE_HIDDEN;
2972
2973
extern bool bfd_elf_gc_mark_dynamic_ref_symbol
2974
  (struct elf_link_hash_entry *h, void *inf);
2975
2976
extern bool bfd_elf_gc_sections
2977
  (bfd *, struct bfd_link_info *);
2978
2979
extern bool bfd_elf_gc_record_vtinherit
2980
  (bfd *, asection *, struct elf_link_hash_entry *, bfd_vma);
2981
2982
extern bool bfd_elf_gc_record_vtentry
2983
  (bfd *, asection *, struct elf_link_hash_entry *, bfd_vma);
2984
2985
extern asection *_bfd_elf_gc_mark_hook
2986
  (asection *, struct bfd_link_info *, struct elf_reloc_cookie *,
2987
   struct elf_link_hash_entry *, unsigned int) ATTRIBUTE_HIDDEN;
2988
2989
extern asection *_bfd_elf_gc_mark_rsec
2990
  (struct bfd_link_info *, asection *, elf_gc_mark_hook_fn,
2991
   struct elf_reloc_cookie *, bool *) ATTRIBUTE_HIDDEN;
2992
2993
extern bool _bfd_elf_gc_mark_reloc
2994
  (struct bfd_link_info *, asection *, elf_gc_mark_hook_fn,
2995
   struct elf_reloc_cookie *) ATTRIBUTE_HIDDEN;
2996
2997
extern bool _bfd_elf_gc_mark_fdes
2998
  (struct bfd_link_info *, asection *, asection *, elf_gc_mark_hook_fn,
2999
   struct elf_reloc_cookie *) ATTRIBUTE_HIDDEN;
3000
3001
extern bool _bfd_elf_gc_mark
3002
  (struct bfd_link_info *, asection *, elf_gc_mark_hook_fn) ATTRIBUTE_HIDDEN;
3003
3004
extern bool _bfd_elf_gc_mark_extra_sections
3005
  (struct bfd_link_info *, elf_gc_mark_hook_fn) ATTRIBUTE_HIDDEN;
3006
3007
extern bool _bfd_elf_gc_common_final_link
3008
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
3009
3010
extern bool bfd_elf_reloc_symbol_deleted_p
3011
  (bfd_vma, void *);
3012
3013
extern struct elf_segment_map * _bfd_elf_make_dynamic_segment
3014
  (bfd *, asection *) ATTRIBUTE_HIDDEN;
3015
3016
extern bool bfd_elf_map_sections_to_segments
3017
  (bfd *, struct bfd_link_info *, bool *);
3018
3019
extern bool _bfd_elf_is_function_type
3020
  (unsigned int) ATTRIBUTE_HIDDEN;
3021
3022
extern bfd_size_type _bfd_elf_maybe_function_sym
3023
  (const asymbol *, asection *, bfd_vma *) ATTRIBUTE_HIDDEN;
3024
3025
extern asection *_bfd_elf_plt_get_reloc_section
3026
  (bfd *, const char *) ATTRIBUTE_HIDDEN;
3027
3028
extern int bfd_elf_get_default_section_type (flagword);
3029
3030
extern bool bfd_elf_lookup_section_flags
3031
  (struct bfd_link_info *, struct flag_info *, asection *);
3032
3033
extern Elf_Internal_Phdr * _bfd_elf_find_segment_containing_section
3034
  (bfd * abfd, asection * section) ATTRIBUTE_HIDDEN;
3035
3036
/* PowerPC @tls opcode transform/validate.  */
3037
extern unsigned int bfd_elf_ppc_at_tls_transform
3038
  (unsigned int, unsigned int);
3039
/* PowerPC @tprel opcode transform/validate.  */
3040
extern unsigned int _bfd_elf_ppc_at_tprel_transform
3041
  (unsigned int, unsigned int) ATTRIBUTE_HIDDEN;
3042
/* PowerPC elf_object_p tweak.  */
3043
extern bool _bfd_elf_ppc_set_arch
3044
  (bfd *) ATTRIBUTE_HIDDEN;
3045
/* PowerPC .gnu.attributes handling common to both 32-bit and 64-bit.  */
3046
extern bool _bfd_elf_ppc_merge_fp_attributes
3047
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
3048
3049
/* Return an upper bound on the number of bytes required to store a
3050
   copy of ABFD's program header table entries.  Return -1 if an error
3051
   occurs; bfd_get_error will return an appropriate code.  */
3052
extern long bfd_get_elf_phdr_upper_bound
3053
  (bfd *abfd);
3054
3055
/* Copy ABFD's program header table entries to *PHDRS.  The entries
3056
   will be stored as an array of Elf_Internal_Phdr structures, as
3057
   defined in include/elf/internal.h.  To find out how large the
3058
   buffer needs to be, call bfd_get_elf_phdr_upper_bound.
3059
3060
   Return the number of program header table entries read, or -1 if an
3061
   error occurs; bfd_get_error will return an appropriate code.  */
3062
extern int bfd_get_elf_phdrs
3063
  (bfd *abfd, void *phdrs);
3064
3065
/* Exported interface for writing elf corefile notes.  */
3066
extern char *elfcore_write_note
3067
  (bfd *, char *, int *, const char *, int, const void *, int);
3068
extern char *elfcore_write_prpsinfo
3069
  (bfd *, char *, int *, const char *, const char *);
3070
extern char *elfcore_write_prstatus
3071
  (bfd *, char *, int *, long, int, const void *);
3072
extern char * elfcore_write_pstatus
3073
  (bfd *, char *, int *, long, int, const void *);
3074
extern char *elfcore_write_prfpreg
3075
  (bfd *, char *, int *, const void *, int);
3076
extern char *elfcore_write_prxfpreg
3077
  (bfd *, char *, int *, const void *, int);
3078
extern char *elfcore_write_xstatereg
3079
  (bfd *, char *, int *, const void *, int);
3080
extern char *elfcore_write_xsave_layout
3081
  (bfd *, char *, int *, const void *, int);
3082
extern char *elfcore_write_x86_segbases
3083
  (bfd *, char *, int *, const void *, int);
3084
extern char *elfcore_write_i386_tls
3085
  (bfd *, char *, int *, const void *, int);
3086
extern char *elfcore_write_ppc_vmx
3087
  (bfd *, char *, int *, const void *, int);
3088
extern char *elfcore_write_ppc_vsx
3089
  (bfd *, char *, int *, const void *, int);
3090
extern char *elfcore_write_ppc_tar
3091
  (bfd *, char *, int *, const void *, int);
3092
extern char *elfcore_write_ppc_ppr
3093
  (bfd *, char *, int *, const void *, int);
3094
extern char *elfcore_write_ppc_dscr
3095
  (bfd *, char *, int *, const void *, int);
3096
extern char *elfcore_write_ppc_ebb
3097
  (bfd *, char *, int *, const void *, int);
3098
extern char *elfcore_write_ppc_pmu
3099
  (bfd *, char *, int *, const void *, int);
3100
extern char *elfcore_write_ppc_tm_cgpr
3101
  (bfd *, char *, int *, const void *, int);
3102
extern char *elfcore_write_ppc_tm_cfpr
3103
  (bfd *, char *, int *, const void *, int);
3104
extern char *elfcore_write_ppc_tm_cvmx
3105
  (bfd *, char *, int *, const void *, int);
3106
extern char *elfcore_write_ppc_tm_cvsx
3107
  (bfd *, char *, int *, const void *, int);
3108
extern char *elfcore_write_ppc_tm_spr
3109
  (bfd *, char *, int *, const void *, int);
3110
extern char *elfcore_write_ppc_tm_ctar
3111
  (bfd *, char *, int *, const void *, int);
3112
extern char *elfcore_write_ppc_tm_cppr
3113
  (bfd *, char *, int *, const void *, int);
3114
extern char *elfcore_write_ppc_tm_cdscr
3115
  (bfd *, char *, int *, const void *, int);
3116
extern char *elfcore_write_ppc_dmr
3117
  (bfd *, char *, int *, const void *, int);
3118
extern char *elfcore_write_s390_timer
3119
  (bfd *, char *, int *, const void *, int);
3120
extern char *elfcore_write_s390_todcmp
3121
  (bfd *, char *, int *, const void *, int);
3122
extern char *elfcore_write_s390_todpreg
3123
  (bfd *, char *, int *, const void *, int);
3124
extern char *elfcore_write_s390_ctrs
3125
  (bfd *, char *, int *, const void *, int);
3126
extern char *elfcore_write_s390_prefix
3127
  (bfd *, char *, int *, const void *, int);
3128
extern char *elfcore_write_s390_last_break
3129
  (bfd *, char *, int *, const void *, int);
3130
extern char *elfcore_write_s390_system_call
3131
  (bfd *, char *, int *, const void *, int);
3132
extern char *elfcore_write_s390_tdb
3133
  (bfd *, char *, int *, const void *, int);
3134
extern char *elfcore_write_s390_vxrs_low
3135
  (bfd *, char *, int *, const void *, int);
3136
extern char *elfcore_write_s390_vxrs_high
3137
  (bfd *, char *, int *, const void *, int);
3138
extern char *elfcore_write_s390_gs_cb
3139
  (bfd *, char *, int *, const void *, int);
3140
extern char *elfcore_write_s390_gs_bc
3141
  (bfd *, char *, int *, const void *, int);
3142
extern char *elfcore_write_arm_vfp
3143
  (bfd *, char *, int *, const void *, int);
3144
extern char *elfcore_write_aarch_tls
3145
  (bfd *, char *, int *, const void *, int);
3146
extern char *elfcore_write_aarch_hw_break
3147
  (bfd *, char *, int *, const void *, int);
3148
extern char *elfcore_write_aarch_hw_watch
3149
  (bfd *, char *, int *, const void *, int);
3150
extern char *elfcore_write_aarch_sve
3151
  (bfd *, char *, int *, const void *, int);
3152
extern char *elfcore_write_aarch_pauth
3153
  (bfd *, char *, int *, const void *, int);
3154
extern char *elfcore_write_aarch_mte
3155
  (bfd *, char *, int *, const void *, int);
3156
extern char *elfcore_write_aarch_ssve
3157
  (bfd *, char *, int *, const void *, int);
3158
extern char *elfcore_write_aarch_za
3159
  (bfd *, char *, int *, const void *, int);
3160
extern char *elfcore_write_aarch_zt
3161
  (bfd *, char *, int *, const void *, int);
3162
extern char *elfcore_write_aarch_fpmr
3163
  (bfd *, char *, int *, const void *, int);
3164
extern char *elfcore_write_arc_v2
3165
  (bfd *, char *, int *, const void *, int);
3166
extern char *elfcore_write_riscv_csr
3167
  (bfd *, char *, int *, const void *, int);
3168
extern char *elfcore_write_gdb_tdesc
3169
  (bfd *, char *, int *, const void *, int);
3170
extern char *elfcore_write_lwpstatus
3171
  (bfd *, char *, int *, long, int, const void *);
3172
extern char *elfcore_write_register_note
3173
  (bfd *, char *, int *, const char *, const void *, int);
3174
extern char *elfcore_write_file_note
3175
  (bfd *, char *, int *, const void*, int);
3176
extern char *elfcore_write_loongarch_cpucfg
3177
  (bfd *, char *, int *, const void*, int);
3178
extern char *elfcore_write_loongarch_lbt
3179
  (bfd *, char *, int *, const void*, int);
3180
extern char *elfcore_write_loongarch_lsx
3181
  (bfd *, char *, int *, const void*, int);
3182
extern char *elfcore_write_loongarch_lasx
3183
  (bfd *, char *, int *, const void*, int);
3184
3185
/* Internal structure which holds information to be included in the
3186
   PRPSINFO section of Linux core files.
3187
3188
   This is an "internal" structure in the sense that it should be used
3189
   to pass information to BFD (via the `elfcore_write_linux_prpsinfo'
3190
   function), so things like endianess shouldn't be an issue.  This
3191
   structure will eventually be converted in one of the
3192
   `elf_external_linux_*' structures and written out to an output bfd
3193
   by one of the functions declared below.  */
3194
3195
struct elf_internal_linux_prpsinfo
3196
  {
3197
    char pr_state;      /* Numeric process state.  */
3198
    char pr_sname;      /* Char for pr_state.  */
3199
    char pr_zomb;     /* Zombie.  */
3200
    char pr_nice;     /* Nice val.  */
3201
    unsigned long pr_flag;    /* Flags.  */
3202
    unsigned int pr_uid;
3203
    unsigned int pr_gid;
3204
    int pr_pid, pr_ppid, pr_pgrp, pr_sid;
3205
    char pr_fname[16 + 1];    /* Filename of executable.  */
3206
    char pr_psargs[80 + 1];   /* Initial part of arg list.  */
3207
  };
3208
3209
/* Linux/most 32-bit archs.  */
3210
extern char *elfcore_write_linux_prpsinfo32
3211
  (bfd *, char *, int *, const struct elf_internal_linux_prpsinfo *);
3212
3213
/* Linux/most 64-bit archs.  */
3214
extern char *elfcore_write_linux_prpsinfo64
3215
  (bfd *, char *, int *, const struct elf_internal_linux_prpsinfo *);
3216
3217
extern bfd *_bfd_elf32_bfd_from_remote_memory
3218
  (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep,
3219
   int (*target_read_memory) (bfd_vma, bfd_byte *, bfd_size_type))
3220
  ATTRIBUTE_HIDDEN;
3221
extern bfd *_bfd_elf64_bfd_from_remote_memory
3222
  (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep,
3223
   int (*target_read_memory) (bfd_vma, bfd_byte *, bfd_size_type))
3224
  ATTRIBUTE_HIDDEN;
3225
3226
extern bfd_vma bfd_elf_obj_attr_size (bfd *);
3227
extern void bfd_elf_set_obj_attr_contents (bfd *, bfd_byte *, bfd_vma);
3228
extern obj_attribute *
3229
bfd_elf_new_obj_attr (bfd *, obj_attr_vendor_t, obj_attr_tag_t);
3230
extern int bfd_elf_get_obj_attr_int (bfd *, obj_attr_vendor_t, obj_attr_tag_t);
3231
extern obj_attribute *bfd_elf_add_obj_attr_int
3232
  (bfd *, obj_attr_vendor_t, obj_attr_tag_t, unsigned int);
3233
#define bfd_elf_add_proc_attr_int(BFD, TAG, VALUE) \
3234
  bfd_elf_add_obj_attr_int ((BFD), OBJ_ATTR_PROC, (TAG), (VALUE))
3235
extern obj_attribute *bfd_elf_add_obj_attr_string
3236
  (bfd *, obj_attr_vendor_t, obj_attr_tag_t, const char *);
3237
#define bfd_elf_add_proc_attr_string(BFD, TAG, VALUE) \
3238
  bfd_elf_add_obj_attr_string ((BFD), OBJ_ATTR_PROC, (TAG), (VALUE))
3239
extern obj_attribute *bfd_elf_add_obj_attr_int_string
3240
  (bfd *, obj_attr_vendor_t, obj_attr_tag_t, unsigned int, const char *);
3241
#define bfd_elf_add_proc_attr_int_string(BFD, TAG, INTVAL, STRVAL) \
3242
  bfd_elf_add_obj_attr_int_string ((BFD), OBJ_ATTR_PROC, (TAG), \
3243
           (INTVAL), (STRVAL))
3244
extern int bfd_elf_obj_attrs_arg_type
3245
  (bfd *, obj_attr_vendor_t, obj_attr_tag_t);
3246
extern bfd *_bfd_elf_link_setup_object_attributes
3247
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
3248
3249
#ifdef OBJ_MAYBE_ELF_ATTRIBUTES
3250
3251
extern obj_attr_version_t _bfd_obj_attrs_version_dec (uint8_t)
3252
  ATTRIBUTE_HIDDEN;
3253
extern uint8_t _bfd_obj_attrs_version_enc (obj_attr_version_t)
3254
  ATTRIBUTE_HIDDEN;
3255
extern bool _bfd_elf_write_section_object_attributes
3256
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
3257
extern char *_bfd_elf_attr_strdup
3258
  (bfd *, const char *) ATTRIBUTE_HIDDEN;
3259
extern void _bfd_elf_copy_obj_attributes
3260
  (bfd *, bfd *) ATTRIBUTE_HIDDEN;
3261
extern void _bfd_elf_parse_attributes
3262
  (bfd *, Elf_Internal_Shdr *) ATTRIBUTE_HIDDEN;
3263
extern void _bfd_elf_cleanup_object_attributes
3264
  (bfd *) ATTRIBUTE_HIDDEN;
3265
extern bool _bfd_elf_merge_object_attributes
3266
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
3267
extern bool _bfd_elf_merge_unknown_attribute_low
3268
  (bfd *, bfd *, int) ATTRIBUTE_HIDDEN;
3269
extern bool _bfd_elf_merge_unknown_attribute_list
3270
  (bfd *, bfd *) ATTRIBUTE_HIDDEN;
3271
3272
#else /* !OBJ_MAYBE_ELF_ATTRIBUTES */
3273
3274
static inline bool _bfd_elf_write_section_object_attributes
3275
  (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED)
3276
0
{ return true; }
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: arc-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: arm-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: csky-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: kvx-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: m32c-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: mep-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: ppc-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: pru-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: rl78-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: score-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: score7-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: bpf-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: mips-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: nfp-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: riscv-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: fuzz_as.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: codeview.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: cond.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: depend.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: ehopt.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: expr.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: frags.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: gen-sframe.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: input-scrub.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: listing.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: macro.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: messages.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: output-file.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: read.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: remap.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: sb.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: stabs.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: subsegs.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: symbols.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: write.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: app.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: atof-generic.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: ecoff.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: flonum-copy.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: ginsn.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: hash.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: input-file.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: scfi.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: sframe-opt.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: tc-i386.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: obj-elf.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: atof-ieee.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_write_section_object_attributes
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_write_section_object_attributes
3277
static inline void _bfd_elf_copy_obj_attributes
3278
  (bfd *ibfd ATTRIBUTE_UNUSED, bfd *obfd ATTRIBUTE_UNUSED)
3279
0
{}
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: arc-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: arm-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: csky-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: kvx-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: m32c-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: mep-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: ppc-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: pru-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: rl78-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: score-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: score7-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: bpf-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: mips-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: nfp-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: riscv-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: fuzz_as.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: codeview.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: cond.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: depend.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: ehopt.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: expr.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: frags.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: gen-sframe.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: input-scrub.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: listing.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: macro.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: messages.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: output-file.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: read.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: remap.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: sb.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: stabs.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: subsegs.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: symbols.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: write.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: app.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: atof-generic.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: ecoff.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: flonum-copy.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: ginsn.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: hash.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: input-file.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: scfi.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: sframe-opt.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: tc-i386.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: obj-elf.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: atof-ieee.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_copy_obj_attributes
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_copy_obj_attributes
3280
static inline void _bfd_elf_parse_attributes
3281
  (bfd *abfd ATTRIBUTE_UNUSED, Elf_Internal_Shdr *hdr ATTRIBUTE_UNUSED)
3282
0
{}
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_parse_attributes
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_parse_attributes
Unexecuted instantiation: arc-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: arm-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: csky-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: kvx-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: m32c-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: mep-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: ppc-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: pru-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: rl78-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: score-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: score7-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: bpf-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: mips-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: nfp-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: riscv-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_parse_attributes
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_parse_attributes
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_parse_attributes
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_parse_attributes
Unexecuted instantiation: fuzz_as.c:_bfd_elf_parse_attributes
Unexecuted instantiation: codeview.c:_bfd_elf_parse_attributes
Unexecuted instantiation: cond.c:_bfd_elf_parse_attributes
Unexecuted instantiation: depend.c:_bfd_elf_parse_attributes
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_parse_attributes
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_parse_attributes
Unexecuted instantiation: ehopt.c:_bfd_elf_parse_attributes
Unexecuted instantiation: expr.c:_bfd_elf_parse_attributes
Unexecuted instantiation: frags.c:_bfd_elf_parse_attributes
Unexecuted instantiation: gen-sframe.c:_bfd_elf_parse_attributes
Unexecuted instantiation: input-scrub.c:_bfd_elf_parse_attributes
Unexecuted instantiation: listing.c:_bfd_elf_parse_attributes
Unexecuted instantiation: macro.c:_bfd_elf_parse_attributes
Unexecuted instantiation: messages.c:_bfd_elf_parse_attributes
Unexecuted instantiation: output-file.c:_bfd_elf_parse_attributes
Unexecuted instantiation: read.c:_bfd_elf_parse_attributes
Unexecuted instantiation: remap.c:_bfd_elf_parse_attributes
Unexecuted instantiation: sb.c:_bfd_elf_parse_attributes
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_parse_attributes
Unexecuted instantiation: stabs.c:_bfd_elf_parse_attributes
Unexecuted instantiation: subsegs.c:_bfd_elf_parse_attributes
Unexecuted instantiation: symbols.c:_bfd_elf_parse_attributes
Unexecuted instantiation: write.c:_bfd_elf_parse_attributes
Unexecuted instantiation: app.c:_bfd_elf_parse_attributes
Unexecuted instantiation: atof-generic.c:_bfd_elf_parse_attributes
Unexecuted instantiation: ecoff.c:_bfd_elf_parse_attributes
Unexecuted instantiation: flonum-copy.c:_bfd_elf_parse_attributes
Unexecuted instantiation: ginsn.c:_bfd_elf_parse_attributes
Unexecuted instantiation: hash.c:_bfd_elf_parse_attributes
Unexecuted instantiation: input-file.c:_bfd_elf_parse_attributes
Unexecuted instantiation: scfi.c:_bfd_elf_parse_attributes
Unexecuted instantiation: sframe-opt.c:_bfd_elf_parse_attributes
Unexecuted instantiation: tc-i386.c:_bfd_elf_parse_attributes
Unexecuted instantiation: obj-elf.c:_bfd_elf_parse_attributes
Unexecuted instantiation: atof-ieee.c:_bfd_elf_parse_attributes
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_parse_attributes
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_parse_attributes
3283
static inline void _bfd_elf_cleanup_object_attributes
3284
  (bfd *abfd ATTRIBUTE_UNUSED)
3285
0
{}
Unexecuted instantiation: fuzz_nm.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: fuzz_objdump.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: arc-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: arm-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: csky-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: kvx-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: m32c-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: mep-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: ppc-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: pru-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: rl78-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: score-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: score7-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: tilepro-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: wasm32-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: aarch64-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: bpf-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: mips-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: nfp-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: riscv-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: tilegx-dis.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: ctf-serialize.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: ctf-open-bfd.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: fuzz_addr2line.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: fuzz_as.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: codeview.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: cond.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: depend.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: dw2gencfi.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: dwarf2dbg.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: ehopt.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: expr.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: frags.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: gen-sframe.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: input-scrub.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: listing.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: macro.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: messages.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: output-file.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: read.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: remap.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: sb.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: scfidw2gen.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: stabs.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: subsegs.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: symbols.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: write.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: app.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: atof-generic.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: ecoff.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: flonum-copy.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: ginsn.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: hash.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: input-file.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: scfi.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: sframe-opt.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: tc-i386.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: obj-elf.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: atof-ieee.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: fuzz_dwarf.c:_bfd_elf_cleanup_object_attributes
Unexecuted instantiation: fuzz_objcopy.c:_bfd_elf_cleanup_object_attributes
3286
3287
#endif /* OBJ_MAYBE_ELF_ATTRIBUTES */
3288
3289
extern Elf_Internal_Shdr *_bfd_elf_single_rel_hdr
3290
  (asection *sec);
3291
extern bool _bfd_elf_read_notes
3292
  (bfd *, file_ptr, bfd_size_type, size_t) ATTRIBUTE_HIDDEN;
3293
3294
extern obj_attr_v2_t *bfd_elf_obj_attr_v2_init (obj_attr_tag_t,
3295
  union obj_attr_value_v2);
3296
extern void _bfd_elf_obj_attr_v2_free (obj_attr_v2_t *, obj_attr_encoding_v2_t)
3297
  ATTRIBUTE_HIDDEN;
3298
extern obj_attr_v2_t *_bfd_elf_obj_attr_v2_copy (const obj_attr_v2_t *,
3299
  obj_attr_encoding_v2_t) ATTRIBUTE_HIDDEN;
3300
extern int _bfd_elf_obj_attr_v2_cmp (const obj_attr_v2_t *,
3301
  const obj_attr_v2_t *) ATTRIBUTE_HIDDEN;
3302
extern obj_attr_v2_t *bfd_obj_attr_v2_find_by_tag
3303
  (const obj_attr_subsection_v2_t *, obj_attr_tag_t, bool);
3304
extern void bfd_obj_attr_subsection_v2_append
3305
  (obj_attr_subsection_v2_t *, obj_attr_v2_t *);
3306
LINKED_LIST_MUTATIVE_OPS_PROTOTYPE (obj_attr_subsection_v2_t,
3307
            obj_attr_v2_t, ATTRIBUTE_HIDDEN);
3308
LINKED_LIST_MERGE_SORT_PROTOTYPE_ (obj_attr_v2_t, ATTRIBUTE_HIDDEN);
3309
LINKED_LIST_MERGE_SORT_PROTOTYPE (obj_attr_subsection_v2_t,
3310
          obj_attr_v2_t, ATTRIBUTE_HIDDEN);
3311
extern obj_attr_subsection_v2_t *bfd_elf_obj_attr_subsection_v2_init
3312
  (const char *, obj_attr_subsection_scope_v2_t, bool, obj_attr_encoding_v2_t);
3313
extern void _bfd_elf_obj_attr_subsection_v2_free (obj_attr_subsection_v2_t *)
3314
  ATTRIBUTE_HIDDEN;
3315
extern int _bfd_elf_obj_attr_subsection_v2_cmp
3316
  (const obj_attr_subsection_v2_t *, const obj_attr_subsection_v2_t *)
3317
  ATTRIBUTE_HIDDEN;
3318
extern obj_attr_subsection_v2_t *bfd_obj_attr_subsection_v2_find_by_name
3319
  (obj_attr_subsection_v2_t *, const char *, bool);
3320
extern obj_attr_subsection_scope_v2_t bfd_elf_obj_attr_subsection_v2_scope
3321
  (const bfd *, const char *);
3322
extern void bfd_obj_attr_subsection_v2_list_append
3323
  (obj_attr_subsection_list_t *, obj_attr_subsection_v2_t *);
3324
extern obj_attr_subsection_v2_t *bfd_obj_attr_subsection_v2_list_remove
3325
  (obj_attr_subsection_list_t *, obj_attr_subsection_v2_t *);
3326
LINKED_LIST_MUTATIVE_OPS_PROTOTYPE (obj_attr_subsection_list_t,
3327
            obj_attr_subsection_v2_t,
3328
            ATTRIBUTE_HIDDEN);
3329
LINKED_LIST_MERGE_SORT_PROTOTYPE_ (obj_attr_subsection_v2_t, ATTRIBUTE_HIDDEN);
3330
LINKED_LIST_MERGE_SORT_PROTOTYPE (obj_attr_subsection_list_t,
3331
          obj_attr_subsection_v2_t, ATTRIBUTE_HIDDEN);
3332
3333
extern bool _bfd_elf_parse_gnu_properties
3334
  (bfd *, Elf_Internal_Note *) ATTRIBUTE_HIDDEN;
3335
extern elf_property_list * _bfd_elf_find_property
3336
  (elf_property_list *, unsigned int, elf_property_list **) ATTRIBUTE_HIDDEN;
3337
extern elf_property * _bfd_elf_get_property
3338
  (bfd *, unsigned int, unsigned int) ATTRIBUTE_HIDDEN;
3339
extern bfd *_bfd_elf_link_setup_gnu_properties
3340
  (struct bfd_link_info *) ATTRIBUTE_HIDDEN;
3341
extern bfd_size_type _bfd_elf_convert_gnu_property_size
3342
  (bfd *, bfd *) ATTRIBUTE_HIDDEN;
3343
extern bool _bfd_elf_convert_gnu_properties
3344
  (bfd *, asection *, bfd *, bfd_byte **, bfd_size_type *) ATTRIBUTE_HIDDEN;
3345
3346
/* The linker may need to keep track of the number of relocs that it
3347
   decides to copy as dynamic relocs in check_relocs for each symbol.
3348
   This is so that it can later discard them if they are found to be
3349
   unnecessary.  We can store the information in a field extending the
3350
   regular ELF linker hash table.  */
3351
3352
struct elf_dyn_relocs
3353
{
3354
  struct elf_dyn_relocs *next;
3355
3356
  /* The input section of the reloc.  */
3357
  asection *sec;
3358
3359
  /* Total number of relocs copied for the input section.  */
3360
  bfd_size_type count;
3361
3362
  /* Number of pc-relative relocs copied for the input section.  */
3363
  bfd_size_type pc_count;
3364
};
3365
3366
extern bool _bfd_elf_create_ifunc_sections
3367
  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
3368
extern bool _bfd_elf_allocate_ifunc_dyn_relocs
3369
  (struct bfd_link_info *, struct elf_link_hash_entry *,
3370
   struct elf_dyn_relocs **, unsigned int, unsigned int,
3371
   unsigned int, bool) ATTRIBUTE_HIDDEN;
3372
3373
extern void _bfd_elf_append_rela
3374
  (bfd *, asection *, Elf_Internal_Rela *) ATTRIBUTE_HIDDEN;
3375
extern void _bfd_elf_append_rel
3376
  (bfd *, asection *, Elf_Internal_Rela *) ATTRIBUTE_HIDDEN;
3377
3378
extern bfd_vma elf64_r_info (bfd_vma, bfd_vma);
3379
extern bfd_vma elf64_r_sym (bfd_vma);
3380
extern bfd_vma elf32_r_info (bfd_vma, bfd_vma);
3381
extern bfd_vma elf32_r_sym (bfd_vma);
3382
3383
extern bool is_debuginfo_file (bfd *);
3384
3385
3386
extern bool _bfd_elf_init_secondary_reloc_section
3387
  (bfd *, Elf_Internal_Shdr *, const char *, unsigned int) ATTRIBUTE_HIDDEN;
3388
extern bool _bfd_elf_slurp_secondary_reloc_section
3389
  (bfd *, asection *, asymbol **, bool) ATTRIBUTE_HIDDEN;
3390
extern bool _bfd_elf_copy_special_section_fields
3391
  (const bfd *, bfd *, const Elf_Internal_Shdr *, Elf_Internal_Shdr *)
3392
  ATTRIBUTE_HIDDEN;
3393
extern bool _bfd_elf_write_secondary_reloc_section
3394
  (bfd *, asection *) ATTRIBUTE_HIDDEN;
3395
extern unsigned int _bfd_elf_symbol_section_index
3396
  (bfd *, elf_symbol_type *) ATTRIBUTE_HIDDEN;
3397
3398
extern asection *_bfd_elf_readonly_dynrelocs
3399
  (struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN;
3400
extern bool _bfd_elf_maybe_set_textrel
3401
  (struct elf_link_hash_entry *, void *) ATTRIBUTE_HIDDEN;
3402
3403
extern bool _bfd_elf_add_dynamic_tags
3404
  (struct bfd_link_info *, bool) ATTRIBUTE_HIDDEN;
3405
3406
extern bool _bfd_elf_mmap_section_contents
3407
  (bfd *abfd, asection *section, bfd_byte **buf) ATTRIBUTE_HIDDEN;
3408
extern void _bfd_elf_munmap_section_contents
3409
  (asection *, void *) ATTRIBUTE_HIDDEN;
3410
extern bool _bfd_elf_link_mmap_section_contents
3411
  (bfd *abfd, asection *section, bfd_byte **buf) ATTRIBUTE_HIDDEN;
3412
extern void _bfd_elf_link_munmap_section_contents
3413
  (asection *) ATTRIBUTE_HIDDEN;
3414
3415
extern struct elf_link_hash_entry * _bfd_elf_get_link_hash_entry
3416
  (struct elf_link_hash_entry **, unsigned int, unsigned int, unsigned int)
3417
  ATTRIBUTE_HIDDEN;
3418
extern asection *_bfd_get_local_sym_section
3419
  (struct elf_reloc_cookie *, unsigned int) ATTRIBUTE_HIDDEN;
3420
3421
/* Large common section (x86 only).  */
3422
extern asection bfd_elf_large_com_section;
3423
3424
/* Hash for local symbol with the first section id, ID, in the input
3425
   file and the local symbol index, SYM.  */
3426
#define ELF_LOCAL_SYMBOL_HASH(ID, SYM) \
3427
0
  (((((ID) & 0xffU) << 24) | (((ID) & 0xff00) << 8)) \
3428
0
   ^ (SYM) ^ (((ID) & 0xffff0000U) >> 16))
3429
3430
/* This is the condition under which finish_dynamic_symbol will be called.
3431
   If our finish_dynamic_symbol isn't called, we'll need to do something
3432
   about initializing any .plt and .got entries in relocate_section.  */
3433
#define WILL_CALL_FINISH_DYNAMIC_SYMBOL(DYN, SHARED, H) \
3434
0
  ((DYN)                \
3435
0
   && ((SHARED) || !(H)->forced_local)         \
3436
0
   && ((H)->dynindx != -1 || (H)->forced_local))
3437
3438
/* This macro is to avoid lots of duplicated code in the body
3439
   of xxx_relocate_section() in the various elfxx-xxxx.c files.  */
3440
#define RELOC_FOR_GLOBAL_SYMBOL(info, input_bfd, input_section, rel,  \
3441
        r_symndx, symtab_hdr, sym_hashes, \
3442
        h, sec, relocation,     \
3443
        unresolved_reloc, warned, ignored)  \
3444
0
  do                  \
3445
0
    {                 \
3446
0
      h = sym_hashes[r_symndx - symtab_hdr->sh_info];     \
3447
0
                  \
3448
0
      if (info->wrap_hash != NULL          \
3449
0
    && (input_section->flags & SEC_DEBUGGING) != 0)   \
3450
0
  {               \
3451
0
    struct bfd_link_hash_entry * new_h;       \
3452
0
    new_h = unwrap_hash_lookup (info, input_bfd, &h->root); \
3453
0
    /* PR 31710: This lookup can fail if the input source has a \
3454
0
       symbol that starts with __wrap_.  */     \
3455
0
    if (new_h != NULL)           \
3456
0
      h = (struct elf_link_hash_entry *) new_h;     \
3457
0
  }               \
3458
0
                  \
3459
0
      while (h->root.type == bfd_link_hash_indirect      \
3460
0
       || h->root.type == bfd_link_hash_warning)     \
3461
0
  h = (struct elf_link_hash_entry *) h->root.u.i.link;   \
3462
0
                  \
3463
0
      warned = false;             \
3464
0
      ignored = false;              \
3465
0
      unresolved_reloc = false;           \
3466
0
      relocation = 0;             \
3467
0
      if (h->root.type == bfd_link_hash_defined        \
3468
0
    || h->root.type == bfd_link_hash_defweak)     \
3469
0
  {               \
3470
0
    sec = h->root.u.def.section;          \
3471
0
    if (sec == NULL            \
3472
0
        || sec->output_section == NULL)       \
3473
0
      /* Set a flag that will be cleared later if we find a \
3474
0
         relocation value for this symbol.  output_section  \
3475
0
         is typically NULL for symbols satisfied by a shared  \
3476
0
         library.  */           \
3477
0
      unresolved_reloc = true;         \
3478
0
    else                \
3479
0
      relocation = (h->root.u.def.value       \
3480
0
        + sec->output_section->vma      \
3481
0
        + sec->output_offset);     \
3482
0
  }               \
3483
0
      else if (h->root.type == bfd_link_hash_undefweak)     \
3484
0
  ;                \
3485
0
      else if (info->unresolved_syms_in_objects == RM_IGNORE    \
3486
0
         && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT)   \
3487
0
  ignored = true;             \
3488
0
      else if (!bfd_link_relocatable (info))        \
3489
0
  {               \
3490
0
    bool err = ((info->unresolved_syms_in_objects == RM_DIAGNOSE  \
3491
0
           && !info->warn_unresolved_syms)     \
3492
0
          || ELF_ST_VISIBILITY (h->other) != STV_DEFAULT);  \
3493
0
    (*info->callbacks->undefined_symbol) (info,     \
3494
0
            h->root.root.string,  \
3495
0
            input_bfd,    \
3496
0
            input_section,    \
3497
0
            rel->r_offset, err);  \
3498
0
    warned = true;            \
3499
0
  }               \
3500
0
      (void) unresolved_reloc;            \
3501
0
      (void) warned;              \
3502
0
      (void) ignored;             \
3503
0
    }                 \
3504
0
  while (0)
3505
3506
/* This macro is to avoid lots of duplicated code in the body of the
3507
   loop over relocations in xxx_relocate_section() in the various
3508
   elfxx-xxxx.c files.
3509
3510
   Handle relocations against symbols from removed linkonce sections,
3511
   or sections discarded by a linker script.  When doing a relocatable
3512
   link, we remove such relocations.  Otherwise, we just want the
3513
   section contents zeroed and avoid any special processing.  */
3514
#define RELOC_AGAINST_DISCARDED_SECTION(info, input_bfd, input_section, \
3515
          rel, count, relend, rnone,  \
3516
          howto, index, contents)   \
3517
0
  {                 \
3518
0
    _bfd_clear_contents (howto, input_bfd, input_section,   \
3519
0
       contents, rel[index].r_offset);    \
3520
0
                  \
3521
0
    /* For ld -r, remove relocations in debug and sframe sections \
3522
0
       against symbols defined in discarded sections.  Not done for \
3523
0
       others.  In particular the .eh_frame editing code expects  \
3524
0
       such relocs to be present.  */         \
3525
0
    if (bfd_link_relocatable (info)         \
3526
0
  && ((input_section->flags & SEC_DEBUGGING) != 0      \
3527
0
      || elf_section_type (input_section) == SHT_GNU_SFRAME))  \
3528
0
      {                 \
3529
0
  Elf_Internal_Shdr *rel_hdr          \
3530
0
    = _bfd_elf_single_rel_hdr (input_section->output_section);  \
3531
0
                  \
3532
0
  rel_hdr->sh_size -= rel_hdr->sh_entsize;      \
3533
0
  rel_hdr = _bfd_elf_single_rel_hdr (input_section);    \
3534
0
  rel_hdr->sh_size -= rel_hdr->sh_entsize;      \
3535
0
                  \
3536
0
  memmove (rel, rel + count,          \
3537
0
     (relend - rel - count) * sizeof (*rel));   \
3538
0
                  \
3539
0
  input_section->reloc_count -= count;        \
3540
0
  relend -= count;            \
3541
0
  rel--;                \
3542
0
  continue;             \
3543
0
      }                  \
3544
0
                  \
3545
0
    for (int i_ = 0; i_ < count; i_++)         \
3546
0
      {                 \
3547
0
  rel[i_].r_info = rnone;           \
3548
0
  rel[i_].r_addend = 0;           \
3549
0
      }                  \
3550
0
    rel += count - 1;             \
3551
0
    continue;               \
3552
0
  }
3553
3554
/* Will a symbol be bound to the definition within the shared
3555
   library, if any.  A unique symbol can never be bound locally.  */
3556
#define SYMBOLIC_BIND(INFO, H) \
3557
0
    (!(H)->unique_global \
3558
0
     && ((INFO)->symbolic \
3559
0
   || (H)->start_stop \
3560
0
   || ((INFO)->dynamic && !(H)->dynamic)))
3561
3562
/* Determine if a section contains CTF data, using its name.  */
3563
static inline bool
3564
bfd_section_is_ctf (const asection *sec)
3565
0
{
3566
0
  const char *name = bfd_section_name (sec);
3567
0
  return startswith (name, ".ctf") && (name[4] == 0 || name[4] == '.');
3568
0
}
Unexecuted instantiation: fuzz_nm.c:bfd_section_is_ctf
Unexecuted instantiation: bfd.c:bfd_section_is_ctf
Unexecuted instantiation: format.c:bfd_section_is_ctf
Unexecuted instantiation: libbfd.c:bfd_section_is_ctf
Unexecuted instantiation: opncls.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-x86-64.c:bfd_section_is_ctf
Unexecuted instantiation: elfxx-x86.c:bfd_section_is_ctf
Unexecuted instantiation: elf-ifunc.c:bfd_section_is_ctf
Unexecuted instantiation: elf64.c:bfd_section_is_ctf
Unexecuted instantiation: elf-sframe.c:bfd_section_is_ctf
Unexecuted instantiation: elf.c:bfd_section_is_ctf
Unexecuted instantiation: elflink.c:bfd_section_is_ctf
Unexecuted instantiation: elf-strtab.c:bfd_section_is_ctf
Unexecuted instantiation: elf-eh-frame.c:bfd_section_is_ctf
Unexecuted instantiation: elf-properties.c:bfd_section_is_ctf
Unexecuted instantiation: dwarf1.c:bfd_section_is_ctf
Unexecuted instantiation: dwarf2.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-i386.c:bfd_section_is_ctf
Unexecuted instantiation: elf32.c:bfd_section_is_ctf
Unexecuted instantiation: cofflink.c:bfd_section_is_ctf
Unexecuted instantiation: coffgen.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-gen.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-gen.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-aarch64.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-ia64.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-kvx.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-loongarch.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-mips.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-riscv.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-score.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-score7.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-aarch64.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-alpha.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-amdgcn.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-bpf.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-hppa.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-ia64-vms.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-ia64.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-kvx.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-loongarch.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-mips.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-mmix.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-nfp.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-ppc.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-riscv.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-s390.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-sparc.c:bfd_section_is_ctf
Unexecuted instantiation: elf64-tilegx.c:bfd_section_is_ctf
Unexecuted instantiation: elfn32-mips.c:bfd_section_is_ctf
Unexecuted instantiation: elfxx-aarch64.c:bfd_section_is_ctf
Unexecuted instantiation: elfxx-ia64.c:bfd_section_is_ctf
Unexecuted instantiation: elfxx-kvx.c:bfd_section_is_ctf
Unexecuted instantiation: elfxx-loongarch.c:bfd_section_is_ctf
Unexecuted instantiation: elfxx-mips.c:bfd_section_is_ctf
Unexecuted instantiation: elfxx-riscv.c:bfd_section_is_ctf
Unexecuted instantiation: elf-attrs.c:bfd_section_is_ctf
Unexecuted instantiation: elf-m10200.c:bfd_section_is_ctf
Unexecuted instantiation: elf-m10300.c:bfd_section_is_ctf
Unexecuted instantiation: elf-solaris2.c:bfd_section_is_ctf
Unexecuted instantiation: elf-vxworks.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-am33lin.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-arc.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-arm.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-avr.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-bfin.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-cr16.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-cris.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-crx.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-csky.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-d10v.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-d30v.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-dlx.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-epiphany.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-fr30.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-frv.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-ft32.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-h8300.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-hppa.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-ip2k.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-iq2000.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-lm32.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-m32c.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-m32r.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-m68hc11.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-m68hc12.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-m68hc1x.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-m68k.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-mcore.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-mep.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-metag.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-microblaze.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-moxie.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-msp430.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-mt.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-nds32.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-or1k.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-pj.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-ppc.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-pru.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-rl78.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-rx.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-s12z.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-s390.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-sh.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-sparc.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-spu.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-tic6x.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-tilegx.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-tilepro.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-v850.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-vax.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-visium.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-wasm32.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-xgate.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-xstormy16.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-xtensa.c:bfd_section_is_ctf
Unexecuted instantiation: elf32-z80.c:bfd_section_is_ctf
Unexecuted instantiation: elfxx-sparc.c:bfd_section_is_ctf
Unexecuted instantiation: elfxx-tilegx.c:bfd_section_is_ctf
Unexecuted instantiation: cpu-nds32.c:bfd_section_is_ctf
Unexecuted instantiation: compress.c:bfd_section_is_ctf
Unexecuted instantiation: merge.c:bfd_section_is_ctf
Unexecuted instantiation: fuzz_objdump.c:bfd_section_is_ctf
Unexecuted instantiation: arc-dis.c:bfd_section_is_ctf
Unexecuted instantiation: arm-dis.c:bfd_section_is_ctf
Unexecuted instantiation: csky-dis.c:bfd_section_is_ctf
Unexecuted instantiation: kvx-dis.c:bfd_section_is_ctf
Unexecuted instantiation: m32c-dis.c:bfd_section_is_ctf
Unexecuted instantiation: mep-dis.c:bfd_section_is_ctf
Unexecuted instantiation: ppc-dis.c:bfd_section_is_ctf
Unexecuted instantiation: pru-dis.c:bfd_section_is_ctf
Unexecuted instantiation: rl78-dis.c:bfd_section_is_ctf
Unexecuted instantiation: score-dis.c:bfd_section_is_ctf
Unexecuted instantiation: score7-dis.c:bfd_section_is_ctf
Unexecuted instantiation: tilepro-dis.c:bfd_section_is_ctf
Unexecuted instantiation: wasm32-dis.c:bfd_section_is_ctf
Unexecuted instantiation: aarch64-dis.c:bfd_section_is_ctf
Unexecuted instantiation: bpf-dis.c:bfd_section_is_ctf
Unexecuted instantiation: mips-dis.c:bfd_section_is_ctf
Unexecuted instantiation: nfp-dis.c:bfd_section_is_ctf
Unexecuted instantiation: riscv-dis.c:bfd_section_is_ctf
Unexecuted instantiation: tilegx-dis.c:bfd_section_is_ctf
Unexecuted instantiation: ctf-serialize.c:bfd_section_is_ctf
Unexecuted instantiation: ctf-open-bfd.c:bfd_section_is_ctf
Unexecuted instantiation: fuzz_addr2line.c:bfd_section_is_ctf
Unexecuted instantiation: fuzz_as.c:bfd_section_is_ctf
Unexecuted instantiation: codeview.c:bfd_section_is_ctf
Unexecuted instantiation: cond.c:bfd_section_is_ctf
Unexecuted instantiation: depend.c:bfd_section_is_ctf
Unexecuted instantiation: dw2gencfi.c:bfd_section_is_ctf
Unexecuted instantiation: dwarf2dbg.c:bfd_section_is_ctf
Unexecuted instantiation: ehopt.c:bfd_section_is_ctf
Unexecuted instantiation: expr.c:bfd_section_is_ctf
Unexecuted instantiation: frags.c:bfd_section_is_ctf
Unexecuted instantiation: gen-sframe.c:bfd_section_is_ctf
Unexecuted instantiation: input-scrub.c:bfd_section_is_ctf
Unexecuted instantiation: listing.c:bfd_section_is_ctf
Unexecuted instantiation: macro.c:bfd_section_is_ctf
Unexecuted instantiation: messages.c:bfd_section_is_ctf
Unexecuted instantiation: output-file.c:bfd_section_is_ctf
Unexecuted instantiation: read.c:bfd_section_is_ctf
Unexecuted instantiation: remap.c:bfd_section_is_ctf
Unexecuted instantiation: sb.c:bfd_section_is_ctf
Unexecuted instantiation: scfidw2gen.c:bfd_section_is_ctf
Unexecuted instantiation: stabs.c:bfd_section_is_ctf
Unexecuted instantiation: subsegs.c:bfd_section_is_ctf
Unexecuted instantiation: symbols.c:bfd_section_is_ctf
Unexecuted instantiation: write.c:bfd_section_is_ctf
Unexecuted instantiation: app.c:bfd_section_is_ctf
Unexecuted instantiation: atof-generic.c:bfd_section_is_ctf
Unexecuted instantiation: ecoff.c:bfd_section_is_ctf
Unexecuted instantiation: flonum-copy.c:bfd_section_is_ctf
Unexecuted instantiation: ginsn.c:bfd_section_is_ctf
Unexecuted instantiation: hash.c:bfd_section_is_ctf
Unexecuted instantiation: input-file.c:bfd_section_is_ctf
Unexecuted instantiation: scfi.c:bfd_section_is_ctf
Unexecuted instantiation: sframe-opt.c:bfd_section_is_ctf
Unexecuted instantiation: tc-i386.c:bfd_section_is_ctf
Unexecuted instantiation: obj-elf.c:bfd_section_is_ctf
Unexecuted instantiation: atof-ieee.c:bfd_section_is_ctf
Unexecuted instantiation: fuzz_dwarf.c:bfd_section_is_ctf
Unexecuted instantiation: fuzz_objcopy.c:bfd_section_is_ctf
3569
3570
/* Return true if H is local weak undefined.  */
3571
3572
static inline bool
3573
elf_link_local_undefweak_p (struct elf_link_hash_entry *h,
3574
          struct bfd_link_info *info)
3575
0
{
3576
0
  return (h != NULL
3577
0
    && h->root.type == bfd_link_hash_undefweak
3578
0
    && _bfd_elf_symbol_refs_local_p (h, info, false));
3579
0
}
Unexecuted instantiation: fuzz_nm.c:elf_link_local_undefweak_p
Unexecuted instantiation: bfd.c:elf_link_local_undefweak_p
Unexecuted instantiation: format.c:elf_link_local_undefweak_p
Unexecuted instantiation: libbfd.c:elf_link_local_undefweak_p
Unexecuted instantiation: opncls.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-x86-64.c:elf_link_local_undefweak_p
Unexecuted instantiation: elfxx-x86.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf-ifunc.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf-sframe.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf.c:elf_link_local_undefweak_p
Unexecuted instantiation: elflink.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf-strtab.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf-eh-frame.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf-properties.c:elf_link_local_undefweak_p
Unexecuted instantiation: dwarf1.c:elf_link_local_undefweak_p
Unexecuted instantiation: dwarf2.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-i386.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32.c:elf_link_local_undefweak_p
Unexecuted instantiation: cofflink.c:elf_link_local_undefweak_p
Unexecuted instantiation: coffgen.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-gen.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-gen.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-aarch64.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-ia64.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-kvx.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-loongarch.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-mips.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-riscv.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-score.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-score7.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-aarch64.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-alpha.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-amdgcn.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-bpf.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-hppa.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-ia64-vms.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-ia64.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-kvx.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-loongarch.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-mips.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-mmix.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-nfp.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-ppc.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-riscv.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-s390.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-sparc.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf64-tilegx.c:elf_link_local_undefweak_p
Unexecuted instantiation: elfn32-mips.c:elf_link_local_undefweak_p
Unexecuted instantiation: elfxx-aarch64.c:elf_link_local_undefweak_p
Unexecuted instantiation: elfxx-ia64.c:elf_link_local_undefweak_p
Unexecuted instantiation: elfxx-kvx.c:elf_link_local_undefweak_p
Unexecuted instantiation: elfxx-loongarch.c:elf_link_local_undefweak_p
Unexecuted instantiation: elfxx-mips.c:elf_link_local_undefweak_p
Unexecuted instantiation: elfxx-riscv.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf-attrs.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf-m10200.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf-m10300.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf-solaris2.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf-vxworks.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-am33lin.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-arc.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-arm.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-avr.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-bfin.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-cr16.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-cris.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-crx.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-csky.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-d10v.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-d30v.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-dlx.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-epiphany.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-fr30.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-frv.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-ft32.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-h8300.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-hppa.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-ip2k.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-iq2000.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-lm32.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-m32c.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-m32r.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-m68hc11.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-m68hc12.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-m68hc1x.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-m68k.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-mcore.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-mep.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-metag.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-microblaze.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-moxie.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-msp430.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-mt.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-nds32.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-or1k.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-pj.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-ppc.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-pru.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-rl78.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-rx.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-s12z.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-s390.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-sh.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-sparc.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-spu.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-tic6x.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-tilegx.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-tilepro.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-v850.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-vax.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-visium.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-wasm32.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-xgate.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-xstormy16.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-xtensa.c:elf_link_local_undefweak_p
Unexecuted instantiation: elf32-z80.c:elf_link_local_undefweak_p
Unexecuted instantiation: elfxx-sparc.c:elf_link_local_undefweak_p
Unexecuted instantiation: elfxx-tilegx.c:elf_link_local_undefweak_p
Unexecuted instantiation: cpu-nds32.c:elf_link_local_undefweak_p
Unexecuted instantiation: compress.c:elf_link_local_undefweak_p
Unexecuted instantiation: merge.c:elf_link_local_undefweak_p
Unexecuted instantiation: fuzz_objdump.c:elf_link_local_undefweak_p
Unexecuted instantiation: arc-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: arm-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: csky-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: kvx-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: m32c-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: mep-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: ppc-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: pru-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: rl78-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: score-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: score7-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: tilepro-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: wasm32-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: aarch64-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: bpf-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: mips-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: nfp-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: riscv-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: tilegx-dis.c:elf_link_local_undefweak_p
Unexecuted instantiation: ctf-serialize.c:elf_link_local_undefweak_p
Unexecuted instantiation: ctf-open-bfd.c:elf_link_local_undefweak_p
Unexecuted instantiation: fuzz_addr2line.c:elf_link_local_undefweak_p
Unexecuted instantiation: fuzz_as.c:elf_link_local_undefweak_p
Unexecuted instantiation: codeview.c:elf_link_local_undefweak_p
Unexecuted instantiation: cond.c:elf_link_local_undefweak_p
Unexecuted instantiation: depend.c:elf_link_local_undefweak_p
Unexecuted instantiation: dw2gencfi.c:elf_link_local_undefweak_p
Unexecuted instantiation: dwarf2dbg.c:elf_link_local_undefweak_p
Unexecuted instantiation: ehopt.c:elf_link_local_undefweak_p
Unexecuted instantiation: expr.c:elf_link_local_undefweak_p
Unexecuted instantiation: frags.c:elf_link_local_undefweak_p
Unexecuted instantiation: gen-sframe.c:elf_link_local_undefweak_p
Unexecuted instantiation: input-scrub.c:elf_link_local_undefweak_p
Unexecuted instantiation: listing.c:elf_link_local_undefweak_p
Unexecuted instantiation: macro.c:elf_link_local_undefweak_p
Unexecuted instantiation: messages.c:elf_link_local_undefweak_p
Unexecuted instantiation: output-file.c:elf_link_local_undefweak_p
Unexecuted instantiation: read.c:elf_link_local_undefweak_p
Unexecuted instantiation: remap.c:elf_link_local_undefweak_p
Unexecuted instantiation: sb.c:elf_link_local_undefweak_p
Unexecuted instantiation: scfidw2gen.c:elf_link_local_undefweak_p
Unexecuted instantiation: stabs.c:elf_link_local_undefweak_p
Unexecuted instantiation: subsegs.c:elf_link_local_undefweak_p
Unexecuted instantiation: symbols.c:elf_link_local_undefweak_p
Unexecuted instantiation: write.c:elf_link_local_undefweak_p
Unexecuted instantiation: app.c:elf_link_local_undefweak_p
Unexecuted instantiation: atof-generic.c:elf_link_local_undefweak_p
Unexecuted instantiation: ecoff.c:elf_link_local_undefweak_p
Unexecuted instantiation: flonum-copy.c:elf_link_local_undefweak_p
Unexecuted instantiation: ginsn.c:elf_link_local_undefweak_p
Unexecuted instantiation: hash.c:elf_link_local_undefweak_p
Unexecuted instantiation: input-file.c:elf_link_local_undefweak_p
Unexecuted instantiation: scfi.c:elf_link_local_undefweak_p
Unexecuted instantiation: sframe-opt.c:elf_link_local_undefweak_p
Unexecuted instantiation: tc-i386.c:elf_link_local_undefweak_p
Unexecuted instantiation: obj-elf.c:elf_link_local_undefweak_p
Unexecuted instantiation: atof-ieee.c:elf_link_local_undefweak_p
Unexecuted instantiation: fuzz_dwarf.c:elf_link_local_undefweak_p
Unexecuted instantiation: fuzz_objcopy.c:elf_link_local_undefweak_p
3580
3581
#ifdef __cplusplus
3582
}
3583
#endif
3584
#endif /* _LIBELF_H_ */