Coverage Report

Created: 2026-07-25 10:20

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