2002-11-06 14:26:29 +01:00
|
|
|
/* xSYM symbol-file support for BFD.
|
2020-01-01 08:57:01 +01:00
|
|
|
Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
2002-11-06 14:26:29 +01:00
|
|
|
|
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2007-07-03 16:26:43 +02:00
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
2002-11-06 14:26:29 +01:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2002-11-12 16:44:24 +01:00
|
|
|
along with this program; if not, write to the Free Software
|
2007-07-03 16:26:43 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
|
|
|
MA 02110-1301, USA. */
|
2002-11-06 14:26:29 +01:00
|
|
|
|
2012-05-16 16:26:46 +02:00
|
|
|
#include "sysdep.h"
|
2002-11-06 14:26:29 +01:00
|
|
|
#include "bfd.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#ifndef __xSYM_H__
|
|
|
|
#define __xSYM_H__
|
|
|
|
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
#define BFD_SYM_VERSION_STR_3_1 "\013Version 3.1"
|
|
|
|
#define BFD_SYM_VERSION_STR_3_2 "\013Version 3.2"
|
|
|
|
#define BFD_SYM_VERSION_STR_3_3 "\013Version 3.3"
|
|
|
|
#define BFD_SYM_VERSION_STR_3_4 "\013Version 3.4"
|
|
|
|
#define BFD_SYM_VERSION_STR_3_5 "\013Version 3.5"
|
2002-11-06 14:26:29 +01:00
|
|
|
#define BFD_SYM_END_OF_LIST_3_2 0xffff
|
|
|
|
#define BFD_SYM_END_OF_LIST_3_4 0xffffffff
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
#define BFD_SYM_END_OF_LIST BFD_SYM_END_OF_LIST_3_4
|
2002-11-06 14:26:29 +01:00
|
|
|
#define BFD_SYM_FILE_NAME_INDEX_3_2 0xfffe
|
|
|
|
#define BFD_SYM_FILE_NAME_INDEX_3_4 0xfffffffe
|
|
|
|
#define BFD_SYM_FILE_NAME_INDEX BFD_SYM_FILE_NAME_INDEX_3_4
|
|
|
|
#define BFD_SYM_SOURCE_FILE_CHANGE_3_2 0xfffe
|
|
|
|
#define BFD_SYM_SOURCE_FILE_CHANGE_3_4 0xfffffffe
|
|
|
|
#define BFD_SYM_SOURCE_FILE_CHANGE BFD_SYM_SOURCE_FILE_CHANGE_3_4
|
|
|
|
#define BFD_SYM_MAXIMUM_LEGAL_INDEX_3_2 0xfffd
|
|
|
|
#define BFD_SYM_MAXIMUM_LEGAL_INDEX_3_4 0xfffffffd
|
|
|
|
#define BFD_SYM_MAXIMUM_LEGAL_INDEX BFD_SYM_MAXIMUM_LEGAL_INDEX_3_4
|
|
|
|
|
|
|
|
enum bfd_sym_storage_class
|
|
|
|
{
|
|
|
|
BFD_SYM_STORAGE_CLASS_REGISTER = 0,
|
|
|
|
BFD_SYM_STORAGE_CLASS_GLOBAL = 1,
|
|
|
|
BFD_SYM_STORAGE_CLASS_FRAME_RELATIVE = 2,
|
|
|
|
BFD_SYM_STORAGE_CLASS_STACK_RELATIVE = 3,
|
|
|
|
BFD_SYM_STORAGE_CLASS_ABSOLUTE = 4,
|
|
|
|
BFD_SYM_STORAGE_CLASS_CONSTANT = 5,
|
|
|
|
BFD_SYM_STORAGE_CLASS_BIGCONSTANT = 6,
|
|
|
|
BFD_SYM_STORAGE_CLASS_RESOURCE = 99
|
|
|
|
};
|
|
|
|
typedef enum bfd_sym_storage_class bfd_sym_storage_class;
|
|
|
|
|
|
|
|
enum bfd_sym_storage_kind
|
|
|
|
{
|
|
|
|
BFD_SYM_STORAGE_KIND_LOCAL = 0,
|
|
|
|
BFD_SYM_STORAGE_KIND_VALUE = 1,
|
|
|
|
BFD_SYM_STORAGE_KIND_REFERENCE = 2,
|
|
|
|
BFD_SYM_STORAGE_KIND_WITH = 3
|
|
|
|
};
|
|
|
|
typedef enum bfd_sym_storage_kind bfd_sym_storage_kind;
|
|
|
|
|
|
|
|
enum bfd_sym_version
|
|
|
|
{
|
|
|
|
BFD_SYM_VERSION_3_1,
|
|
|
|
BFD_SYM_VERSION_3_2,
|
|
|
|
BFD_SYM_VERSION_3_3,
|
|
|
|
BFD_SYM_VERSION_3_4,
|
|
|
|
BFD_SYM_VERSION_3_5
|
|
|
|
};
|
|
|
|
typedef enum bfd_sym_version bfd_sym_version;
|
|
|
|
|
|
|
|
enum bfd_sym_module_kind
|
|
|
|
{
|
|
|
|
BFD_SYM_MODULE_KIND_NONE = 0,
|
|
|
|
BFD_SYM_MODULE_KIND_PROGRAM = 1,
|
|
|
|
BFD_SYM_MODULE_KIND_UNIT = 2,
|
|
|
|
BFD_SYM_MODULE_KIND_PROCEDURE = 3,
|
|
|
|
BFD_SYM_MODULE_KIND_FUNCTION = 4,
|
|
|
|
BFD_SYM_MODULE_KIND_DATA = 5,
|
|
|
|
BFD_SYM_MODULE_KIND_BLOCK = 6
|
|
|
|
};
|
|
|
|
typedef enum bfd_sym_module_kind bfd_sym_module_kind;
|
|
|
|
|
|
|
|
enum bfd_sym_symbol_scope
|
|
|
|
{
|
|
|
|
BFD_SYM_SYMBOL_SCOPE_LOCAL = 0, /* Object is seen only inside current scope. */
|
|
|
|
BFD_SYM_SYMBOL_SCOPE_GLOBAL = 1 /* Object has global scope. */
|
|
|
|
};
|
|
|
|
typedef enum bfd_sym_symbol_scope bfd_sym_symbol_scope;
|
|
|
|
|
|
|
|
struct bfd_sym_file_reference
|
|
|
|
{
|
|
|
|
unsigned long fref_frte_index; /* File reference table index. */
|
|
|
|
unsigned long fref_offset; /* Absolute offset into source file. */
|
|
|
|
};
|
|
|
|
typedef struct bfd_sym_file_reference bfd_sym_file_reference;
|
|
|
|
|
|
|
|
/* NAME TABLE (NTE). */
|
|
|
|
|
|
|
|
/* RESOURCES TABLE (RTE)
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
All code and data is *defined* to reside in a resource. Even A5
|
|
|
|
relative data is defined to reside in a dummy resource of ResType
|
|
|
|
'gbld'. Code always resides in a resource. Because a code/data
|
|
|
|
is built of many modules, when walking through a resource we must
|
|
|
|
point back to the modules in the order they were defined. This is
|
|
|
|
done by requiring the entries in the Modules Entry table to be
|
|
|
|
ordered by resource/resource-number and by the location in that
|
|
|
|
resource. Hence, the resource table entry points to the first
|
|
|
|
module making up that resource. All modules table entries following
|
|
|
|
that first one with the same restype/resnum are contiguous and offset
|
|
|
|
from that first entry. */
|
|
|
|
|
|
|
|
struct bfd_sym_resources_table_entry
|
|
|
|
{
|
|
|
|
unsigned char rte_res_type[4]; /* Resource Type. */
|
|
|
|
unsigned short rte_res_number; /* Resource Number. */
|
|
|
|
unsigned long rte_nte_index; /* Name of the resource. */
|
|
|
|
unsigned long rte_mte_first; /* Index of first module in the resource. */
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
unsigned long rte_mte_last; /* Index of the last module in the resource. */
|
|
|
|
unsigned long rte_res_size; /* Size of the resource. */
|
2002-11-06 14:26:29 +01:00
|
|
|
};
|
|
|
|
typedef struct bfd_sym_resources_table_entry bfd_sym_resources_table_entry;
|
|
|
|
|
|
|
|
/* MODULES TABLE (MTE)
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
Modules table entries are ordered by their appearance in a resource.
|
|
|
|
(Note that having a single module copied into two resources is not
|
|
|
|
possible). Modules map back to their resource via an index into the
|
|
|
|
resource table and an offset into the resource. Modules also point
|
2003-11-30 19:40:41 +01:00
|
|
|
to their source files, both the definition module and implementation
|
2002-11-06 14:26:29 +01:00
|
|
|
module. Because modules can be textually nested within other
|
|
|
|
modules, a link to the parent (containing) module is required. This
|
|
|
|
module can textually contain other modules. A link to the contiguous
|
|
|
|
list of child (contained) modules is required. Variables, statements,
|
|
|
|
and types defined in the module are pointed to by indexing the head of
|
|
|
|
the contiguous lists of contained variables, contained statements,
|
|
|
|
and contained types. */
|
|
|
|
|
|
|
|
struct bfd_sym_modules_table_entry
|
|
|
|
{
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
unsigned long mte_rte_index; /* Which resource it is in. */
|
|
|
|
unsigned long mte_res_offset; /* Offset into the resource. */
|
|
|
|
unsigned long mte_size; /* Size of module. */
|
|
|
|
char mte_kind; /* What kind of module this is. */
|
|
|
|
char mte_scope; /* How visible is it? */
|
|
|
|
unsigned long mte_parent; /* Containing module. */
|
|
|
|
bfd_sym_file_reference mte_imp_fref; /* Implementation source. */
|
|
|
|
unsigned long mte_imp_end; /* End of implementation source. */
|
|
|
|
unsigned long mte_nte_index; /* The name of the module. */
|
|
|
|
unsigned long mte_cmte_index; /* Modules contained in this. */
|
|
|
|
unsigned long mte_cvte_index; /* Variables contained in this. */
|
|
|
|
unsigned long mte_clte_index; /* Local labels defined here. */
|
|
|
|
unsigned long mte_ctte_index; /* Types contained in this. */
|
|
|
|
unsigned long mte_csnte_idx_1; /* CSNTE index of mte_snbr_first. */
|
|
|
|
unsigned long mte_csnte_idx_2; /* CSNTE index of mte_snbr_last. */
|
2002-11-12 16:44:24 +01:00
|
|
|
};
|
2002-11-06 14:26:29 +01:00
|
|
|
typedef struct bfd_sym_modules_table_entry bfd_sym_modules_table_entry;
|
|
|
|
|
|
|
|
/* FILE REFERENCES TABLE (FRTE)
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
The FILE REFERENCES TABLE maps from source file to module & offset.
|
|
|
|
The table is ordered by increasing file offset. Each new offset
|
|
|
|
references a module.
|
2002-11-12 16:44:24 +01:00
|
|
|
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
FRT = FILE_SOURCE_START
|
|
|
|
FILE_SOURCE_INCREMENT*
|
|
|
|
END_OF_LIST.
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
*** THIS MECHANISM IS VERY SLOW FOR FILE+STATEMENT_NUMBER TO
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
*** MODULE/CODE ADDRESS OPERATIONS. ANOTHER MECHANISM IS
|
|
|
|
*** REQUIRED!! */
|
2002-11-06 14:26:29 +01:00
|
|
|
|
|
|
|
union bfd_sym_file_references_table_entry
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* END_OF_LIST, FILE_NAME_INDEX, or module table entry. */
|
|
|
|
unsigned long type;
|
|
|
|
}
|
|
|
|
generic;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* FILE_NAME_INDEX. */
|
|
|
|
unsigned long type;
|
|
|
|
unsigned long nte_index;
|
|
|
|
unsigned long mod_date;
|
|
|
|
}
|
|
|
|
filename;
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* < FILE_NAME_INDEX. */
|
|
|
|
unsigned long mte_index;
|
|
|
|
unsigned long file_offset;
|
|
|
|
}
|
|
|
|
entry;
|
|
|
|
};
|
|
|
|
typedef union bfd_sym_file_references_table_entry bfd_sym_file_references_table_entry;
|
|
|
|
|
|
|
|
/* CONTAINED MODULES TABLE (CMTE)
|
|
|
|
|
|
|
|
Contained Modules are lists of indices into the modules table. The
|
|
|
|
lists are terminated by an END_OF_LIST index. All entries are of the
|
|
|
|
same size, hence mapping an index into a CMTE list is simple.
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
CMT = MTE_INDEX* END_OF_LIST. */
|
|
|
|
|
|
|
|
union bfd_sym_contained_modules_table_entry
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* END_OF_LIST, index. */
|
|
|
|
unsigned long type;
|
|
|
|
}
|
|
|
|
generic;
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned long mte_index; /* Index into the Modules Table. */
|
|
|
|
unsigned long nte_index; /* The name of the module. */
|
|
|
|
}
|
|
|
|
entry;
|
|
|
|
};
|
|
|
|
typedef union bfd_sym_contained_modules_table_entry bfd_sym_contained_modules_table_entry;
|
|
|
|
|
|
|
|
/* CONTAINED VARIABLES TABLE (CVTE)
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
Contained Variables map into the module table, file table, name table, and type
|
|
|
|
table. Contained Variables are a contiguous list of source file change record,
|
|
|
|
giving the name of and offset into the source file corresponding to all variables
|
|
|
|
following. Variable definition records contain an index into the name table (giving
|
|
|
|
the text of the variable as it appears in the source code), an index into the type
|
|
|
|
table giving the type of the variable, an increment added to the source file
|
|
|
|
offset giving the start of the implementation of the variable, and a storage
|
|
|
|
class address, giving information on variable's runtime address.
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
CVT = SOURCE_FILE_CHANGE SYMBOL_INFO* END_OF_LIST.
|
|
|
|
SYMBOL_INFO = SYMBOL_DEFINITION | SOURCE_FILE_CHANGE .
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
All entries are of the same size, making the fetching of data simple. The
|
|
|
|
variable entries in the list are in ALPHABETICAL ORDER to simplify the display of
|
|
|
|
available variables for several of the debugger's windows. */
|
|
|
|
|
|
|
|
/* 'la_size' determines the variant used below:
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
== BFD_SYM_CVTE_SCA
|
|
|
|
Traditional STORAGE_CLASS_ADDRESS;
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
<= BFD_SYM_CVTE_LA_MAX_SIZE
|
|
|
|
That many logical address bytes ("in-situ");
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
== BFD_SYM_CVTE_BIG_LA
|
|
|
|
Logical address bytes in constant pool, at offset 'big_la'. */
|
2002-11-12 16:44:24 +01:00
|
|
|
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
#define BFD_SYM_CVTE_SCA 0 /* Indicate SCA variant of CVTE. */
|
2002-11-06 14:26:29 +01:00
|
|
|
#define BFD_SYM_CVTE_LA_MAX_SIZE 13 /* Max# of logical address bytes in a CVTE. */
|
|
|
|
#define BFD_SYM_CVTE_BIG_LA 127 /* Indicates LA redirection to constant pool. */
|
|
|
|
|
|
|
|
union bfd_sym_contained_variables_table_entry
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* END_OF_LIST, SOURCE_FILE_CHANGE, or type table entry. */
|
|
|
|
unsigned long type;
|
|
|
|
}
|
|
|
|
generic;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* SOURCE_FILE_CHANGE. */
|
|
|
|
unsigned long type;
|
|
|
|
bfd_sym_file_reference fref;
|
|
|
|
}
|
|
|
|
file;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* < SOURCE_FILE_CHANGE. */
|
|
|
|
unsigned long tte_index;
|
|
|
|
unsigned long nte_index;
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
unsigned long file_delta; /* Increment from previous source. */
|
2002-11-06 14:26:29 +01:00
|
|
|
unsigned char scope;
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
unsigned char la_size; /* #bytes of LAs below. */
|
2002-11-06 14:26:29 +01:00
|
|
|
|
|
|
|
union
|
|
|
|
{
|
|
|
|
/* la_size == BFD_SYM_CVTE_SCA. */
|
|
|
|
struct
|
|
|
|
{
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
unsigned char sca_kind; /* Distinguish local from value/var formal. */
|
|
|
|
unsigned char sca_class; /* The storage class itself. */
|
2002-11-06 14:26:29 +01:00
|
|
|
unsigned long sca_offset;
|
|
|
|
}
|
|
|
|
scstruct;
|
|
|
|
|
|
|
|
/* la_size <= BFD_SYM_CVTE_LA_MAX_SIZE. */
|
|
|
|
struct {
|
|
|
|
unsigned char la[BFD_SYM_CVTE_LA_MAX_SIZE]; /* Logical address bytes. */
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
unsigned char la_kind; /* Eqv. cvte_location.sca_kind. */
|
2002-11-06 14:26:29 +01:00
|
|
|
}
|
|
|
|
lastruct;
|
|
|
|
|
|
|
|
/* la_size == BFD_SYM_CVTE_BIG_LA 127. */
|
|
|
|
struct
|
|
|
|
{
|
BFD whitespace fixes
Binutils is supposed to use tabs. In my git config I have
whitespace = indent-with-non-tab,space-before-tab,trailing-space
and I got annoyed enough seeing red in "git diff" output to fix
the problems.
* doc/header.sed: Trim trailing space when splitting lines.
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-cris.c,
* aout-ns32k.c, * aout-target.h, * aout-tic30.c, * aoutf1.h, * aoutx.h,
* arc-got.h, * arc-plt.def, * arc-plt.h, * archive.c, * archive64.c,
* archures.c, * armnetbsd.c, * bfd-in.h, * bfd.c, * bfdio.c, * binary.c,
* bout.c, * cache.c, * cisco-core.c, * coff-alpha.c, * coff-apollo.c,
* coff-arm.c, * coff-h8300.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mcore.c,
* coff-mips.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
* coff-stgo32.c, * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
* coffswap.h, * compress.c, * corefile.c, * cpu-alpha.c, * cpu-arm.c,
* cpu-avr.c, * cpu-bfin.c, * cpu-cr16.c, * cpu-cr16c.c, * cpu-crx.c,
* cpu-d10v.c, * cpu-frv.c, * cpu-ft32.c, * cpu-i370.c, * cpu-i960.c,
* cpu-ia64-opc.c, * cpu-ip2k.c, * cpu-lm32.c, * cpu-m32r.c,
* cpu-mcore.c, * cpu-microblaze.c, * cpu-mips.c, * cpu-moxie.c,
* cpu-mt.c, * cpu-nios2.c, * cpu-ns32k.c, * cpu-or1k.c, * cpu-powerpc.c,
* cpu-pru.c, * cpu-sh.c, * cpu-spu.c, * cpu-v850.c, * cpu-v850_rh850.c,
* cpu-xgate.c, * cpu-z80.c, * dwarf1.c, * dwarf2.c, * ecoff.c,
* ecofflink.c, * ecoffswap.h, * elf-bfd.h, * elf-eh-frame.c,
* elf-hppa.h, * elf-m10200.c, * elf-m10300.c, * elf-s390-common.c,
* elf-strtab.c, * elf-vxworks.c, * elf.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-avr.h,
* elf32-bfin.c, * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
* elf32-crx.c, * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c,
* elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c,
* elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32c.c,
* elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, * elf32-m68hc1x.c,
* elf32-m68hc1x.h, * elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c,
* elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c,
* elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
* elf32-nds32.h, * elf32-nios2.c, * elf32-or1k.c, * elf32-pj.c,
* elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-score.h,
* elf32-score7.c, * elf32-sh-symbian.c, * elf32-sh.c, * elf32-sh64.c,
* elf32-sparc.c, * elf32-spu.c, * elf32-tic6x.c, * elf32-tilegx.c,
* elf32-tilegx.h, * elf32-tilepro.c, * elf32-tilepro.h, * elf32-v850.c,
* elf32-vax.c, * elf32-wasm32.c, * elf32-xc16x.c, * elf32-xgate.c,
* elf32-xgate.h, * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
* elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
* elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c,
* elf64-tilegx.c, * elf64-tilegx.h, * elf64-x86-64.c, * elfcore.h,
* elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* elfnn-riscv.c, * elfxx-aarch64.c, * elfxx-aarch64.h, * elfxx-ia64.c,
* elfxx-ia64.h, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-sparc.c,
* elfxx-tilegx.c, * elfxx-x86.c, * elfxx-x86.h, * freebsd.h, * hash.c,
* host-aout.c, * hp300hpux.c, * hppabsd-core.c, * hpux-core.c,
* i386aout.c, * i386linux.c, * i386lynx.c, * i386mach3.c, * i386msdos.c,
* i386netbsd.c, * ieee.c, * ihex.c, * irix-core.c, * libaout.h,
* libbfd-in.h, * libbfd.c, * libcoff-in.h, * libnlm.h, * libpei.h,
* libxcoff.h, * linker.c, * lynx-core.c, * m68k4knetbsd.c,
* m68klinux.c, * m68knetbsd.c, * m88kmach3.c, * mach-o-aarch64.c,
* mach-o-arm.c, * mach-o-i386.c, * mach-o-target.c, * mach-o-x86-64.c,
* mach-o.c, * mach-o.h, * merge.c, * mipsbsd.c, * mmo.c, * netbsd.h,
* netbsd-core.c, * newsos3.c, * nlm-target.h, * nlm32-ppc.c,
* nlm32-sparc.c, * nlmcode.h, * ns32k.h, * ns32knetbsd.c, * oasys.c,
* opncls.c, * pc532-mach.c, * pdp11.c, * pe-arm.c, * pe-i386.c,
* pe-mcore.c, * pe-mips.c, * pe-x86_64.c, * peXXigen.c, * pef.c,
* pef.h, * pei-arm.c, * pei-i386.c, * pei-mcore.c, * pei-x86_64.c,
* peicode.h, * plugin.c, * ppcboot.c, * ptrace-core.c, * reloc.c,
* riscix.c, * rs6000-core.c, * section.c, * som.c, * som.h,
* sparclinux.c, * sparcnetbsd.c, * srec.c, * stabs.c, * sunos.c,
* syms.c, * targets.c, * tekhex.c, * trad-core.c, * vax1knetbsd.c,
* vaxnetbsd.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c,
* vms-misc.c, * wasm-module.c, * wasm-module.h, * xcofflink.c,
* xsym.c, * xsym.h: Whitespace fixes.
* bfd-in2.h, * libbfd.h, * libcoff.h: Regenerate.
2017-12-05 23:56:00 +01:00
|
|
|
unsigned long big_la; /* Logical address bytes in constant pool. */
|
|
|
|
unsigned char big_la_kind; /* Eqv. cvte_location.sca_kind. */
|
2002-11-06 14:26:29 +01:00
|
|
|
}
|
|
|
|
biglastruct;
|
|
|
|
}
|
|
|
|
address;
|
|
|
|
}
|
|
|
|
entry;
|
|
|
|
};
|
|
|
|
typedef union bfd_sym_contained_variables_table_entry bfd_sym_contained_variables_table_entry;
|
|
|
|
|
|
|
|
/* CONTAINED STATEMENTS TABLE (CSNTE)
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
Contained Statements table. This table is similar to the Contained
|
|
|
|
Variables table except that instead of VARIABLE_DEFINITION entries, this
|
|
|
|
module contains STATEMENT_NUMBER_DEFINITION entries. A statement number
|
|
|
|
definition points back to the containing module (via an index into
|
|
|
|
the module entry table) and contains the file and resource deltas
|
|
|
|
to add to the previous values to get to this statement.
|
|
|
|
All entries are of the same size, making the fetching of data simple. The
|
|
|
|
entries in the table are in order of increasing statement number within the
|
|
|
|
source file.
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
The Contained Statements table is indexed from two places. An MTE contains
|
|
|
|
an index to the first statement number within the module. An FRTE contains
|
|
|
|
an index to the first statement in the table (Possibly. This is slow.) Or
|
|
|
|
a table of fast statement number to CSNTE entry mappings indexes into the
|
|
|
|
table. Choice not yet made. */
|
|
|
|
|
|
|
|
union bfd_sym_contained_statements_table_entry
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* END_OF_LIST, SOURCE_FILE_CHANGE, or statement table entry. */
|
|
|
|
unsigned long type;
|
|
|
|
}
|
|
|
|
generic;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* SOURCE_FILE_CHANGE. */
|
|
|
|
unsigned long type;
|
|
|
|
bfd_sym_file_reference fref; /* File name table. */
|
|
|
|
}
|
|
|
|
file;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned long mte_index; /* Which module contains it. */
|
|
|
|
unsigned long file_delta; /* Where it is defined. */
|
|
|
|
unsigned long mte_offset; /* Where it is in the module. */
|
|
|
|
}
|
|
|
|
entry;
|
|
|
|
};
|
|
|
|
typedef union bfd_sym_contained_statements_table_entry bfd_sym_contained_statements_table_entry;
|
|
|
|
|
|
|
|
/* CONTAINED LABELS TABLE (CLTE)
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
Contained Labels table names those labels local to the module. It is similar
|
|
|
|
to the Contained Statements table. */
|
|
|
|
|
|
|
|
union bfd_sym_contained_labels_table_entry
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* END_OF_LIST, SOURCE_FILE_CHANGE, index. */
|
|
|
|
unsigned long type;
|
|
|
|
}
|
|
|
|
generic;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* SOURCE_FILE_CHANGE. */
|
|
|
|
unsigned long type;
|
|
|
|
bfd_sym_file_reference fref;
|
|
|
|
}
|
|
|
|
file;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* < SOURCE_FILE_CHANGE. */
|
|
|
|
unsigned long mte_index; /* Which module contains us. */
|
|
|
|
unsigned long mte_offset; /* Where it is in the module. */
|
|
|
|
unsigned long nte_index; /* The name of the label. */
|
|
|
|
unsigned long file_delta; /* Where it is defined. */
|
|
|
|
unsigned short scope; /* How visible the label is. */
|
|
|
|
}
|
|
|
|
entry;
|
|
|
|
};
|
|
|
|
typedef union bfd_sym_contained_labels_table_entry bfd_sym_contained_labels_table_entry;
|
|
|
|
|
|
|
|
/* CONTAINED TYPES TABLE (CTTE)
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
Contained Types define the named types that are in the module. It is used to
|
|
|
|
map name indices into type indices. The type entries in the table are in
|
|
|
|
alphabetical order by type name. */
|
|
|
|
|
|
|
|
union bfd_sym_contained_types_table_entry
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* END_OF_LIST, SOURCE_FILE_CHANGE, or type table entry. */
|
|
|
|
unsigned long type;
|
|
|
|
}
|
|
|
|
generic;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* SOURCE_FILE_CHANGE. */
|
|
|
|
unsigned long type;
|
|
|
|
bfd_sym_file_reference fref;
|
|
|
|
}
|
|
|
|
file;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
/* < SOURCE_FILE_CHANGE. */
|
2002-11-12 16:44:24 +01:00
|
|
|
unsigned long tte_index;
|
2002-11-06 14:26:29 +01:00
|
|
|
unsigned long nte_index;
|
|
|
|
unsigned long file_delta; /* From last file definition. */
|
|
|
|
}
|
|
|
|
entry;
|
|
|
|
};
|
|
|
|
typedef union bfd_sym_contained_types_table_entry bfd_sym_contained_types_table_entry;
|
|
|
|
|
|
|
|
/* TYPE TABLE (TTE). */
|
|
|
|
|
|
|
|
typedef unsigned long bfd_sym_type_table_entry;
|
|
|
|
|
|
|
|
/* TYPE INFORMATION TABLE (TINFO). */
|
|
|
|
|
|
|
|
struct bfd_sym_type_information_table_entry
|
|
|
|
{
|
|
|
|
unsigned long nte_index;
|
|
|
|
unsigned long physical_size;
|
|
|
|
unsigned long logical_size;
|
|
|
|
unsigned long offset;
|
|
|
|
};
|
|
|
|
typedef struct bfd_sym_type_information_table_entry bfd_sym_type_information_table_entry;
|
|
|
|
|
|
|
|
/* FILE REFERENCES INDEX TABLE (FITE)
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
The FRTE INDEX TABLE indexes into the FILE REFERENCE TABLE above. The FRTE
|
|
|
|
at that index is the FILE_SOURCE_START for a series of files. The FRTEs are
|
|
|
|
indexed from 1. The list is terminated with an END_OF_LIST. */
|
|
|
|
|
|
|
|
union bfd_sym_file_references_index_table_entry
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned long type;
|
|
|
|
}
|
|
|
|
generic;
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned long frte_index; /* Index into the FRTE table. */
|
|
|
|
unsigned long nte_index; /* Name table index, gives filename. */
|
|
|
|
}
|
|
|
|
entry;
|
|
|
|
};
|
|
|
|
typedef union bfd_sym_file_references_index_table_entry bfd_sym_file_references_index_table_entry;
|
|
|
|
|
|
|
|
/* CONSTANT POOL (CONST)
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
The CONSTANT_POOL consists of entries that start on word boundaries. The entries
|
|
|
|
are referenced by byte index into the constant pool, not by record number.
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
Each entry takes the form:
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
<16-bit size>
|
|
|
|
<that many bytes of stuff>
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
Entries do not cross page boundaries. */
|
|
|
|
|
|
|
|
typedef short bfd_sym_constant_pool_entry;
|
|
|
|
|
|
|
|
/* The DISK_SYMBOL_HEADER_BLOCK is the first record in a .SYM file,
|
|
|
|
defining the physical characteristics of the symbolic information.
|
|
|
|
The remainder of the * .SYM file is stored in fixed block
|
|
|
|
allocations. For the purposes of paging, the * file is considered
|
|
|
|
to be an array of dshb_page_size blocks, with block 0 (and *
|
|
|
|
possibly more) devoted to the DISK_SYMBOL_HEADER_BLOCK.
|
2002-11-12 16:44:24 +01:00
|
|
|
|
2002-11-06 14:26:29 +01:00
|
|
|
The dti_object_count field means that the allowed indices for that
|
|
|
|
type of object are 0 .. dti_object_count. An index of 0, although
|
|
|
|
allowed, is never done. However, an 0th entry is created in the
|
|
|
|
table. That entry is filled with all zeroes. The reason for this
|
|
|
|
is to avoid off-by-one programming errors that would otherwise
|
|
|
|
occur: an index of k *MEANS* k, not k-1 when going to the disk
|
|
|
|
table. */
|
|
|
|
|
|
|
|
struct bfd_sym_table_info
|
|
|
|
{
|
|
|
|
unsigned long dti_first_page; /* First page for this table. */
|
|
|
|
unsigned long dti_page_count; /* Number of pages for the table. */
|
|
|
|
unsigned long dti_object_count; /* Number of objects in the table. */
|
|
|
|
};
|
|
|
|
typedef struct bfd_sym_table_info bfd_sym_table_info;
|
|
|
|
|
2002-11-12 16:44:24 +01:00
|
|
|
struct bfd_sym_header_block
|
2002-11-06 14:26:29 +01:00
|
|
|
{
|
|
|
|
unsigned char dshb_id[32]; /* Version information. */
|
|
|
|
unsigned short dshb_page_size; /* Size of the pages/blocks. */
|
|
|
|
unsigned long dshb_hash_page; /* Disk page for the hash table. */
|
|
|
|
unsigned long dshb_root_mte; /* MTE index of the program root. */
|
|
|
|
unsigned long dshb_mod_date; /* modification date of executable. */
|
|
|
|
bfd_sym_table_info dshb_frte; /* Per TABLE information. */
|
|
|
|
bfd_sym_table_info dshb_rte;
|
|
|
|
bfd_sym_table_info dshb_mte;
|
|
|
|
bfd_sym_table_info dshb_cmte;
|
|
|
|
bfd_sym_table_info dshb_cvte;
|
|
|
|
bfd_sym_table_info dshb_csnte;
|
|
|
|
bfd_sym_table_info dshb_clte;
|
|
|
|
bfd_sym_table_info dshb_ctte;
|
|
|
|
bfd_sym_table_info dshb_tte;
|
|
|
|
bfd_sym_table_info dshb_nte;
|
|
|
|
bfd_sym_table_info dshb_tinfo;
|
|
|
|
bfd_sym_table_info dshb_fite; /* File information. */
|
|
|
|
bfd_sym_table_info dshb_const; /* Constant pool. */
|
|
|
|
|
|
|
|
unsigned char dshb_file_creator[4]; /* Executable's creator. */
|
|
|
|
unsigned char dshb_file_type[4]; /* Executable's file type. */
|
|
|
|
};
|
|
|
|
typedef struct bfd_sym_header_block bfd_sym_header_block;
|
|
|
|
|
|
|
|
struct bfd_sym_data_struct
|
|
|
|
{
|
|
|
|
unsigned char *name_table;
|
|
|
|
bfd_sym_header_block header;
|
|
|
|
bfd_sym_version version;
|
|
|
|
bfd *sbfd;
|
|
|
|
};
|
|
|
|
typedef struct bfd_sym_data_struct bfd_sym_data_struct;
|
|
|
|
|
2002-11-30 09:39:46 +01:00
|
|
|
extern bfd_boolean bfd_sym_mkobject
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_symbol
|
2012-07-13 16:22:50 +02:00
|
|
|
(bfd *, void *, asymbol *, bfd_print_symbol_type);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern bfd_boolean bfd_sym_valid
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern unsigned char * bfd_sym_read_name_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_header_block *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_file_reference_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_file_reference *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_disk_table_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_table_info *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_header_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_header_block *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_read_header_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_header_block *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_read_header_v34
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_header_block *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_read_header
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_header_block *, bfd_sym_version);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_read_version
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_version *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_table_summary
|
2005-04-11 10:23:05 +02:00
|
|
|
(FILE *, bfd_sym_table_info *, const char *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_header
|
2005-04-11 10:23:05 +02:00
|
|
|
(FILE *, bfd_sym_header_block *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_resources_table_entry_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_resources_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_modules_table_entry_v33
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_modules_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_file_references_table_entry_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_file_references_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_contained_modules_table_entry_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_contained_modules_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_contained_variables_table_entry_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_contained_variables_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_contained_statements_table_entry_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_contained_statements_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_contained_labels_table_entry_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_contained_labels_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_parse_type_table_entry_v32
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, size_t, bfd_sym_type_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_resources_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_resources_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_modules_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_modules_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_file_references_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_file_references_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_contained_modules_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_contained_modules_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_contained_variables_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_contained_variables_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_contained_statements_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_contained_statements_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_contained_labels_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_contained_labels_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_contained_types_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_contained_types_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_file_references_index_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_file_references_index_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_constant_pool_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_constant_pool_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_type_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_type_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_type_information_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_type_information_table_entry *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_type_table_information
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_type_information_table_entry *, unsigned long);
|
2002-11-06 14:26:29 +01:00
|
|
|
extern const unsigned char * bfd_sym_symbol_name
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, unsigned long);
|
2002-11-06 14:26:29 +01:00
|
|
|
extern const unsigned char * bfd_sym_module_name
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, unsigned long);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern const char * bfd_sym_unparse_storage_kind
|
2005-04-11 10:23:05 +02:00
|
|
|
(enum bfd_sym_storage_kind);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern const char * bfd_sym_unparse_storage_class
|
2005-04-11 10:23:05 +02:00
|
|
|
(enum bfd_sym_storage_class);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern const char * bfd_sym_unparse_module_kind
|
2005-04-11 10:23:05 +02:00
|
|
|
(enum bfd_sym_module_kind);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern const char * bfd_sym_unparse_symbol_scope
|
2005-04-11 10:23:05 +02:00
|
|
|
(enum bfd_sym_symbol_scope);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_file_reference
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_file_reference *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_resources_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_resources_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_modules_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_modules_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_file_references_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_file_references_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_contained_modules_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_contained_modules_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_contained_variables_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *f, bfd_sym_contained_variables_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_contained_statements_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_contained_statements_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_contained_labels_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_contained_labels_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_contained_types_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_contained_types_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern const char * bfd_sym_type_operator_name
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern const char * bfd_sym_type_basic_name
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_fetch_long
|
2005-04-11 10:23:05 +02:00
|
|
|
(unsigned char *, unsigned long, unsigned long, unsigned long *, long *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_type_information
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, unsigned char *, unsigned long, unsigned long, unsigned long *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_type_information_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_type_information_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_file_references_index_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_file_references_index_table_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_print_constant_pool_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, bfd_sym_constant_pool_entry *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern unsigned char * bfd_sym_display_name_table_entry
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *, unsigned char *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_name_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_resources_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_modules_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_file_references_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_contained_modules_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_contained_variables_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_contained_statements_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_contained_labels_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_contained_types_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_file_references_index_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_constant_pool
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_display_type_information_table
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, FILE *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_scan
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, bfd_sym_version, bfd_sym_data_struct *);
|
bfd_cleanup for object_p
The object_p (and archive_p, core_file_p) functions are not supposed
to have any target specific malloc'd memory attached to the bfd on
their return. This should be obvious on a failure return, but it's
also true for a successful return. The reason is that even though the
object_p recognises the file, that particular target may not be used
and thus the bfd won't be closed calling close_and_cleanup for the
target that allocated the memory.
It turns out that the object_p bfd_target* return value isn't needed.
In all cases except ld/plugin.c the target is abfd->xvec and with
ld/plugin.c the target isn't used. So this patch returns a cleanup
function from object_p instead, called in bfd_check_format_matches to
tidy the bfd before trying a different target match. The only cleanup
that does anything at this stage is the alpha-vms one.
bfd/
* targets.c (bfd_cleanup): New typedef.
(struct bfd <_bfd_check_format>): Return a bfd_cleanup.
* libbfd-in.h (_bfd_no_cleanup): Define.
* format.c (bfd_reinit): Add cleanup parameter, call it.
(bfd_check_format_matches): Set cleanup from _bfd_check_format
call and pass to bfd_reinit. Delete temp, use abfd->xvec instead.
* aout-target.h (callback, object_p): Return bfd_cleanup.
* aout-tic30.c (tic30_aout_callback, tic30_aout_object_p): Likewise.
* archive.c (bfd_generic_archive_p): Likewise.
* binary.c (binary_object_p): Likewise.
* coff-alpha.c (alpha_ecoff_object_p): Likewise.
* coff-ia64.c (ia64coff_object_p): Likewise.
* coff-rs6000.c (_bfd_xcoff_archive_p, rs6000coff_core_p): Likewise.
* coff-sh.c (coff_small_object_p): Likewise.
* coff-stgo32.c (go32_check_format): Likewise.
* coff64-rs6000.c (xcoff64_archive_p, rs6000coff_core_p),
(xcoff64_core_p): Likewise.
* coffgen.c (coff_real_object_p, coff_object_p): Likewise.
* elf-bfd.h (bfd_elf32_object_p, bfd_elf32_core_file_p),
(bfd_elf64_object_p, bfd_elf64_core_file_p): Likewise.
* elfcode.h (elf_object_p): Likewise.
* elfcore.h (elf_core_file_p): Likewise.
* i386msdos.c (msdos_object_p): Likewise.
* ihex.c (ihex_object_p): Likewise.
* libaout.h (some_aout_object_p): Likewise.
* libbfd-in.h (bfd_generic_archive_p, _bfd_dummy_target),
(_bfd_vms_lib_alpha_archive_p, _bfd_vms_lib_ia64_archive_p): Likewise.
* libbfd.c (_bfd_dummy_target): Likewise.
* libcoff-in.h (coff_object_p): Likewise.
* mach-o-aarch64.c (bfd_mach_o_arm64_object_p),
(bfd_mach_o_arm64_core_p): Likewise.
* mach-o-arm.c (bfd_mach_o_arm_object_p),
(bfd_mach_o_arm_core_p): Likewise.
* mach-o-i386.c (bfd_mach_o_i386_object_p),
(bfd_mach_o_i386_core_p): Likewise.
* mach-o-x86-64.c (bfd_mach_o_x86_64_object_p),
(bfd_mach_o_x86_64_core_p): Likewise.
* mach-o.c (bfd_mach_o_header_p, bfd_mach_o_gen_object_p),
(bfd_mach_o_gen_core_p, bfd_mach_o_fat_archive_p): Likewise.
* mach-o.h (bfd_mach_o_object_p, bfd_mach_o_core_p),
(bfd_mach_o_fat_archive_p, bfd_mach_o_header_p): Likewise.
* mmo.c (mmo_object_p): Likewise.
* pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
* peicode.h (coff_real_object_p, pe_ILF_object_p),
(pe_bfd_object_p): Likewise.
* plugin.c (ld_plugin_object_p, bfd_plugin_object_p): Likewise.
* ppcboot.c (ppcboot_object_p): Likewise.
* rs6000-core.c (rs6000coff_core_p): Likewise.
* som.c (som_object_setup, som_object_p): Likewise.
* srec.c (srec_object_p, symbolsrec_object_p): Likewise.
* tekhex.c (tekhex_object_p): Likewise.
* vms-alpha.c (alpha_vms_object_p): Likewise.
* vms-lib.c (_bfd_vms_lib_archive_p, _bfd_vms_lib_alpha_archive_p),
(_bfd_vms_lib_ia64_archive_p, _bfd_vms_lib_txt_archive_p): Likewise.
* wasm-module.c (wasm_object_p): Likewise.
* xsym.c (bfd_sym_object_p): Likewise.
* xsym.h (bfd_sym_object_p): Likewise.
* aoutx.h (some_aout_object_p): Likewise, and callback parameter
return type.
* pdp11.c (some_aout_object_p): Likewise.
* plugin.c (register_ld_plugin_object_p): Update object_p
parameter type.
* plugin.h (register_ld_plugin_object_p): Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* libcoff.h: Regenerate.
ld/
* plugin.c (plugin_object_p): Return a bfd_cleanup.
(plugin_cleanup): New function.
2020-03-02 05:51:09 +01:00
|
|
|
extern bfd_cleanup bfd_sym_object_p
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern void bfd_sym_get_symbol_info
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, asymbol *, symbol_info *);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern long bfd_sym_get_symtab_upper_bound
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *);
|
2003-10-16 06:11:10 +02:00
|
|
|
extern long bfd_sym_canonicalize_symtab
|
2005-04-11 10:23:05 +02:00
|
|
|
(bfd *, asymbol **);
|
2002-11-30 09:39:46 +01:00
|
|
|
extern int bfd_sym_sizeof_headers
|
2006-06-19 15:17:44 +02:00
|
|
|
(bfd *, struct bfd_link_info *);
|
2002-11-06 14:26:29 +01:00
|
|
|
|
|
|
|
#endif /* __xSYM_H__ */
|