| |
| |
| |
| |
| |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| #ifndef __BFD_H_SEEN__
|
| #define __BFD_H_SEEN__
|
|
|
| #ifdef __cplusplus
|
| extern "C" {
|
| #endif
|
|
|
| #include "ansidecl.h"
|
| #include "symcat.h"
|
| #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
|
| #ifndef SABER
|
| |
| |
| |
| |
|
|
| #undef CONCAT4
|
| #define CONCAT4(a,b,c,d) XCONCAT2(CONCAT2(a,b),CONCAT2(c,d))
|
| #endif
|
| #endif
|
|
|
| |
| |
| |
|
|
| #define STRING_COMMA_LEN(STR) (STR), (sizeof (STR) - 1)
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| #define CONST_STRNEQ(STR1,STR2) (strncmp ((STR1), (STR2), sizeof (STR2) - 1) == 0)
|
| |
| |
| |
|
|
| #define LITMEMCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2) - 1)
|
| #define LITSTRCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2))
|
|
|
|
|
| |
| |
|
|
| #define BFD_ARCH_SIZE 32
|
|
|
|
|
| #define BFD_DEFAULT_TARGET_SIZE 32
|
|
|
| #define BFD_HOST_64BIT_LONG 0
|
| #define BFD_HOST_64BIT_LONG_LONG 1
|
| #if 1
|
| #define BFD_HOST_64_BIT long long
|
| #define BFD_HOST_U_64_BIT unsigned long long
|
| typedef BFD_HOST_64_BIT bfd_int64_t;
|
| typedef BFD_HOST_U_64_BIT bfd_uint64_t;
|
| #endif
|
|
|
| #if BFD_ARCH_SIZE >= 64
|
| #define BFD64
|
| #endif
|
|
|
| #ifndef INLINE
|
| #if __GNUC__ >= 2
|
| #define INLINE __inline__
|
| #else
|
| #define INLINE
|
| #endif
|
| #endif
|
|
|
|
|
| #define BFD_HOSTPTR_T unsigned long
|
| typedef BFD_HOSTPTR_T bfd_hostptr_t;
|
|
|
|
|
| typedef struct bfd bfd;
|
|
|
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| typedef int bfd_boolean;
|
| #undef FALSE
|
| #undef TRUE
|
| #define FALSE 0
|
| #define TRUE 1
|
|
|
| #ifdef BFD64
|
|
|
| #ifndef BFD_HOST_64_BIT
|
| #error No 64 bit integer type available
|
| #endif
|
|
|
| typedef BFD_HOST_U_64_BIT bfd_vma;
|
| typedef BFD_HOST_64_BIT bfd_signed_vma;
|
| typedef BFD_HOST_U_64_BIT bfd_size_type;
|
| typedef BFD_HOST_U_64_BIT symvalue;
|
|
|
| #if BFD_HOST_64BIT_LONG
|
| #define BFD_VMA_FMT "l"
|
| #elif defined (__MSVCRT__)
|
| #define BFD_VMA_FMT "I64"
|
| #else
|
| #define BFD_VMA_FMT "ll"
|
| #endif
|
|
|
| #ifndef fprintf_vma
|
| #define sprintf_vma(s,x) sprintf (s, "%016" BFD_VMA_FMT "x", x)
|
| #define fprintf_vma(f,x) fprintf (f, "%016" BFD_VMA_FMT "x", x)
|
| #endif
|
|
|
| #else
|
|
|
| |
| |
|
|
| typedef unsigned long bfd_vma;
|
|
|
| |
| |
| |
|
|
| typedef long bfd_signed_vma;
|
|
|
| typedef unsigned long symvalue;
|
| typedef unsigned long bfd_size_type;
|
|
|
|
|
| #define BFD_VMA_FMT "l"
|
| #define fprintf_vma(s,x) fprintf (s, "%08" BFD_VMA_FMT "x", x)
|
| #define sprintf_vma(s,x) sprintf (s, "%08" BFD_VMA_FMT "x", x)
|
|
|
| #endif
|
|
|
| #define HALF_BFD_SIZE_TYPE \
|
| (((bfd_size_type) 1) << (8 * sizeof (bfd_size_type) / 2))
|
|
|
| #ifndef BFD_HOST_64_BIT
|
| |
| |
| |
|
|
| typedef bfd_signed_vma bfd_int64_t;
|
| typedef bfd_vma bfd_uint64_t;
|
| #endif
|
|
|
| |
|
|
| typedef BFD_HOST_64_BIT file_ptr;
|
| typedef unsigned BFD_HOST_64_BIT ufile_ptr;
|
|
|
| extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
|
| extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
|
|
|
| #define printf_vma(x) fprintf_vma(stdout,x)
|
| #define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x)
|
|
|
| typedef unsigned int flagword;
|
| typedef unsigned char bfd_byte;
|
|
|
|
|
|
|
| typedef enum bfd_format
|
| {
|
| bfd_unknown = 0,
|
| bfd_object,
|
| bfd_archive,
|
| bfd_core,
|
| bfd_type_end
|
| }
|
| bfd_format;
|
|
|
|
|
|
|
|
|
| typedef unsigned long symindex;
|
|
|
|
|
| typedef const struct reloc_howto_struct reloc_howto_type;
|
|
|
| #define BFD_NO_MORE_SYMBOLS ((symindex) ~0)
|
|
|
| |
|
|
|
|
| #define bfd_get_section(x) ((x)->section)
|
| #define bfd_get_output_section(x) ((x)->section->output_section)
|
| #define bfd_set_section(x,y) ((x)->section) = (y)
|
| #define bfd_asymbol_base(x) ((x)->section->vma)
|
| #define bfd_asymbol_value(x) (bfd_asymbol_base(x) + (x)->value)
|
| #define bfd_asymbol_name(x) ((x)->name)
|
|
|
| #define bfd_asymbol_bfd(x) ((x)->the_bfd)
|
| #define bfd_asymbol_flavour(x) \
|
| (((x)->flags & BSF_SYNTHETIC) != 0 \
|
| ? bfd_target_unknown_flavour \
|
| : bfd_asymbol_bfd (x)->xvec->flavour)
|
|
|
|
|
|
|
| typedef struct carsym
|
| {
|
| char *name;
|
| file_ptr file_offset;
|
| }
|
| carsym;
|
|
|
| |
|
|
| struct orl /* Output ranlib. */
|
| {
|
| char **name;
|
| union
|
| {
|
| file_ptr pos;
|
| bfd *abfd;
|
| } u;
|
| int namidx;
|
| };
|
|
|
|
|
| typedef struct lineno_cache_entry
|
| {
|
| unsigned int line_number;
|
| union
|
| {
|
| struct bfd_symbol *sym;
|
| bfd_vma offset;
|
| } u;
|
| }
|
| alent;
|
|
|
|
|
|
|
| #define align_power(addr, align) \
|
| (((addr) + ((bfd_vma) 1 << (align)) - 1) & ((bfd_vma) -1 << (align)))
|
|
|
| typedef struct bfd_section *sec_ptr;
|
|
|
| #define bfd_get_section_name(bfd, ptr) ((ptr)->name + 0)
|
| #define bfd_get_section_vma(bfd, ptr) ((ptr)->vma + 0)
|
| #define bfd_get_section_lma(bfd, ptr) ((ptr)->lma + 0)
|
| #define bfd_get_section_alignment(bfd, ptr) ((ptr)->alignment_power + 0)
|
| #define bfd_section_name(bfd, ptr) ((ptr)->name)
|
| #define bfd_section_size(bfd, ptr) ((ptr)->size)
|
| #define bfd_get_section_size(ptr) ((ptr)->size)
|
| #define bfd_section_vma(bfd, ptr) ((ptr)->vma)
|
| #define bfd_section_lma(bfd, ptr) ((ptr)->lma)
|
| #define bfd_section_alignment(bfd, ptr) ((ptr)->alignment_power)
|
| #define bfd_get_section_flags(bfd, ptr) ((ptr)->flags + 0)
|
| #define bfd_get_section_userdata(bfd, ptr) ((ptr)->userdata)
|
|
|
| #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
|
|
|
| #define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE)
|
| #define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)
|
| #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
|
|
|
| #define bfd_get_section_limit(bfd, sec) \
|
| (((sec)->rawsize ? (sec)->rawsize : (sec)->size) \
|
| / bfd_octets_per_byte (bfd))
|
|
|
|
|
| #define elf_discarded_section(sec) \
|
| (!bfd_is_abs_section (sec) \
|
| && bfd_is_abs_section ((sec)->output_section) \
|
| && (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
|
| && (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
|
|
|
|
|
| struct stat;
|
|
|
| typedef enum bfd_print_symbol
|
| {
|
| bfd_print_symbol_name,
|
| bfd_print_symbol_more,
|
| bfd_print_symbol_all
|
| } bfd_print_symbol_type;
|
|
|
|
|
|
|
| typedef struct _symbol_info
|
| {
|
| symvalue value;
|
| char type;
|
| const char *name;
|
| unsigned char stab_type;
|
| char stab_other;
|
| short stab_desc;
|
| const char *stab_name;
|
| } symbol_info;
|
|
|
|
|
|
|
| extern const char *bfd_get_stab_name (int);
|
|
|
|
|
|
|
| |
|
|
|
|
| struct bfd_hash_entry
|
| {
|
|
|
| struct bfd_hash_entry *next;
|
|
|
| const char *string;
|
| |
|
|
| unsigned long hash;
|
| };
|
|
|
|
|
|
|
| struct bfd_hash_table
|
| {
|
|
|
| struct bfd_hash_entry **table;
|
| |
| |
| |
| |
| |
| |
|
|
| struct bfd_hash_entry *(*newfunc)
|
| (struct bfd_hash_entry *, struct bfd_hash_table *, const char *);
|
| |
|
|
| void *memory;
|
|
|
| unsigned int size;
|
|
|
| unsigned int count;
|
|
|
| unsigned int entsize;
|
|
|
| unsigned int frozen:1;
|
| };
|
|
|
|
|
| extern bfd_boolean bfd_hash_table_init
|
| (struct bfd_hash_table *,
|
| struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
|
| struct bfd_hash_table *,
|
| const char *),
|
| unsigned int);
|
|
|
|
|
| extern bfd_boolean bfd_hash_table_init_n
|
| (struct bfd_hash_table *,
|
| struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
|
| struct bfd_hash_table *,
|
| const char *),
|
| unsigned int, unsigned int);
|
|
|
|
|
| extern void bfd_hash_table_free
|
| (struct bfd_hash_table *);
|
|
|
| |
| |
| |
|
|
| extern struct bfd_hash_entry *bfd_hash_lookup
|
| (struct bfd_hash_table *, const char *, bfd_boolean create,
|
| bfd_boolean copy);
|
|
|
|
|
| extern struct bfd_hash_entry *bfd_hash_insert
|
| (struct bfd_hash_table *, const char *, unsigned long);
|
|
|
|
|
| extern void bfd_hash_replace
|
| (struct bfd_hash_table *, struct bfd_hash_entry *old,
|
| struct bfd_hash_entry *nw);
|
|
|
|
|
| extern struct bfd_hash_entry *bfd_hash_newfunc
|
| (struct bfd_hash_entry *, struct bfd_hash_table *, const char *);
|
|
|
|
|
| extern void *bfd_hash_allocate
|
| (struct bfd_hash_table *, unsigned int);
|
|
|
| |
| |
|
|
| extern void bfd_hash_traverse
|
| (struct bfd_hash_table *,
|
| bfd_boolean (*) (struct bfd_hash_entry *, void *),
|
| void *info);
|
|
|
| |
| |
|
|
| extern void bfd_hash_set_default_size (bfd_size_type);
|
|
|
| |
|
|
|
|
| struct stab_info
|
| {
|
|
|
| struct bfd_strtab_hash *strings;
|
|
|
| struct bfd_hash_table includes;
|
|
|
| struct bfd_section *stabstr;
|
| };
|
|
|
| #define COFF_SWAP_TABLE (void *) &bfd_coff_std_swap_table
|
|
|
|
|
|
|
| |
|
|
|
|
| extern bfd_size_type bfd_bread (void *, bfd_size_type, bfd *);
|
| extern bfd_size_type bfd_bwrite (const void *, bfd_size_type, bfd *);
|
| extern int bfd_seek (bfd *, file_ptr, int);
|
| extern file_ptr bfd_tell (bfd *);
|
| extern int bfd_flush (bfd *);
|
| extern int bfd_stat (bfd *, struct stat *);
|
|
|
|
|
| #if __GNUC__
|
| #define bfd_read(BUF, ELTSIZE, NITEMS, ABFD) \
|
| (warn_deprecated ("bfd_read", __FILE__, __LINE__, __FUNCTION__), \
|
| bfd_bread ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
|
| #define bfd_write(BUF, ELTSIZE, NITEMS, ABFD) \
|
| (warn_deprecated ("bfd_write", __FILE__, __LINE__, __FUNCTION__), \
|
| bfd_bwrite ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
|
| #else
|
| #define bfd_read(BUF, ELTSIZE, NITEMS, ABFD) \
|
| (warn_deprecated ("bfd_read", (const char *) 0, 0, (const char *) 0), \
|
| bfd_bread ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
|
| #define bfd_write(BUF, ELTSIZE, NITEMS, ABFD) \
|
| (warn_deprecated ("bfd_write", (const char *) 0, 0, (const char *) 0),\
|
| bfd_bwrite ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
|
| #endif
|
| extern void warn_deprecated (const char *, const char *, int, const char *);
|
|
|
| |
|
|
| #define bfd_get_filename(abfd) ((char *) (abfd)->filename)
|
| #define bfd_get_cacheable(abfd) ((abfd)->cacheable)
|
| #define bfd_get_format(abfd) ((abfd)->format)
|
| #define bfd_get_target(abfd) ((abfd)->xvec->name)
|
| #define bfd_get_flavour(abfd) ((abfd)->xvec->flavour)
|
| #define bfd_family_coff(abfd) \
|
| (bfd_get_flavour (abfd) == bfd_target_coff_flavour || \
|
| bfd_get_flavour (abfd) == bfd_target_xcoff_flavour)
|
| #define bfd_big_endian(abfd) ((abfd)->xvec->byteorder == BFD_ENDIAN_BIG)
|
| #define bfd_little_endian(abfd) ((abfd)->xvec->byteorder == BFD_ENDIAN_LITTLE)
|
| #define bfd_header_big_endian(abfd) \
|
| ((abfd)->xvec->header_byteorder == BFD_ENDIAN_BIG)
|
| #define bfd_header_little_endian(abfd) \
|
| ((abfd)->xvec->header_byteorder == BFD_ENDIAN_LITTLE)
|
| #define bfd_get_file_flags(abfd) ((abfd)->flags)
|
| #define bfd_applicable_file_flags(abfd) ((abfd)->xvec->object_flags)
|
| #define bfd_applicable_section_flags(abfd) ((abfd)->xvec->section_flags)
|
| #define bfd_my_archive(abfd) ((abfd)->my_archive)
|
| #define bfd_has_map(abfd) ((abfd)->has_armap)
|
| #define bfd_is_thin_archive(abfd) ((abfd)->is_thin_archive)
|
|
|
| #define bfd_valid_reloc_types(abfd) ((abfd)->xvec->valid_reloc_types)
|
| #define bfd_usrdata(abfd) ((abfd)->usrdata)
|
|
|
| #define bfd_get_start_address(abfd) ((abfd)->start_address)
|
| #define bfd_get_symcount(abfd) ((abfd)->symcount)
|
| #define bfd_get_outsymbols(abfd) ((abfd)->outsymbols)
|
| #define bfd_count_sections(abfd) ((abfd)->section_count)
|
|
|
| #define bfd_get_dynamic_symcount(abfd) ((abfd)->dynsymcount)
|
|
|
| #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)
|
|
|
| #define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
|
|
|
| extern bfd_boolean bfd_cache_close
|
| (bfd *abfd);
|
|
|
|
|
| extern bfd_boolean bfd_cache_close_all (void);
|
|
|
| extern bfd_boolean bfd_record_phdr
|
| (bfd *, unsigned long, bfd_boolean, flagword, bfd_boolean, bfd_vma,
|
| bfd_boolean, bfd_boolean, unsigned int, struct bfd_section **);
|
|
|
|
|
|
|
| bfd_uint64_t bfd_getb64 (const void *);
|
| bfd_uint64_t bfd_getl64 (const void *);
|
| bfd_int64_t bfd_getb_signed_64 (const void *);
|
| bfd_int64_t bfd_getl_signed_64 (const void *);
|
| bfd_vma bfd_getb32 (const void *);
|
| bfd_vma bfd_getl32 (const void *);
|
| bfd_signed_vma bfd_getb_signed_32 (const void *);
|
| bfd_signed_vma bfd_getl_signed_32 (const void *);
|
| bfd_vma bfd_getb16 (const void *);
|
| bfd_vma bfd_getl16 (const void *);
|
| bfd_signed_vma bfd_getb_signed_16 (const void *);
|
| bfd_signed_vma bfd_getl_signed_16 (const void *);
|
| void bfd_putb64 (bfd_uint64_t, void *);
|
| void bfd_putl64 (bfd_uint64_t, void *);
|
| void bfd_putb32 (bfd_vma, void *);
|
| void bfd_putl32 (bfd_vma, void *);
|
| void bfd_putb16 (bfd_vma, void *);
|
| void bfd_putl16 (bfd_vma, void *);
|
|
|
|
|
|
|
| bfd_uint64_t bfd_get_bits (const void *, int, bfd_boolean);
|
| void bfd_put_bits (bfd_uint64_t, void *, int, bfd_boolean);
|
|
|
| extern bfd_boolean bfd_section_already_linked_table_init (void);
|
| extern void bfd_section_already_linked_table_free (void);
|
|
|
|
|
|
|
| #if defined(__STDC__) || defined(ALMOST_STDC)
|
| struct ecoff_debug_info;
|
| struct ecoff_debug_swap;
|
| struct ecoff_extr;
|
| struct bfd_symbol;
|
| struct bfd_link_info;
|
| struct bfd_link_hash_entry;
|
| struct bfd_elf_version_tree;
|
| #endif
|
| extern bfd_vma bfd_ecoff_get_gp_value
|
| (bfd * abfd);
|
| extern bfd_boolean bfd_ecoff_set_gp_value
|
| (bfd *abfd, bfd_vma gp_value);
|
| extern bfd_boolean bfd_ecoff_set_regmasks
|
| (bfd *abfd, unsigned long gprmask, unsigned long fprmask,
|
| unsigned long *cprmask);
|
| extern void *bfd_ecoff_debug_init
|
| (bfd *output_bfd, struct ecoff_debug_info *output_debug,
|
| const struct ecoff_debug_swap *output_swap, struct bfd_link_info *);
|
| extern void bfd_ecoff_debug_free
|
| (void *handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,
|
| const struct ecoff_debug_swap *output_swap, struct bfd_link_info *);
|
| extern bfd_boolean bfd_ecoff_debug_accumulate
|
| (void *handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,
|
| const struct ecoff_debug_swap *output_swap, bfd *input_bfd,
|
| struct ecoff_debug_info *input_debug,
|
| const struct ecoff_debug_swap *input_swap, struct bfd_link_info *);
|
| extern bfd_boolean bfd_ecoff_debug_accumulate_other
|
| (void *handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,
|
| const struct ecoff_debug_swap *output_swap, bfd *input_bfd,
|
| struct bfd_link_info *);
|
| extern bfd_boolean bfd_ecoff_debug_externals
|
| (bfd *abfd, struct ecoff_debug_info *debug,
|
| const struct ecoff_debug_swap *swap, bfd_boolean relocatable,
|
| bfd_boolean (*get_extr) (struct bfd_symbol *, struct ecoff_extr *),
|
| void (*set_index) (struct bfd_symbol *, bfd_size_type));
|
| extern bfd_boolean bfd_ecoff_debug_one_external
|
| (bfd *abfd, struct ecoff_debug_info *debug,
|
| const struct ecoff_debug_swap *swap, const char *name,
|
| struct ecoff_extr *esym);
|
| extern bfd_size_type bfd_ecoff_debug_size
|
| (bfd *abfd, struct ecoff_debug_info *debug,
|
| const struct ecoff_debug_swap *swap);
|
| extern bfd_boolean bfd_ecoff_write_debug
|
| (bfd *abfd, struct ecoff_debug_info *debug,
|
| const struct ecoff_debug_swap *swap, file_ptr where);
|
| extern bfd_boolean bfd_ecoff_write_accumulated_debug
|
| (void *handle, bfd *abfd, struct ecoff_debug_info *debug,
|
| const struct ecoff_debug_swap *swap,
|
| struct bfd_link_info *info, file_ptr where);
|
|
|
|
|
|
|
| struct bfd_link_needed_list
|
| {
|
| struct bfd_link_needed_list *next;
|
| bfd *by;
|
| const char *name;
|
| };
|
|
|
| enum dynamic_lib_link_class {
|
| DYN_NORMAL = 0,
|
| DYN_AS_NEEDED = 1,
|
| DYN_DT_NEEDED = 2,
|
| DYN_NO_ADD_NEEDED = 4,
|
| DYN_NO_NEEDED = 8
|
| };
|
|
|
| enum notice_asneeded_action {
|
| notice_as_needed,
|
| notice_not_needed,
|
| notice_needed
|
| };
|
|
|
| extern bfd_boolean bfd_elf_record_link_assignment
|
| (bfd *, struct bfd_link_info *, const char *, bfd_boolean,
|
| bfd_boolean);
|
| extern struct bfd_link_needed_list *bfd_elf_get_needed_list
|
| (bfd *, struct bfd_link_info *);
|
| extern bfd_boolean bfd_elf_get_bfd_needed_list
|
| (bfd *, struct bfd_link_needed_list **);
|
| extern bfd_boolean bfd_elf_size_dynamic_sections
|
| (bfd *, const char *, const char *, const char *, const char * const *,
|
| struct bfd_link_info *, struct bfd_section **,
|
| struct bfd_elf_version_tree *);
|
| extern bfd_boolean bfd_elf_size_dynsym_hash_dynstr
|
| (bfd *, struct bfd_link_info *);
|
| extern void bfd_elf_set_dt_needed_name
|
| (bfd *, const char *);
|
| extern const char *bfd_elf_get_dt_soname
|
| (bfd *);
|
| extern void bfd_elf_set_dyn_lib_class
|
| (bfd *, enum dynamic_lib_link_class);
|
| extern int bfd_elf_get_dyn_lib_class
|
| (bfd *);
|
| extern struct bfd_link_needed_list *bfd_elf_get_runpath_list
|
| (bfd *, struct bfd_link_info *);
|
| extern bfd_boolean bfd_elf_discard_info
|
| (bfd *, struct bfd_link_info *);
|
| extern unsigned int _bfd_elf_default_action_discarded
|
| (struct bfd_section *);
|
|
|
| |
| |
|
|
| extern long bfd_get_elf_phdr_upper_bound
|
| (bfd *abfd);
|
|
|
| |
| |
| |
| |
| |
| |
|
|
| extern int bfd_get_elf_phdrs
|
| (bfd *abfd, void *phdrs);
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| extern bfd *bfd_elf_bfd_from_remote_memory
|
| (bfd *templ, bfd_vma ehdr_vma, bfd_vma *loadbasep,
|
| int (*target_read_memory) (bfd_vma vma, bfd_byte *myaddr, int len));
|
|
|
|
|
| extern int bfd_get_arch_size
|
| (bfd *);
|
|
|
|
|
| extern int bfd_get_sign_extend_vma
|
| (bfd *);
|
|
|
| extern struct bfd_section *_bfd_elf_tls_setup
|
| (bfd *, struct bfd_link_info *);
|
|
|
| extern void _bfd_fix_excluded_sec_syms
|
| (bfd *, struct bfd_link_info *);
|
|
|
| extern unsigned bfd_m68k_mach_to_features (int);
|
|
|
| extern int bfd_m68k_features_to_mach (unsigned);
|
|
|
| extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs
|
| (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *,
|
| char **);
|
|
|
| extern void bfd_elf_m68k_set_target_options (struct bfd_link_info *, int);
|
|
|
| extern bfd_boolean bfd_bfin_elf32_create_embedded_relocs
|
| (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *,
|
| char **);
|
|
|
|
|
|
|
| extern struct bfd_link_needed_list *bfd_sunos_get_needed_list
|
| (bfd *, struct bfd_link_info *);
|
| extern bfd_boolean bfd_sunos_record_link_assignment
|
| (bfd *, struct bfd_link_info *, const char *);
|
| extern bfd_boolean bfd_sunos_size_dynamic_sections
|
| (bfd *, struct bfd_link_info *, struct bfd_section **,
|
| struct bfd_section **, struct bfd_section **);
|
|
|
|
|
|
|
| extern bfd_boolean bfd_i386linux_size_dynamic_sections
|
| (bfd *, struct bfd_link_info *);
|
| extern bfd_boolean bfd_m68klinux_size_dynamic_sections
|
| (bfd *, struct bfd_link_info *);
|
| extern bfd_boolean bfd_sparclinux_size_dynamic_sections
|
| (bfd *, struct bfd_link_info *);
|
|
|
|
|
|
|
| struct _bfd_window_internal;
|
| typedef struct _bfd_window_internal bfd_window_internal;
|
|
|
| typedef struct _bfd_window
|
| {
|
|
|
| void *data;
|
| bfd_size_type size;
|
| |
| |
| |
| |
| |
|
|
| struct _bfd_window_internal *i;
|
| }
|
| bfd_window;
|
|
|
| extern void bfd_init_window
|
| (bfd_window *);
|
| extern void bfd_free_window
|
| (bfd_window *);
|
| extern bfd_boolean bfd_get_file_window
|
| (bfd *, file_ptr, bfd_size_type, bfd_window *, bfd_boolean);
|
|
|
|
|
|
|
| extern bfd_boolean bfd_xcoff_link_record_set
|
| (bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *, bfd_size_type);
|
| extern bfd_boolean bfd_xcoff_import_symbol
|
| (bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *, bfd_vma,
|
| const char *, const char *, const char *, unsigned int);
|
| extern bfd_boolean bfd_xcoff_export_symbol
|
| (bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *);
|
| extern bfd_boolean bfd_xcoff_link_count_reloc
|
| (bfd *, struct bfd_link_info *, const char *);
|
| extern bfd_boolean bfd_xcoff_record_link_assignment
|
| (bfd *, struct bfd_link_info *, const char *);
|
| extern bfd_boolean bfd_xcoff_size_dynamic_sections
|
| (bfd *, struct bfd_link_info *, const char *, const char *,
|
| unsigned long, unsigned long, unsigned long, bfd_boolean,
|
| int, bfd_boolean, bfd_boolean, struct bfd_section **, bfd_boolean);
|
| extern bfd_boolean bfd_xcoff_link_generate_rtinit
|
| (bfd *, const char *, const char *, bfd_boolean);
|
|
|
|
|
| extern bfd_boolean bfd_xcoff_ar_archive_set_magic
|
| (bfd *, char *);
|
|
|
|
|
|
|
| #if defined(__STDC__) || defined(ALMOST_STDC)
|
| struct internal_syment;
|
| union internal_auxent;
|
| #endif
|
|
|
| extern bfd_boolean bfd_coff_get_syment
|
| (bfd *, struct bfd_symbol *, struct internal_syment *);
|
|
|
| extern bfd_boolean bfd_coff_get_auxent
|
| (bfd *, struct bfd_symbol *, int, union internal_auxent *);
|
|
|
| extern bfd_boolean bfd_coff_set_symbol_class
|
| (bfd *, struct bfd_symbol *, unsigned int);
|
|
|
| extern bfd_boolean bfd_m68k_coff_create_embedded_relocs
|
| (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
|
|
|
|
|
| typedef enum
|
| {
|
| BFD_ARM_VFP11_FIX_DEFAULT,
|
| BFD_ARM_VFP11_FIX_NONE,
|
| BFD_ARM_VFP11_FIX_SCALAR,
|
| BFD_ARM_VFP11_FIX_VECTOR
|
| } bfd_arm_vfp11_fix;
|
|
|
| extern void bfd_elf32_arm_init_maps
|
| (bfd *);
|
|
|
| extern void bfd_elf32_arm_set_vfp11_fix
|
| (bfd *, struct bfd_link_info *);
|
|
|
| extern bfd_boolean bfd_elf32_arm_vfp11_erratum_scan
|
| (bfd *, struct bfd_link_info *);
|
|
|
| extern void bfd_elf32_arm_vfp11_fix_veneer_locations
|
| (bfd *, struct bfd_link_info *);
|
|
|
|
|
| extern bfd_boolean bfd_arm_allocate_interworking_sections
|
| (struct bfd_link_info *);
|
|
|
| extern bfd_boolean bfd_arm_process_before_allocation
|
| (bfd *, struct bfd_link_info *, int);
|
|
|
| extern bfd_boolean bfd_arm_get_bfd_for_interworking
|
| (bfd *, struct bfd_link_info *);
|
|
|
|
|
| extern bfd_boolean bfd_arm_pe_allocate_interworking_sections
|
| (struct bfd_link_info *);
|
|
|
| extern bfd_boolean bfd_arm_pe_process_before_allocation
|
| (bfd *, struct bfd_link_info *, int);
|
|
|
| extern bfd_boolean bfd_arm_pe_get_bfd_for_interworking
|
| (bfd *, struct bfd_link_info *);
|
|
|
|
|
| extern bfd_boolean bfd_elf32_arm_allocate_interworking_sections
|
| (struct bfd_link_info *);
|
|
|
| extern bfd_boolean bfd_elf32_arm_process_before_allocation
|
| (bfd *, struct bfd_link_info *);
|
|
|
| void bfd_elf32_arm_set_target_relocs
|
| (bfd *, struct bfd_link_info *, int, char *, int, int, bfd_arm_vfp11_fix,
|
| int, int, int);
|
|
|
| extern bfd_boolean bfd_elf32_arm_get_bfd_for_interworking
|
| (bfd *, struct bfd_link_info *);
|
|
|
| extern bfd_boolean bfd_elf32_arm_add_glue_sections_to_bfd
|
| (bfd *, struct bfd_link_info *);
|
|
|
|
|
| #define BFD_ARM_SPECIAL_SYM_TYPE_MAP (1 << 0)
|
| #define BFD_ARM_SPECIAL_SYM_TYPE_TAG (1 << 1)
|
| #define BFD_ARM_SPECIAL_SYM_TYPE_OTHER (1 << 2)
|
| #define BFD_ARM_SPECIAL_SYM_TYPE_ANY (~0)
|
| extern bfd_boolean bfd_is_arm_special_symbol_name
|
| (const char * name, int type);
|
|
|
| extern void bfd_elf32_arm_set_byteswap_code (struct bfd_link_info *, int);
|
|
|
|
|
| extern bfd_boolean bfd_arm_merge_machines
|
| (bfd *, bfd *);
|
|
|
| extern bfd_boolean bfd_arm_update_notes
|
| (bfd *, const char *);
|
|
|
| extern unsigned int bfd_arm_get_mach_from_notes
|
| (bfd *, const char *);
|
|
|
|
|
| extern int elf32_arm_setup_section_lists
|
| (bfd *, struct bfd_link_info *);
|
| extern void elf32_arm_next_input_section
|
| (struct bfd_link_info *, struct bfd_section *);
|
| extern bfd_boolean elf32_arm_size_stubs
|
| (bfd *, bfd *, struct bfd_link_info *, bfd_signed_vma,
|
| struct bfd_section * (*) (const char *, struct bfd_section *), void (*) (void));
|
| extern bfd_boolean elf32_arm_build_stubs
|
| (struct bfd_link_info *);
|
|
|
|
|
| extern void bfd_ticoff_set_section_load_page
|
| (struct bfd_section *, int);
|
|
|
| extern int bfd_ticoff_get_section_load_page
|
| (struct bfd_section *);
|
|
|
|
|
| extern bfd_vma bfd_h8300_pad_address
|
| (bfd *, bfd_vma);
|
|
|
|
|
| extern void bfd_elf32_ia64_after_parse
|
| (int);
|
|
|
| extern void bfd_elf64_ia64_after_parse
|
| (int);
|
|
|
| |
| |
| |
|
|
|
|
| struct coff_comdat_info
|
| {
|
|
|
| const char *name;
|
|
|
| |
| |
| |
|
|
| long symbol;
|
| };
|
|
|
| extern struct coff_comdat_info *bfd_coff_get_comdat_section
|
| (bfd *, struct bfd_section *);
|
|
|
|
|
| void bfd_init (void);
|
|
|
|
|
| bfd *bfd_fopen (const char *filename, const char *target,
|
| const char *mode, int fd);
|
|
|
| bfd *bfd_openr (const char *filename, const char *target);
|
|
|
| bfd *bfd_fdopenr (const char *filename, const char *target, int fd);
|
|
|
| bfd *bfd_openstreamr (const char *, const char *, void *);
|
|
|
| bfd *bfd_openr_iovec (const char *filename, const char *target,
|
| void *(*open) (struct bfd *nbfd,
|
| void *open_closure),
|
| void *open_closure,
|
| file_ptr (*pread) (struct bfd *nbfd,
|
| void *stream,
|
| void *buf,
|
| file_ptr nbytes,
|
| file_ptr offset),
|
| int (*close) (struct bfd *nbfd,
|
| void *stream),
|
| int (*stat) (struct bfd *abfd,
|
| void *stream,
|
| struct stat *sb));
|
|
|
| bfd *bfd_openw (const char *filename, const char *target);
|
|
|
| bfd_boolean bfd_close (bfd *abfd);
|
|
|
| bfd_boolean bfd_close_all_done (bfd *);
|
|
|
| bfd *bfd_create (const char *filename, bfd *templ);
|
|
|
| bfd_boolean bfd_make_writable (bfd *abfd);
|
|
|
| bfd_boolean bfd_make_readable (bfd *abfd);
|
|
|
| unsigned long bfd_calc_gnu_debuglink_crc32
|
| (unsigned long crc, const unsigned char *buf, bfd_size_type len);
|
|
|
| char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);
|
|
|
| struct bfd_section *bfd_create_gnu_debuglink_section
|
| (bfd *abfd, const char *filename);
|
|
|
| bfd_boolean bfd_fill_in_gnu_debuglink_section
|
| (bfd *abfd, struct bfd_section *sect, const char *filename);
|
|
|
|
|
|
|
|
|
|
|
| #define bfd_put_8(abfd, val, ptr) \
|
| ((void) (*((unsigned char *) (ptr)) = (val) & 0xff))
|
| #define bfd_put_signed_8 \
|
| bfd_put_8
|
| #define bfd_get_8(abfd, ptr) \
|
| (*(unsigned char *) (ptr) & 0xff)
|
| #define bfd_get_signed_8(abfd, ptr) \
|
| (((*(unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80)
|
|
|
| #define bfd_put_16(abfd, val, ptr) \
|
| BFD_SEND (abfd, bfd_putx16, ((val),(ptr)))
|
| #define bfd_put_signed_16 \
|
| bfd_put_16
|
| #define bfd_get_16(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_getx16, (ptr))
|
| #define bfd_get_signed_16(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_getx_signed_16, (ptr))
|
|
|
| #define bfd_put_32(abfd, val, ptr) \
|
| BFD_SEND (abfd, bfd_putx32, ((val),(ptr)))
|
| #define bfd_put_signed_32 \
|
| bfd_put_32
|
| #define bfd_get_32(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_getx32, (ptr))
|
| #define bfd_get_signed_32(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_getx_signed_32, (ptr))
|
|
|
| #define bfd_put_64(abfd, val, ptr) \
|
| BFD_SEND (abfd, bfd_putx64, ((val), (ptr)))
|
| #define bfd_put_signed_64 \
|
| bfd_put_64
|
| #define bfd_get_64(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_getx64, (ptr))
|
| #define bfd_get_signed_64(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_getx_signed_64, (ptr))
|
|
|
| #define bfd_get(bits, abfd, ptr) \
|
| ((bits) == 8 ? (bfd_vma) bfd_get_8 (abfd, ptr) \
|
| : (bits) == 16 ? bfd_get_16 (abfd, ptr) \
|
| : (bits) == 32 ? bfd_get_32 (abfd, ptr) \
|
| : (bits) == 64 ? bfd_get_64 (abfd, ptr) \
|
| : (abort (), (bfd_vma) - 1))
|
|
|
| #define bfd_put(bits, abfd, val, ptr) \
|
| ((bits) == 8 ? bfd_put_8 (abfd, val, ptr) \
|
| : (bits) == 16 ? bfd_put_16 (abfd, val, ptr) \
|
| : (bits) == 32 ? bfd_put_32 (abfd, val, ptr) \
|
| : (bits) == 64 ? bfd_put_64 (abfd, val, ptr) \
|
| : (abort (), (void) 0))
|
|
|
|
|
|
|
|
|
| #define bfd_h_put_8(abfd, val, ptr) \
|
| bfd_put_8 (abfd, val, ptr)
|
| #define bfd_h_put_signed_8(abfd, val, ptr) \
|
| bfd_put_8 (abfd, val, ptr)
|
| #define bfd_h_get_8(abfd, ptr) \
|
| bfd_get_8 (abfd, ptr)
|
| #define bfd_h_get_signed_8(abfd, ptr) \
|
| bfd_get_signed_8 (abfd, ptr)
|
|
|
| #define bfd_h_put_16(abfd, val, ptr) \
|
| BFD_SEND (abfd, bfd_h_putx16, (val, ptr))
|
| #define bfd_h_put_signed_16 \
|
| bfd_h_put_16
|
| #define bfd_h_get_16(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_h_getx16, (ptr))
|
| #define bfd_h_get_signed_16(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_h_getx_signed_16, (ptr))
|
|
|
| #define bfd_h_put_32(abfd, val, ptr) \
|
| BFD_SEND (abfd, bfd_h_putx32, (val, ptr))
|
| #define bfd_h_put_signed_32 \
|
| bfd_h_put_32
|
| #define bfd_h_get_32(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_h_getx32, (ptr))
|
| #define bfd_h_get_signed_32(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_h_getx_signed_32, (ptr))
|
|
|
| #define bfd_h_put_64(abfd, val, ptr) \
|
| BFD_SEND (abfd, bfd_h_putx64, (val, ptr))
|
| #define bfd_h_put_signed_64 \
|
| bfd_h_put_64
|
| #define bfd_h_get_64(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_h_getx64, (ptr))
|
| #define bfd_h_get_signed_64(abfd, ptr) \
|
| BFD_SEND (abfd, bfd_h_getx_signed_64, (ptr))
|
|
|
|
|
|
|
| #define H_PUT_64 bfd_h_put_64
|
| #define H_PUT_32 bfd_h_put_32
|
| #define H_PUT_16 bfd_h_put_16
|
| #define H_PUT_8 bfd_h_put_8
|
| #define H_PUT_S64 bfd_h_put_signed_64
|
| #define H_PUT_S32 bfd_h_put_signed_32
|
| #define H_PUT_S16 bfd_h_put_signed_16
|
| #define H_PUT_S8 bfd_h_put_signed_8
|
| #define H_GET_64 bfd_h_get_64
|
| #define H_GET_32 bfd_h_get_32
|
| #define H_GET_16 bfd_h_get_16
|
| #define H_GET_8 bfd_h_get_8
|
| #define H_GET_S64 bfd_h_get_signed_64
|
| #define H_GET_S32 bfd_h_get_signed_32
|
| #define H_GET_S16 bfd_h_get_signed_16
|
| #define H_GET_S8 bfd_h_get_signed_8
|
|
|
|
|
|
|
| long bfd_get_mtime (bfd *abfd);
|
|
|
| file_ptr bfd_get_size (bfd *abfd);
|
|
|
|
|
|
|
| typedef struct bfd_section
|
| {
|
| |
|
|
| const char *name;
|
|
|
|
|
| int id;
|
|
|
|
|
| int index;
|
|
|
|
|
| struct bfd_section *next;
|
|
|
|
|
| struct bfd_section *prev;
|
|
|
| |
| |
|
|
| flagword flags;
|
|
|
| #define SEC_NO_FLAGS 0x000
|
|
|
| |
|
|
| #define SEC_ALLOC 0x001
|
|
|
| |
|
|
| #define SEC_LOAD 0x002
|
|
|
| |
|
|
| #define SEC_RELOC 0x004
|
|
|
|
|
| #define SEC_READONLY 0x008
|
|
|
|
|
| #define SEC_CODE 0x010
|
|
|
|
|
| #define SEC_DATA 0x020
|
|
|
|
|
| #define SEC_ROM 0x040
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| #define SEC_CONSTRUCTOR 0x080
|
|
|
| |
| |
|
|
| #define SEC_HAS_CONTENTS 0x100
|
|
|
| |
|
|
| #define SEC_NEVER_LOAD 0x200
|
|
|
|
|
| #define SEC_THREAD_LOCAL 0x400
|
|
|
| |
| |
| |
| |
| |
|
|
| #define SEC_HAS_GOT_REF 0x800
|
|
|
| |
| |
| |
| |
|
|
| #define SEC_IS_COMMON 0x1000
|
|
|
| |
| |
| |
|
|
| #define SEC_DEBUGGING 0x2000
|
|
|
| |
| |
|
|
| #define SEC_IN_MEMORY 0x4000
|
|
|
| |
| |
|
|
| #define SEC_EXCLUDE 0x8000
|
|
|
| |
| |
| |
|
|
| #define SEC_SORT_ENTRIES 0x10000
|
|
|
| |
| |
| |
|
|
| #define SEC_LINK_ONCE 0x20000
|
|
|
| |
|
|
| #define SEC_LINK_DUPLICATES 0xc0000
|
|
|
| |
|
|
| #define SEC_LINK_DUPLICATES_DISCARD 0x0
|
|
|
| |
| |
|
|
| #define SEC_LINK_DUPLICATES_ONE_ONLY 0x40000
|
|
|
| |
|
|
| #define SEC_LINK_DUPLICATES_SAME_SIZE 0x80000
|
|
|
| |
| |
|
|
| #define SEC_LINK_DUPLICATES_SAME_CONTENTS \
|
| (SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE)
|
|
|
| |
| |
| |
|
|
| #define SEC_LINKER_CREATED 0x100000
|
|
|
| |
| |
|
|
| #define SEC_KEEP 0x200000
|
|
|
| |
|
|
| #define SEC_SMALL_DATA 0x400000
|
|
|
| |
|
|
| #define SEC_MERGE 0x800000
|
|
|
| |
| |
|
|
| #define SEC_STRINGS 0x1000000
|
|
|
|
|
| #define SEC_GROUP 0x2000000
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| #define SEC_COFF_SHARED_LIBRARY 0x4000000
|
|
|
| |
|
|
| #define SEC_COFF_SHARED 0x8000000
|
|
|
| |
| |
| |
| |
|
|
| #define SEC_TIC54X_BLOCK 0x10000000
|
|
|
| |
| |
|
|
| #define SEC_TIC54X_CLINK 0x20000000
|
|
|
|
|
|
|
|
|
|
|
|
|
| unsigned int user_set_vma : 1;
|
|
|
|
|
| unsigned int linker_mark : 1;
|
|
|
| |
|
|
| unsigned int linker_has_input : 1;
|
|
|
|
|
| unsigned int gc_mark : 1;
|
|
|
|
|
|
|
|
|
| unsigned int segment_mark : 1;
|
|
|
|
|
| unsigned int sec_info_type:3;
|
| #define ELF_INFO_TYPE_NONE 0
|
| #define ELF_INFO_TYPE_STABS 1
|
| #define ELF_INFO_TYPE_MERGE 2
|
| #define ELF_INFO_TYPE_EH_FRAME 3
|
| #define ELF_INFO_TYPE_JUST_SYMS 4
|
|
|
|
|
| unsigned int use_rela_p:1;
|
|
|
| |
|
|
|
|
|
|
| unsigned int has_tls_reloc:1;
|
|
|
|
|
| unsigned int has_gp_reloc:1;
|
|
|
|
|
| unsigned int need_finalize_relax:1;
|
|
|
|
|
| unsigned int reloc_done : 1;
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
|
|
| bfd_vma vma;
|
|
|
| |
| |
|
|
| bfd_vma lma;
|
|
|
| |
| |
|
|
| bfd_size_type size;
|
|
|
| |
| |
| |
| |
| |
| |
| |
|
|
| bfd_size_type rawsize;
|
|
|
| |
| |
| |
| |
| |
| |
|
|
| bfd_vma output_offset;
|
|
|
|
|
| struct bfd_section *output_section;
|
|
|
| |
|
|
| unsigned int alignment_power;
|
|
|
| |
|
|
| struct reloc_cache_entry *relocation;
|
|
|
| |
|
|
| struct reloc_cache_entry **orelocation;
|
|
|
|
|
| unsigned reloc_count;
|
|
|
| |
|
|
|
|
|
|
| file_ptr filepos;
|
|
|
|
|
| file_ptr rel_filepos;
|
|
|
|
|
| file_ptr line_filepos;
|
|
|
|
|
| void *userdata;
|
|
|
| |
|
|
| unsigned char *contents;
|
|
|
|
|
| alent *lineno;
|
|
|
|
|
| unsigned int lineno_count;
|
|
|
|
|
| unsigned int entsize;
|
|
|
| |
|
|
| struct bfd_section *kept_section;
|
|
|
| |
|
|
| file_ptr moving_line_filepos;
|
|
|
|
|
| int target_index;
|
|
|
| void *used_by_bfd;
|
|
|
| |
|
|
| struct relent_chain *constructor_chain;
|
|
|
|
|
| bfd *owner;
|
|
|
|
|
| struct bfd_symbol *symbol;
|
| struct bfd_symbol **symbol_ptr_ptr;
|
|
|
| |
| |
| |
|
|
| union {
|
| struct bfd_link_order *link_order;
|
| struct bfd_section *s;
|
| } map_head, map_tail;
|
| } asection;
|
|
|
| |
| |
| |
| |
|
|
| #define BFD_ABS_SECTION_NAME "*ABS*"
|
| #define BFD_UND_SECTION_NAME "*UND*"
|
| #define BFD_COM_SECTION_NAME "*COM*"
|
| #define BFD_IND_SECTION_NAME "*IND*"
|
|
|
|
|
| extern asection bfd_abs_section;
|
| #define bfd_abs_section_ptr ((asection *) &bfd_abs_section)
|
| #define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr)
|
|
|
| extern asection bfd_und_section;
|
| #define bfd_und_section_ptr ((asection *) &bfd_und_section)
|
| #define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr)
|
|
|
| extern asection bfd_com_section;
|
| #define bfd_com_section_ptr ((asection *) &bfd_com_section)
|
|
|
| extern asection bfd_ind_section;
|
| #define bfd_ind_section_ptr ((asection *) &bfd_ind_section)
|
| #define bfd_is_ind_section(sec) ((sec) == bfd_ind_section_ptr)
|
|
|
| #define bfd_is_const_section(SEC) \
|
| ( ((SEC) == bfd_abs_section_ptr) \
|
| || ((SEC) == bfd_und_section_ptr) \
|
| || ((SEC) == bfd_com_section_ptr) \
|
| || ((SEC) == bfd_ind_section_ptr))
|
|
|
| |
| |
|
|
| #define bfd_section_list_remove(ABFD, S) \
|
| do \
|
| { \
|
| asection *_s = S; \
|
| asection *_next = _s->next; \
|
| asection *_prev = _s->prev; \
|
| if (_prev) \
|
| _prev->next = _next; \
|
| else \
|
| (ABFD)->sections = _next; \
|
| if (_next) \
|
| _next->prev = _prev; \
|
| else \
|
| (ABFD)->section_last = _prev; \
|
| } \
|
| while (0)
|
| #define bfd_section_list_append(ABFD, S) \
|
| do \
|
| { \
|
| asection *_s = S; \
|
| bfd *_abfd = ABFD; \
|
| _s->next = NULL; \
|
| if (_abfd->section_last) \
|
| { \
|
| _s->prev = _abfd->section_last; \
|
| _abfd->section_last->next = _s; \
|
| } \
|
| else \
|
| { \
|
| _s->prev = NULL; \
|
| _abfd->sections = _s; \
|
| } \
|
| _abfd->section_last = _s; \
|
| } \
|
| while (0)
|
| #define bfd_section_list_prepend(ABFD, S) \
|
| do \
|
| { \
|
| asection *_s = S; \
|
| bfd *_abfd = ABFD; \
|
| _s->prev = NULL; \
|
| if (_abfd->sections) \
|
| { \
|
| _s->next = _abfd->sections; \
|
| _abfd->sections->prev = _s; \
|
| } \
|
| else \
|
| { \
|
| _s->next = NULL; \
|
| _abfd->section_last = _s; \
|
| } \
|
| _abfd->sections = _s; \
|
| } \
|
| while (0)
|
| #define bfd_section_list_insert_after(ABFD, A, S) \
|
| do \
|
| { \
|
| asection *_a = A; \
|
| asection *_s = S; \
|
| asection *_next = _a->next; \
|
| _s->next = _next; \
|
| _s->prev = _a; \
|
| _a->next = _s; \
|
| if (_next) \
|
| _next->prev = _s; \
|
| else \
|
| (ABFD)->section_last = _s; \
|
| } \
|
| while (0)
|
| #define bfd_section_list_insert_before(ABFD, B, S) \
|
| do \
|
| { \
|
| asection *_b = B; \
|
| asection *_s = S; \
|
| asection *_prev = _b->prev; \
|
| _s->prev = _prev; \
|
| _s->next = _b; \
|
| _b->prev = _s; \
|
| if (_prev) \
|
| _prev->next = _s; \
|
| else \
|
| (ABFD)->sections = _s; \
|
| } \
|
| while (0)
|
| #define bfd_section_removed_from_list(ABFD, S) \
|
| ((S)->next == NULL ? (ABFD)->section_last != (S) : (S)->next->prev != (S))
|
|
|
| #define BFD_FAKE_SECTION(SEC, FLAGS, SYM, NAME, IDX) \
|
| \
|
| { NAME, IDX, 0, NULL, NULL, FLAGS, 0, \
|
| \
|
| \
|
| 0, 0, 1, \
|
| \
|
| \
|
| 0, 0, 0, 0, \
|
| \
|
| \
|
| 0, 0, 0, \
|
| \
|
| \
|
| 0, 0, 0, 0, \
|
| \
|
| \
|
| 0, (struct bfd_section *) &SEC, 0, \
|
| \
|
| \
|
| NULL, NULL, 0, 0, 0, \
|
| \
|
| \
|
| 0, NULL, NULL, NULL, 0, \
|
| \
|
| \
|
| 0, NULL, 0, \
|
| \
|
| \
|
| 0, NULL, NULL, NULL, \
|
| \
|
| \
|
| (struct bfd_symbol *) SYM, &SEC.symbol, \
|
| \
|
| \
|
| { NULL }, { NULL } \
|
| }
|
|
|
| void bfd_section_list_clear (bfd *);
|
|
|
| asection *bfd_get_section_by_name (bfd *abfd, const char *name);
|
|
|
| asection *bfd_get_section_by_name_if
|
| (bfd *abfd,
|
| const char *name,
|
| bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj),
|
| void *obj);
|
|
|
| char *bfd_get_unique_section_name
|
| (bfd *abfd, const char *templat, int *count);
|
|
|
| asection *bfd_make_section_old_way (bfd *abfd, const char *name);
|
|
|
| asection *bfd_make_section_anyway_with_flags
|
| (bfd *abfd, const char *name, flagword flags);
|
|
|
| asection *bfd_make_section_anyway (bfd *abfd, const char *name);
|
|
|
| asection *bfd_make_section_with_flags
|
| (bfd *, const char *name, flagword flags);
|
|
|
| asection *bfd_make_section (bfd *, const char *name);
|
|
|
| bfd_boolean bfd_set_section_flags
|
| (bfd *abfd, asection *sec, flagword flags);
|
|
|
| void bfd_map_over_sections
|
| (bfd *abfd,
|
| void (*func) (bfd *abfd, asection *sect, void *obj),
|
| void *obj);
|
|
|
| asection *bfd_sections_find_if
|
| (bfd *abfd,
|
| bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj),
|
| void *obj);
|
|
|
| bfd_boolean bfd_set_section_size
|
| (bfd *abfd, asection *sec, bfd_size_type val);
|
|
|
| bfd_boolean bfd_set_section_contents
|
| (bfd *abfd, asection *section, const void *data,
|
| file_ptr offset, bfd_size_type count);
|
|
|
| bfd_boolean bfd_get_section_contents
|
| (bfd *abfd, asection *section, void *location, file_ptr offset,
|
| bfd_size_type count);
|
|
|
| bfd_boolean bfd_malloc_and_get_section
|
| (bfd *abfd, asection *section, bfd_byte **buf);
|
|
|
| bfd_boolean bfd_copy_private_section_data
|
| (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);
|
|
|
| #define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \
|
| BFD_SEND (obfd, _bfd_copy_private_section_data, \
|
| (ibfd, isection, obfd, osection))
|
| bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec);
|
|
|
| bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group);
|
|
|
|
|
| enum bfd_architecture
|
| {
|
| bfd_arch_unknown,
|
| bfd_arch_obscure,
|
| bfd_arch_m68k,
|
| #define bfd_mach_m68000 1
|
| #define bfd_mach_m68008 2
|
| #define bfd_mach_m68010 3
|
| #define bfd_mach_m68020 4
|
| #define bfd_mach_m68030 5
|
| #define bfd_mach_m68040 6
|
| #define bfd_mach_m68060 7
|
| #define bfd_mach_cpu32 8
|
| #define bfd_mach_fido 9
|
| #define bfd_mach_mcf_isa_a_nodiv 10
|
| #define bfd_mach_mcf_isa_a 11
|
| #define bfd_mach_mcf_isa_a_mac 12
|
| #define bfd_mach_mcf_isa_a_emac 13
|
| #define bfd_mach_mcf_isa_aplus 14
|
| #define bfd_mach_mcf_isa_aplus_mac 15
|
| #define bfd_mach_mcf_isa_aplus_emac 16
|
| #define bfd_mach_mcf_isa_b_nousp 17
|
| #define bfd_mach_mcf_isa_b_nousp_mac 18
|
| #define bfd_mach_mcf_isa_b_nousp_emac 19
|
| #define bfd_mach_mcf_isa_b 20
|
| #define bfd_mach_mcf_isa_b_mac 21
|
| #define bfd_mach_mcf_isa_b_emac 22
|
| #define bfd_mach_mcf_isa_b_float 23
|
| #define bfd_mach_mcf_isa_b_float_mac 24
|
| #define bfd_mach_mcf_isa_b_float_emac 25
|
| #define bfd_mach_mcf_isa_c 26
|
| #define bfd_mach_mcf_isa_c_mac 27
|
| #define bfd_mach_mcf_isa_c_emac 28
|
| #define bfd_mach_mcf_isa_c_nodiv 29
|
| #define bfd_mach_mcf_isa_c_nodiv_mac 30
|
| #define bfd_mach_mcf_isa_c_nodiv_emac 31
|
| bfd_arch_vax,
|
| bfd_arch_i960,
|
| |
| |
| |
| |
| |
| |
|
|
|
|
| #define bfd_mach_i960_core 1
|
| #define bfd_mach_i960_ka_sa 2
|
| #define bfd_mach_i960_kb_sb 3
|
| #define bfd_mach_i960_mc 4
|
| #define bfd_mach_i960_xa 5
|
| #define bfd_mach_i960_ca 6
|
| #define bfd_mach_i960_jx 7
|
| #define bfd_mach_i960_hx 8
|
|
|
| bfd_arch_or32,
|
|
|
| bfd_arch_sparc,
|
| #define bfd_mach_sparc 1
|
|
|
| #define bfd_mach_sparc_sparclet 2
|
| #define bfd_mach_sparc_sparclite 3
|
| #define bfd_mach_sparc_v8plus 4
|
| #define bfd_mach_sparc_v8plusa 5
|
| #define bfd_mach_sparc_sparclite_le 6
|
| #define bfd_mach_sparc_v9 7
|
| #define bfd_mach_sparc_v9a 8
|
| #define bfd_mach_sparc_v8plusb 9
|
| #define bfd_mach_sparc_v9b 10
|
|
|
| #define bfd_mach_sparc_v9_p(mach) \
|
| ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9b \
|
| && (mach) != bfd_mach_sparc_sparclite_le)
|
|
|
| #define bfd_mach_sparc_64bit_p(mach) \
|
| ((mach) >= bfd_mach_sparc_v9 && (mach) != bfd_mach_sparc_v8plusb)
|
| bfd_arch_spu,
|
| #define bfd_mach_spu 256
|
| bfd_arch_mips,
|
| #define bfd_mach_mips3000 3000
|
| #define bfd_mach_mips3900 3900
|
| #define bfd_mach_mips4000 4000
|
| #define bfd_mach_mips4010 4010
|
| #define bfd_mach_mips4100 4100
|
| #define bfd_mach_mips4111 4111
|
| #define bfd_mach_mips4120 4120
|
| #define bfd_mach_mips4300 4300
|
| #define bfd_mach_mips4400 4400
|
| #define bfd_mach_mips4600 4600
|
| #define bfd_mach_mips4650 4650
|
| #define bfd_mach_mips5000 5000
|
| #define bfd_mach_mips5400 5400
|
| #define bfd_mach_mips5500 5500
|
| #define bfd_mach_mips6000 6000
|
| #define bfd_mach_mips7000 7000
|
| #define bfd_mach_mips8000 8000
|
| #define bfd_mach_mips9000 9000
|
| #define bfd_mach_mips10000 10000
|
| #define bfd_mach_mips12000 12000
|
| #define bfd_mach_mips16 16
|
| #define bfd_mach_mips5 5
|
| #define bfd_mach_mips_loongson_2e 3001
|
| #define bfd_mach_mips_loongson_2f 3002
|
| #define bfd_mach_mips_sb1 12310201
|
| #define bfd_mach_mips_octeon 6501
|
| #define bfd_mach_mipsisa32 32
|
| #define bfd_mach_mipsisa32r2 33
|
| #define bfd_mach_mipsisa64 64
|
| #define bfd_mach_mipsisa64r2 65
|
| bfd_arch_i386,
|
| #define bfd_mach_i386_i386 1
|
| #define bfd_mach_i386_i8086 2
|
| #define bfd_mach_i386_i386_intel_syntax 3
|
| #define bfd_mach_x86_64 64
|
| #define bfd_mach_x86_64_intel_syntax 65
|
| bfd_arch_we32k,
|
| bfd_arch_tahoe,
|
| bfd_arch_i860,
|
| bfd_arch_i370,
|
| bfd_arch_romp,
|
| bfd_arch_convex,
|
| bfd_arch_m88k,
|
| bfd_arch_m98k,
|
| bfd_arch_pyramid,
|
| bfd_arch_h8300,
|
| #define bfd_mach_h8300 1
|
| #define bfd_mach_h8300h 2
|
| #define bfd_mach_h8300s 3
|
| #define bfd_mach_h8300hn 4
|
| #define bfd_mach_h8300sn 5
|
| #define bfd_mach_h8300sx 6
|
| #define bfd_mach_h8300sxn 7
|
| bfd_arch_pdp11,
|
| bfd_arch_powerpc,
|
| #define bfd_mach_ppc 32
|
| #define bfd_mach_ppc64 64
|
| #define bfd_mach_ppc_403 403
|
| #define bfd_mach_ppc_403gc 4030
|
| #define bfd_mach_ppc_505 505
|
| #define bfd_mach_ppc_601 601
|
| #define bfd_mach_ppc_602 602
|
| #define bfd_mach_ppc_603 603
|
| #define bfd_mach_ppc_ec603e 6031
|
| #define bfd_mach_ppc_604 604
|
| #define bfd_mach_ppc_620 620
|
| #define bfd_mach_ppc_630 630
|
| #define bfd_mach_ppc_750 750
|
| #define bfd_mach_ppc_860 860
|
| #define bfd_mach_ppc_a35 35
|
| #define bfd_mach_ppc_rs64ii 642
|
| #define bfd_mach_ppc_rs64iii 643
|
| #define bfd_mach_ppc_7400 7400
|
| #define bfd_mach_ppc_e500 500
|
| #define bfd_mach_ppc_e500mc 5001
|
| bfd_arch_rs6000,
|
| #define bfd_mach_rs6k 6000
|
| #define bfd_mach_rs6k_rs1 6001
|
| #define bfd_mach_rs6k_rsc 6003
|
| #define bfd_mach_rs6k_rs2 6002
|
| bfd_arch_hppa,
|
| #define bfd_mach_hppa10 10
|
| #define bfd_mach_hppa11 11
|
| #define bfd_mach_hppa20 20
|
| #define bfd_mach_hppa20w 25
|
| bfd_arch_d10v,
|
| #define bfd_mach_d10v 1
|
| #define bfd_mach_d10v_ts2 2
|
| #define bfd_mach_d10v_ts3 3
|
| bfd_arch_d30v,
|
| bfd_arch_dlx,
|
| bfd_arch_m68hc11,
|
| bfd_arch_m68hc12,
|
| #define bfd_mach_m6812_default 0
|
| #define bfd_mach_m6812 1
|
| #define bfd_mach_m6812s 2
|
| bfd_arch_z8k,
|
| #define bfd_mach_z8001 1
|
| #define bfd_mach_z8002 2
|
| bfd_arch_h8500,
|
| bfd_arch_sh,
|
| #define bfd_mach_sh 1
|
| #define bfd_mach_sh2 0x20
|
| #define bfd_mach_sh_dsp 0x2d
|
| #define bfd_mach_sh2a 0x2a
|
| #define bfd_mach_sh2a_nofpu 0x2b
|
| #define bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu 0x2a1
|
| #define bfd_mach_sh2a_nofpu_or_sh3_nommu 0x2a2
|
| #define bfd_mach_sh2a_or_sh4 0x2a3
|
| #define bfd_mach_sh2a_or_sh3e 0x2a4
|
| #define bfd_mach_sh2e 0x2e
|
| #define bfd_mach_sh3 0x30
|
| #define bfd_mach_sh3_nommu 0x31
|
| #define bfd_mach_sh3_dsp 0x3d
|
| #define bfd_mach_sh3e 0x3e
|
| #define bfd_mach_sh4 0x40
|
| #define bfd_mach_sh4_nofpu 0x41
|
| #define bfd_mach_sh4_nommu_nofpu 0x42
|
| #define bfd_mach_sh4a 0x4a
|
| #define bfd_mach_sh4a_nofpu 0x4b
|
| #define bfd_mach_sh4al_dsp 0x4d
|
| #define bfd_mach_sh5 0x50
|
| bfd_arch_alpha,
|
| #define bfd_mach_alpha_ev4 0x10
|
| #define bfd_mach_alpha_ev5 0x20
|
| #define bfd_mach_alpha_ev6 0x30
|
| bfd_arch_arm,
|
| #define bfd_mach_arm_unknown 0
|
| #define bfd_mach_arm_2 1
|
| #define bfd_mach_arm_2a 2
|
| #define bfd_mach_arm_3 3
|
| #define bfd_mach_arm_3M 4
|
| #define bfd_mach_arm_4 5
|
| #define bfd_mach_arm_4T 6
|
| #define bfd_mach_arm_5 7
|
| #define bfd_mach_arm_5T 8
|
| #define bfd_mach_arm_5TE 9
|
| #define bfd_mach_arm_XScale 10
|
| #define bfd_mach_arm_ep9312 11
|
| #define bfd_mach_arm_iWMMXt 12
|
| #define bfd_mach_arm_iWMMXt2 13
|
| bfd_arch_ns32k,
|
| bfd_arch_w65,
|
| bfd_arch_tic30,
|
| bfd_arch_tic4x,
|
| #define bfd_mach_tic3x 30
|
| #define bfd_mach_tic4x 40
|
| bfd_arch_tic54x,
|
| bfd_arch_tic80,
|
| bfd_arch_v850,
|
| #define bfd_mach_v850 1
|
| #define bfd_mach_v850e 'E'
|
| #define bfd_mach_v850e1 '1'
|
| bfd_arch_arc,
|
| #define bfd_mach_arc_5 5
|
| #define bfd_mach_arc_6 6
|
| #define bfd_mach_arc_7 7
|
| #define bfd_mach_arc_8 8
|
| bfd_arch_m32c,
|
| #define bfd_mach_m16c 0x75
|
| #define bfd_mach_m32c 0x78
|
| bfd_arch_m32r,
|
| #define bfd_mach_m32r 1
|
| #define bfd_mach_m32rx 'x'
|
| #define bfd_mach_m32r2 '2'
|
| bfd_arch_mn10200,
|
| bfd_arch_mn10300,
|
| #define bfd_mach_mn10300 300
|
| #define bfd_mach_am33 330
|
| #define bfd_mach_am33_2 332
|
| bfd_arch_fr30,
|
| #define bfd_mach_fr30 0x46523330
|
| bfd_arch_frv,
|
| #define bfd_mach_frv 1
|
| #define bfd_mach_frvsimple 2
|
| #define bfd_mach_fr300 300
|
| #define bfd_mach_fr400 400
|
| #define bfd_mach_fr450 450
|
| #define bfd_mach_frvtomcat 499
|
| #define bfd_mach_fr500 500
|
| #define bfd_mach_fr550 550
|
| bfd_arch_mcore,
|
| bfd_arch_mep,
|
| #define bfd_mach_mep 1
|
| #define bfd_mach_mep_h1 0x6831
|
| bfd_arch_ia64,
|
| #define bfd_mach_ia64_elf64 64
|
| #define bfd_mach_ia64_elf32 32
|
| bfd_arch_ip2k,
|
| #define bfd_mach_ip2022 1
|
| #define bfd_mach_ip2022ext 2
|
| bfd_arch_iq2000,
|
| #define bfd_mach_iq2000 1
|
| #define bfd_mach_iq10 2
|
| bfd_arch_mt,
|
| #define bfd_mach_ms1 1
|
| #define bfd_mach_mrisc2 2
|
| #define bfd_mach_ms2 3
|
| bfd_arch_pj,
|
| bfd_arch_avr,
|
| #define bfd_mach_avr1 1
|
| #define bfd_mach_avr2 2
|
| #define bfd_mach_avr25 25
|
| #define bfd_mach_avr3 3
|
| #define bfd_mach_avr31 31
|
| #define bfd_mach_avr35 35
|
| #define bfd_mach_avr4 4
|
| #define bfd_mach_avr5 5
|
| #define bfd_mach_avr51 51
|
| #define bfd_mach_avr6 6
|
| bfd_arch_bfin,
|
| #define bfd_mach_bfin 1
|
| bfd_arch_cr16,
|
| #define bfd_mach_cr16 1
|
| bfd_arch_cr16c,
|
| #define bfd_mach_cr16c 1
|
| bfd_arch_crx,
|
| #define bfd_mach_crx 1
|
| bfd_arch_cris,
|
| #define bfd_mach_cris_v0_v10 255
|
| #define bfd_mach_cris_v32 32
|
| #define bfd_mach_cris_v10_v32 1032
|
| bfd_arch_s390,
|
| #define bfd_mach_s390_31 31
|
| #define bfd_mach_s390_64 64
|
| bfd_arch_score,
|
| bfd_arch_openrisc,
|
| bfd_arch_mmix,
|
| bfd_arch_xstormy16,
|
| #define bfd_mach_xstormy16 1
|
| bfd_arch_msp430,
|
| #define bfd_mach_msp11 11
|
| #define bfd_mach_msp110 110
|
| #define bfd_mach_msp12 12
|
| #define bfd_mach_msp13 13
|
| #define bfd_mach_msp14 14
|
| #define bfd_mach_msp15 15
|
| #define bfd_mach_msp16 16
|
| #define bfd_mach_msp21 21
|
| #define bfd_mach_msp31 31
|
| #define bfd_mach_msp32 32
|
| #define bfd_mach_msp33 33
|
| #define bfd_mach_msp41 41
|
| #define bfd_mach_msp42 42
|
| #define bfd_mach_msp43 43
|
| #define bfd_mach_msp44 44
|
| bfd_arch_xc16x,
|
| #define bfd_mach_xc16x 1
|
| #define bfd_mach_xc16xl 2
|
| #define bfd_mach_xc16xs 3
|
| bfd_arch_xtensa,
|
| #define bfd_mach_xtensa 1
|
| bfd_arch_maxq,
|
| #define bfd_mach_maxq10 10
|
| #define bfd_mach_maxq20 20
|
| bfd_arch_z80,
|
| #define bfd_mach_z80strict 1
|
| #define bfd_mach_z80 3
|
| #define bfd_mach_z80full 7
|
| #define bfd_mach_r800 11
|
| bfd_arch_last
|
| };
|
|
|
| typedef struct bfd_arch_info
|
| {
|
| int bits_per_word;
|
| int bits_per_address;
|
| int bits_per_byte;
|
| enum bfd_architecture arch;
|
| unsigned long mach;
|
| const char *arch_name;
|
| const char *printable_name;
|
| unsigned int section_align_power;
|
| |
| |
|
|
| bfd_boolean the_default;
|
| const struct bfd_arch_info * (*compatible)
|
| (const struct bfd_arch_info *a, const struct bfd_arch_info *b);
|
|
|
| bfd_boolean (*scan) (const struct bfd_arch_info *, const char *);
|
|
|
| const struct bfd_arch_info *next;
|
| }
|
| bfd_arch_info_type;
|
|
|
| const char *bfd_printable_name (bfd *abfd);
|
|
|
| const bfd_arch_info_type *bfd_scan_arch (const char *string);
|
|
|
| const char **bfd_arch_list (void);
|
|
|
| const bfd_arch_info_type *bfd_arch_get_compatible
|
| (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns);
|
|
|
| void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);
|
|
|
| enum bfd_architecture bfd_get_arch (bfd *abfd);
|
|
|
| unsigned long bfd_get_mach (bfd *abfd);
|
|
|
| unsigned int bfd_arch_bits_per_byte (bfd *abfd);
|
|
|
| unsigned int bfd_arch_bits_per_address (bfd *abfd);
|
|
|
| const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd);
|
|
|
| const bfd_arch_info_type *bfd_lookup_arch
|
| (enum bfd_architecture arch, unsigned long machine);
|
|
|
| const char *bfd_printable_arch_mach
|
| (enum bfd_architecture arch, unsigned long machine);
|
|
|
| unsigned int bfd_octets_per_byte (bfd *abfd);
|
|
|
| unsigned int bfd_arch_mach_octets_per_byte
|
| (enum bfd_architecture arch, unsigned long machine);
|
|
|
|
|
| typedef enum bfd_reloc_status
|
| {
|
|
|
| bfd_reloc_ok,
|
|
|
|
|
| bfd_reloc_overflow,
|
|
|
|
|
| bfd_reloc_outofrange,
|
|
|
|
|
| bfd_reloc_continue,
|
|
|
|
|
| bfd_reloc_notsupported,
|
|
|
|
|
| bfd_reloc_other,
|
|
|
|
|
| bfd_reloc_undefined,
|
|
|
| |
| |
| |
|
|
| bfd_reloc_dangerous
|
| }
|
| bfd_reloc_status_type;
|
|
|
|
|
| typedef struct reloc_cache_entry
|
| {
|
|
|
| struct bfd_symbol **sym_ptr_ptr;
|
|
|
|
|
| bfd_size_type address;
|
|
|
|
|
| bfd_vma addend;
|
|
|
|
|
| reloc_howto_type *howto;
|
|
|
| }
|
| arelent;
|
|
|
| enum complain_overflow
|
| {
|
|
|
| complain_overflow_dont,
|
|
|
| |
| |
|
|
| complain_overflow_bitfield,
|
|
|
| |
|
|
| complain_overflow_signed,
|
|
|
| |
|
|
| complain_overflow_unsigned
|
| };
|
|
|
| struct reloc_howto_struct
|
| {
|
| |
| |
| |
| |
| |
|
|
| unsigned int type;
|
|
|
| |
|
|
| unsigned int rightshift;
|
|
|
| |
| |
|
|
| int size;
|
|
|
| |
|
|
| unsigned int bitsize;
|
|
|
| |
| |
| |
|
|
| bfd_boolean pc_relative;
|
|
|
| |
|
|
| unsigned int bitpos;
|
|
|
| |
|
|
| enum complain_overflow complain_on_overflow;
|
|
|
| |
| |
| |
|
|
| bfd_reloc_status_type (*special_function)
|
| (bfd *, arelent *, struct bfd_symbol *, void *, asection *,
|
| bfd *, char **);
|
|
|
|
|
| char *name;
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| bfd_boolean partial_inplace;
|
|
|
| |
| |
| |
| |
| |
| |
| |
|
|
| bfd_vma src_mask;
|
|
|
| |
|
|
| bfd_vma dst_mask;
|
|
|
| |
| |
| |
| |
| |
|
|
| bfd_boolean pcrel_offset;
|
| };
|
|
|
| #define HOWTO(C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC) \
|
| { (unsigned) C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC }
|
| #define NEWHOWTO(FUNCTION, NAME, SIZE, REL, IN) \
|
| HOWTO (0, 0, SIZE, 0, REL, 0, complain_overflow_dont, FUNCTION, \
|
| NAME, FALSE, 0, 0, IN)
|
|
|
| #define EMPTY_HOWTO(C) \
|
| HOWTO ((C), 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, \
|
| NULL, FALSE, 0, 0, FALSE)
|
|
|
| #define HOWTO_PREPARE(relocation, symbol) \
|
| { \
|
| if (symbol != NULL) \
|
| { \
|
| if (bfd_is_com_section (symbol->section)) \
|
| { \
|
| relocation = 0; \
|
| } \
|
| else \
|
| { \
|
| relocation = symbol->value; \
|
| } \
|
| } \
|
| }
|
|
|
| unsigned int bfd_get_reloc_size (reloc_howto_type *);
|
|
|
| typedef struct relent_chain
|
| {
|
| arelent relent;
|
| struct relent_chain *next;
|
| }
|
| arelent_chain;
|
|
|
| bfd_reloc_status_type bfd_check_overflow
|
| (enum complain_overflow how,
|
| unsigned int bitsize,
|
| unsigned int rightshift,
|
| unsigned int addrsize,
|
| bfd_vma relocation);
|
|
|
| bfd_reloc_status_type bfd_perform_relocation
|
| (bfd *abfd,
|
| arelent *reloc_entry,
|
| void *data,
|
| asection *input_section,
|
| bfd *output_bfd,
|
| char **error_message);
|
|
|
| bfd_reloc_status_type bfd_install_relocation
|
| (bfd *abfd,
|
| arelent *reloc_entry,
|
| void *data, bfd_vma data_start,
|
| asection *input_section,
|
| char **error_message);
|
|
|
| enum bfd_reloc_code_real {
|
| _dummy_first_bfd_reloc_code_real,
|
|
|
|
|
|
|
| BFD_RELOC_64,
|
| BFD_RELOC_32,
|
| BFD_RELOC_26,
|
| BFD_RELOC_24,
|
| BFD_RELOC_16,
|
| BFD_RELOC_14,
|
| BFD_RELOC_8,
|
|
|
| |
| |
| |
| |
|
|
| BFD_RELOC_64_PCREL,
|
| BFD_RELOC_32_PCREL,
|
| BFD_RELOC_24_PCREL,
|
| BFD_RELOC_16_PCREL,
|
| BFD_RELOC_12_PCREL,
|
| BFD_RELOC_8_PCREL,
|
|
|
|
|
| BFD_RELOC_32_SECREL,
|
|
|
|
|
| BFD_RELOC_32_GOT_PCREL,
|
| BFD_RELOC_16_GOT_PCREL,
|
| BFD_RELOC_8_GOT_PCREL,
|
| BFD_RELOC_32_GOTOFF,
|
| BFD_RELOC_16_GOTOFF,
|
| BFD_RELOC_LO16_GOTOFF,
|
| BFD_RELOC_HI16_GOTOFF,
|
| BFD_RELOC_HI16_S_GOTOFF,
|
| BFD_RELOC_8_GOTOFF,
|
| BFD_RELOC_64_PLT_PCREL,
|
| BFD_RELOC_32_PLT_PCREL,
|
| BFD_RELOC_24_PLT_PCREL,
|
| BFD_RELOC_16_PLT_PCREL,
|
| BFD_RELOC_8_PLT_PCREL,
|
| BFD_RELOC_64_PLTOFF,
|
| BFD_RELOC_32_PLTOFF,
|
| BFD_RELOC_16_PLTOFF,
|
| BFD_RELOC_LO16_PLTOFF,
|
| BFD_RELOC_HI16_PLTOFF,
|
| BFD_RELOC_HI16_S_PLTOFF,
|
| BFD_RELOC_8_PLTOFF,
|
|
|
|
|
| BFD_RELOC_68K_GLOB_DAT,
|
| BFD_RELOC_68K_JMP_SLOT,
|
| BFD_RELOC_68K_RELATIVE,
|
|
|
|
|
| BFD_RELOC_32_BASEREL,
|
| BFD_RELOC_16_BASEREL,
|
| BFD_RELOC_LO16_BASEREL,
|
| BFD_RELOC_HI16_BASEREL,
|
| BFD_RELOC_HI16_S_BASEREL,
|
| BFD_RELOC_8_BASEREL,
|
| BFD_RELOC_RVA,
|
|
|
|
|
| BFD_RELOC_8_FFnn,
|
|
|
| |
| |
| |
| |
| |
|
|
| BFD_RELOC_32_PCREL_S2,
|
| BFD_RELOC_16_PCREL_S2,
|
| BFD_RELOC_23_PCREL_S2,
|
|
|
| |
|
|
| BFD_RELOC_HI22,
|
| BFD_RELOC_LO10,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_GPREL16,
|
| BFD_RELOC_GPREL32,
|
|
|
|
|
| BFD_RELOC_I960_CALLJ,
|
|
|
| |
|
|
| BFD_RELOC_NONE,
|
| BFD_RELOC_SPARC_WDISP22,
|
| BFD_RELOC_SPARC22,
|
| BFD_RELOC_SPARC13,
|
| BFD_RELOC_SPARC_GOT10,
|
| BFD_RELOC_SPARC_GOT13,
|
| BFD_RELOC_SPARC_GOT22,
|
| BFD_RELOC_SPARC_PC10,
|
| BFD_RELOC_SPARC_PC22,
|
| BFD_RELOC_SPARC_WPLT30,
|
| BFD_RELOC_SPARC_COPY,
|
| BFD_RELOC_SPARC_GLOB_DAT,
|
| BFD_RELOC_SPARC_JMP_SLOT,
|
| BFD_RELOC_SPARC_RELATIVE,
|
| BFD_RELOC_SPARC_UA16,
|
| BFD_RELOC_SPARC_UA32,
|
| BFD_RELOC_SPARC_UA64,
|
| BFD_RELOC_SPARC_GOTDATA_HIX22,
|
| BFD_RELOC_SPARC_GOTDATA_LOX10,
|
| BFD_RELOC_SPARC_GOTDATA_OP_HIX22,
|
| BFD_RELOC_SPARC_GOTDATA_OP_LOX10,
|
| BFD_RELOC_SPARC_GOTDATA_OP,
|
|
|
|
|
| BFD_RELOC_SPARC_BASE13,
|
| BFD_RELOC_SPARC_BASE22,
|
|
|
|
|
| #define BFD_RELOC_SPARC_64 BFD_RELOC_64
|
| BFD_RELOC_SPARC_10,
|
| BFD_RELOC_SPARC_11,
|
| BFD_RELOC_SPARC_OLO10,
|
| BFD_RELOC_SPARC_HH22,
|
| BFD_RELOC_SPARC_HM10,
|
| BFD_RELOC_SPARC_LM22,
|
| BFD_RELOC_SPARC_PC_HH22,
|
| BFD_RELOC_SPARC_PC_HM10,
|
| BFD_RELOC_SPARC_PC_LM22,
|
| BFD_RELOC_SPARC_WDISP16,
|
| BFD_RELOC_SPARC_WDISP19,
|
| BFD_RELOC_SPARC_7,
|
| BFD_RELOC_SPARC_6,
|
| BFD_RELOC_SPARC_5,
|
| #define BFD_RELOC_SPARC_DISP64 BFD_RELOC_64_PCREL
|
| BFD_RELOC_SPARC_PLT32,
|
| BFD_RELOC_SPARC_PLT64,
|
| BFD_RELOC_SPARC_HIX22,
|
| BFD_RELOC_SPARC_LOX10,
|
| BFD_RELOC_SPARC_H44,
|
| BFD_RELOC_SPARC_M44,
|
| BFD_RELOC_SPARC_L44,
|
| BFD_RELOC_SPARC_REGISTER,
|
|
|
|
|
| BFD_RELOC_SPARC_REV32,
|
|
|
|
|
| BFD_RELOC_SPARC_TLS_GD_HI22,
|
| BFD_RELOC_SPARC_TLS_GD_LO10,
|
| BFD_RELOC_SPARC_TLS_GD_ADD,
|
| BFD_RELOC_SPARC_TLS_GD_CALL,
|
| BFD_RELOC_SPARC_TLS_LDM_HI22,
|
| BFD_RELOC_SPARC_TLS_LDM_LO10,
|
| BFD_RELOC_SPARC_TLS_LDM_ADD,
|
| BFD_RELOC_SPARC_TLS_LDM_CALL,
|
| BFD_RELOC_SPARC_TLS_LDO_HIX22,
|
| BFD_RELOC_SPARC_TLS_LDO_LOX10,
|
| BFD_RELOC_SPARC_TLS_LDO_ADD,
|
| BFD_RELOC_SPARC_TLS_IE_HI22,
|
| BFD_RELOC_SPARC_TLS_IE_LO10,
|
| BFD_RELOC_SPARC_TLS_IE_LD,
|
| BFD_RELOC_SPARC_TLS_IE_LDX,
|
| BFD_RELOC_SPARC_TLS_IE_ADD,
|
| BFD_RELOC_SPARC_TLS_LE_HIX22,
|
| BFD_RELOC_SPARC_TLS_LE_LOX10,
|
| BFD_RELOC_SPARC_TLS_DTPMOD32,
|
| BFD_RELOC_SPARC_TLS_DTPMOD64,
|
| BFD_RELOC_SPARC_TLS_DTPOFF32,
|
| BFD_RELOC_SPARC_TLS_DTPOFF64,
|
| BFD_RELOC_SPARC_TLS_TPOFF32,
|
| BFD_RELOC_SPARC_TLS_TPOFF64,
|
|
|
|
|
| BFD_RELOC_SPU_IMM7,
|
| BFD_RELOC_SPU_IMM8,
|
| BFD_RELOC_SPU_IMM10,
|
| BFD_RELOC_SPU_IMM10W,
|
| BFD_RELOC_SPU_IMM16,
|
| BFD_RELOC_SPU_IMM16W,
|
| BFD_RELOC_SPU_IMM18,
|
| BFD_RELOC_SPU_PCREL9a,
|
| BFD_RELOC_SPU_PCREL9b,
|
| BFD_RELOC_SPU_PCREL16,
|
| BFD_RELOC_SPU_LO16,
|
| BFD_RELOC_SPU_HI16,
|
| BFD_RELOC_SPU_PPU32,
|
| BFD_RELOC_SPU_PPU64,
|
|
|
| |
| |
| |
| |
| |
|
|
| BFD_RELOC_ALPHA_GPDISP_HI16,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_ALPHA_GPDISP_LO16,
|
|
|
| |
| |
|
|
| BFD_RELOC_ALPHA_GPDISP,
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| BFD_RELOC_ALPHA_LITERAL,
|
| BFD_RELOC_ALPHA_ELF_LITERAL,
|
| BFD_RELOC_ALPHA_LITUSE,
|
|
|
| |
| |
|
|
| BFD_RELOC_ALPHA_HINT,
|
|
|
| |
|
|
| BFD_RELOC_ALPHA_LINKAGE,
|
|
|
| |
|
|
| BFD_RELOC_ALPHA_CODEADDR,
|
|
|
| |
|
|
| BFD_RELOC_ALPHA_GPREL_HI16,
|
| BFD_RELOC_ALPHA_GPREL_LO16,
|
|
|
| |
| |
|
|
| BFD_RELOC_ALPHA_BRSGP,
|
|
|
|
|
| BFD_RELOC_ALPHA_TLSGD,
|
| BFD_RELOC_ALPHA_TLSLDM,
|
| BFD_RELOC_ALPHA_DTPMOD64,
|
| BFD_RELOC_ALPHA_GOTDTPREL16,
|
| BFD_RELOC_ALPHA_DTPREL64,
|
| BFD_RELOC_ALPHA_DTPREL_HI16,
|
| BFD_RELOC_ALPHA_DTPREL_LO16,
|
| BFD_RELOC_ALPHA_DTPREL16,
|
| BFD_RELOC_ALPHA_GOTTPREL16,
|
| BFD_RELOC_ALPHA_TPREL64,
|
| BFD_RELOC_ALPHA_TPREL_HI16,
|
| BFD_RELOC_ALPHA_TPREL_LO16,
|
| BFD_RELOC_ALPHA_TPREL16,
|
|
|
| |
|
|
| BFD_RELOC_MIPS_JMP,
|
|
|
|
|
| BFD_RELOC_MIPS16_JMP,
|
|
|
|
|
| BFD_RELOC_MIPS16_GPREL,
|
|
|
|
|
| BFD_RELOC_HI16,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_HI16_S,
|
|
|
|
|
| BFD_RELOC_LO16,
|
|
|
|
|
| BFD_RELOC_HI16_PCREL,
|
|
|
|
|
| BFD_RELOC_HI16_S_PCREL,
|
|
|
|
|
| BFD_RELOC_LO16_PCREL,
|
|
|
| |
|
|
| BFD_RELOC_MIPS16_GOT16,
|
| BFD_RELOC_MIPS16_CALL16,
|
|
|
|
|
| BFD_RELOC_MIPS16_HI16,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_MIPS16_HI16_S,
|
|
|
|
|
| BFD_RELOC_MIPS16_LO16,
|
|
|
|
|
| BFD_RELOC_MIPS_LITERAL,
|
|
|
|
|
| BFD_RELOC_MIPS_GOT16,
|
| BFD_RELOC_MIPS_CALL16,
|
| BFD_RELOC_MIPS_GOT_HI16,
|
| BFD_RELOC_MIPS_GOT_LO16,
|
| BFD_RELOC_MIPS_CALL_HI16,
|
| BFD_RELOC_MIPS_CALL_LO16,
|
| BFD_RELOC_MIPS_SUB,
|
| BFD_RELOC_MIPS_GOT_PAGE,
|
| BFD_RELOC_MIPS_GOT_OFST,
|
| BFD_RELOC_MIPS_GOT_DISP,
|
| BFD_RELOC_MIPS_SHIFT5,
|
| BFD_RELOC_MIPS_SHIFT6,
|
| BFD_RELOC_MIPS_INSERT_A,
|
| BFD_RELOC_MIPS_INSERT_B,
|
| BFD_RELOC_MIPS_DELETE,
|
| BFD_RELOC_MIPS_HIGHEST,
|
| BFD_RELOC_MIPS_HIGHER,
|
| BFD_RELOC_MIPS_SCN_DISP,
|
| BFD_RELOC_MIPS_REL16,
|
| BFD_RELOC_MIPS_RELGOT,
|
| BFD_RELOC_MIPS_JALR,
|
| BFD_RELOC_MIPS_TLS_DTPMOD32,
|
| BFD_RELOC_MIPS_TLS_DTPREL32,
|
| BFD_RELOC_MIPS_TLS_DTPMOD64,
|
| BFD_RELOC_MIPS_TLS_DTPREL64,
|
| BFD_RELOC_MIPS_TLS_GD,
|
| BFD_RELOC_MIPS_TLS_LDM,
|
| BFD_RELOC_MIPS_TLS_DTPREL_HI16,
|
| BFD_RELOC_MIPS_TLS_DTPREL_LO16,
|
| BFD_RELOC_MIPS_TLS_GOTTPREL,
|
| BFD_RELOC_MIPS_TLS_TPREL32,
|
| BFD_RELOC_MIPS_TLS_TPREL64,
|
| BFD_RELOC_MIPS_TLS_TPREL_HI16,
|
| BFD_RELOC_MIPS_TLS_TPREL_LO16,
|
|
|
|
|
|
|
| BFD_RELOC_MIPS_COPY,
|
| BFD_RELOC_MIPS_JUMP_SLOT,
|
|
|
|
|
|
|
| BFD_RELOC_FRV_LABEL16,
|
| BFD_RELOC_FRV_LABEL24,
|
| BFD_RELOC_FRV_LO16,
|
| BFD_RELOC_FRV_HI16,
|
| BFD_RELOC_FRV_GPREL12,
|
| BFD_RELOC_FRV_GPRELU12,
|
| BFD_RELOC_FRV_GPREL32,
|
| BFD_RELOC_FRV_GPRELHI,
|
| BFD_RELOC_FRV_GPRELLO,
|
| BFD_RELOC_FRV_GOT12,
|
| BFD_RELOC_FRV_GOTHI,
|
| BFD_RELOC_FRV_GOTLO,
|
| BFD_RELOC_FRV_FUNCDESC,
|
| BFD_RELOC_FRV_FUNCDESC_GOT12,
|
| BFD_RELOC_FRV_FUNCDESC_GOTHI,
|
| BFD_RELOC_FRV_FUNCDESC_GOTLO,
|
| BFD_RELOC_FRV_FUNCDESC_VALUE,
|
| BFD_RELOC_FRV_FUNCDESC_GOTOFF12,
|
| BFD_RELOC_FRV_FUNCDESC_GOTOFFHI,
|
| BFD_RELOC_FRV_FUNCDESC_GOTOFFLO,
|
| BFD_RELOC_FRV_GOTOFF12,
|
| BFD_RELOC_FRV_GOTOFFHI,
|
| BFD_RELOC_FRV_GOTOFFLO,
|
| BFD_RELOC_FRV_GETTLSOFF,
|
| BFD_RELOC_FRV_TLSDESC_VALUE,
|
| BFD_RELOC_FRV_GOTTLSDESC12,
|
| BFD_RELOC_FRV_GOTTLSDESCHI,
|
| BFD_RELOC_FRV_GOTTLSDESCLO,
|
| BFD_RELOC_FRV_TLSMOFF12,
|
| BFD_RELOC_FRV_TLSMOFFHI,
|
| BFD_RELOC_FRV_TLSMOFFLO,
|
| BFD_RELOC_FRV_GOTTLSOFF12,
|
| BFD_RELOC_FRV_GOTTLSOFFHI,
|
| BFD_RELOC_FRV_GOTTLSOFFLO,
|
| BFD_RELOC_FRV_TLSOFF,
|
| BFD_RELOC_FRV_TLSDESC_RELAX,
|
| BFD_RELOC_FRV_GETTLSOFF_RELAX,
|
| BFD_RELOC_FRV_TLSOFF_RELAX,
|
| BFD_RELOC_FRV_TLSMOFF,
|
|
|
|
|
|
|
| BFD_RELOC_MN10300_GOTOFF24,
|
|
|
| |
|
|
| BFD_RELOC_MN10300_GOT32,
|
|
|
| |
|
|
| BFD_RELOC_MN10300_GOT24,
|
|
|
| |
|
|
| BFD_RELOC_MN10300_GOT16,
|
|
|
|
|
| BFD_RELOC_MN10300_COPY,
|
|
|
|
|
| BFD_RELOC_MN10300_GLOB_DAT,
|
|
|
|
|
| BFD_RELOC_MN10300_JMP_SLOT,
|
|
|
|
|
| BFD_RELOC_MN10300_RELATIVE,
|
|
|
| |
| |
|
|
| BFD_RELOC_MN10300_SYM_DIFF,
|
|
|
| |
| |
|
|
| BFD_RELOC_MN10300_ALIGN,
|
|
|
|
|
|
|
| BFD_RELOC_386_GOT32,
|
| BFD_RELOC_386_PLT32,
|
| BFD_RELOC_386_COPY,
|
| BFD_RELOC_386_GLOB_DAT,
|
| BFD_RELOC_386_JUMP_SLOT,
|
| BFD_RELOC_386_RELATIVE,
|
| BFD_RELOC_386_GOTOFF,
|
| BFD_RELOC_386_GOTPC,
|
| BFD_RELOC_386_TLS_TPOFF,
|
| BFD_RELOC_386_TLS_IE,
|
| BFD_RELOC_386_TLS_GOTIE,
|
| BFD_RELOC_386_TLS_LE,
|
| BFD_RELOC_386_TLS_GD,
|
| BFD_RELOC_386_TLS_LDM,
|
| BFD_RELOC_386_TLS_LDO_32,
|
| BFD_RELOC_386_TLS_IE_32,
|
| BFD_RELOC_386_TLS_LE_32,
|
| BFD_RELOC_386_TLS_DTPMOD32,
|
| BFD_RELOC_386_TLS_DTPOFF32,
|
| BFD_RELOC_386_TLS_TPOFF32,
|
| BFD_RELOC_386_TLS_GOTDESC,
|
| BFD_RELOC_386_TLS_DESC_CALL,
|
| BFD_RELOC_386_TLS_DESC,
|
|
|
|
|
| BFD_RELOC_X86_64_GOT32,
|
| BFD_RELOC_X86_64_PLT32,
|
| BFD_RELOC_X86_64_COPY,
|
| BFD_RELOC_X86_64_GLOB_DAT,
|
| BFD_RELOC_X86_64_JUMP_SLOT,
|
| BFD_RELOC_X86_64_RELATIVE,
|
| BFD_RELOC_X86_64_GOTPCREL,
|
| BFD_RELOC_X86_64_32S,
|
| BFD_RELOC_X86_64_DTPMOD64,
|
| BFD_RELOC_X86_64_DTPOFF64,
|
| BFD_RELOC_X86_64_TPOFF64,
|
| BFD_RELOC_X86_64_TLSGD,
|
| BFD_RELOC_X86_64_TLSLD,
|
| BFD_RELOC_X86_64_DTPOFF32,
|
| BFD_RELOC_X86_64_GOTTPOFF,
|
| BFD_RELOC_X86_64_TPOFF32,
|
| BFD_RELOC_X86_64_GOTOFF64,
|
| BFD_RELOC_X86_64_GOTPC32,
|
| BFD_RELOC_X86_64_GOT64,
|
| BFD_RELOC_X86_64_GOTPCREL64,
|
| BFD_RELOC_X86_64_GOTPC64,
|
| BFD_RELOC_X86_64_GOTPLT64,
|
| BFD_RELOC_X86_64_PLTOFF64,
|
| BFD_RELOC_X86_64_GOTPC32_TLSDESC,
|
| BFD_RELOC_X86_64_TLSDESC_CALL,
|
| BFD_RELOC_X86_64_TLSDESC,
|
|
|
|
|
| BFD_RELOC_NS32K_IMM_8,
|
| BFD_RELOC_NS32K_IMM_16,
|
| BFD_RELOC_NS32K_IMM_32,
|
| BFD_RELOC_NS32K_IMM_8_PCREL,
|
| BFD_RELOC_NS32K_IMM_16_PCREL,
|
| BFD_RELOC_NS32K_IMM_32_PCREL,
|
| BFD_RELOC_NS32K_DISP_8,
|
| BFD_RELOC_NS32K_DISP_16,
|
| BFD_RELOC_NS32K_DISP_32,
|
| BFD_RELOC_NS32K_DISP_8_PCREL,
|
| BFD_RELOC_NS32K_DISP_16_PCREL,
|
| BFD_RELOC_NS32K_DISP_32_PCREL,
|
|
|
|
|
| BFD_RELOC_PDP11_DISP_8_PCREL,
|
| BFD_RELOC_PDP11_DISP_6_PCREL,
|
|
|
|
|
| BFD_RELOC_PJ_CODE_HI16,
|
| BFD_RELOC_PJ_CODE_LO16,
|
| BFD_RELOC_PJ_CODE_DIR16,
|
| BFD_RELOC_PJ_CODE_DIR32,
|
| BFD_RELOC_PJ_CODE_REL16,
|
| BFD_RELOC_PJ_CODE_REL32,
|
|
|
|
|
| BFD_RELOC_PPC_B26,
|
| BFD_RELOC_PPC_BA26,
|
| BFD_RELOC_PPC_TOC16,
|
| BFD_RELOC_PPC_B16,
|
| BFD_RELOC_PPC_B16_BRTAKEN,
|
| BFD_RELOC_PPC_B16_BRNTAKEN,
|
| BFD_RELOC_PPC_BA16,
|
| BFD_RELOC_PPC_BA16_BRTAKEN,
|
| BFD_RELOC_PPC_BA16_BRNTAKEN,
|
| BFD_RELOC_PPC_COPY,
|
| BFD_RELOC_PPC_GLOB_DAT,
|
| BFD_RELOC_PPC_JMP_SLOT,
|
| BFD_RELOC_PPC_RELATIVE,
|
| BFD_RELOC_PPC_LOCAL24PC,
|
| BFD_RELOC_PPC_EMB_NADDR32,
|
| BFD_RELOC_PPC_EMB_NADDR16,
|
| BFD_RELOC_PPC_EMB_NADDR16_LO,
|
| BFD_RELOC_PPC_EMB_NADDR16_HI,
|
| BFD_RELOC_PPC_EMB_NADDR16_HA,
|
| BFD_RELOC_PPC_EMB_SDAI16,
|
| BFD_RELOC_PPC_EMB_SDA2I16,
|
| BFD_RELOC_PPC_EMB_SDA2REL,
|
| BFD_RELOC_PPC_EMB_SDA21,
|
| BFD_RELOC_PPC_EMB_MRKREF,
|
| BFD_RELOC_PPC_EMB_RELSEC16,
|
| BFD_RELOC_PPC_EMB_RELST_LO,
|
| BFD_RELOC_PPC_EMB_RELST_HI,
|
| BFD_RELOC_PPC_EMB_RELST_HA,
|
| BFD_RELOC_PPC_EMB_BIT_FLD,
|
| BFD_RELOC_PPC_EMB_RELSDA,
|
| BFD_RELOC_PPC64_HIGHER,
|
| BFD_RELOC_PPC64_HIGHER_S,
|
| BFD_RELOC_PPC64_HIGHEST,
|
| BFD_RELOC_PPC64_HIGHEST_S,
|
| BFD_RELOC_PPC64_TOC16_LO,
|
| BFD_RELOC_PPC64_TOC16_HI,
|
| BFD_RELOC_PPC64_TOC16_HA,
|
| BFD_RELOC_PPC64_TOC,
|
| BFD_RELOC_PPC64_PLTGOT16,
|
| BFD_RELOC_PPC64_PLTGOT16_LO,
|
| BFD_RELOC_PPC64_PLTGOT16_HI,
|
| BFD_RELOC_PPC64_PLTGOT16_HA,
|
| BFD_RELOC_PPC64_ADDR16_DS,
|
| BFD_RELOC_PPC64_ADDR16_LO_DS,
|
| BFD_RELOC_PPC64_GOT16_DS,
|
| BFD_RELOC_PPC64_GOT16_LO_DS,
|
| BFD_RELOC_PPC64_PLT16_LO_DS,
|
| BFD_RELOC_PPC64_SECTOFF_DS,
|
| BFD_RELOC_PPC64_SECTOFF_LO_DS,
|
| BFD_RELOC_PPC64_TOC16_DS,
|
| BFD_RELOC_PPC64_TOC16_LO_DS,
|
| BFD_RELOC_PPC64_PLTGOT16_DS,
|
| BFD_RELOC_PPC64_PLTGOT16_LO_DS,
|
|
|
|
|
| BFD_RELOC_PPC_TLS,
|
| BFD_RELOC_PPC_DTPMOD,
|
| BFD_RELOC_PPC_TPREL16,
|
| BFD_RELOC_PPC_TPREL16_LO,
|
| BFD_RELOC_PPC_TPREL16_HI,
|
| BFD_RELOC_PPC_TPREL16_HA,
|
| BFD_RELOC_PPC_TPREL,
|
| BFD_RELOC_PPC_DTPREL16,
|
| BFD_RELOC_PPC_DTPREL16_LO,
|
| BFD_RELOC_PPC_DTPREL16_HI,
|
| BFD_RELOC_PPC_DTPREL16_HA,
|
| BFD_RELOC_PPC_DTPREL,
|
| BFD_RELOC_PPC_GOT_TLSGD16,
|
| BFD_RELOC_PPC_GOT_TLSGD16_LO,
|
| BFD_RELOC_PPC_GOT_TLSGD16_HI,
|
| BFD_RELOC_PPC_GOT_TLSGD16_HA,
|
| BFD_RELOC_PPC_GOT_TLSLD16,
|
| BFD_RELOC_PPC_GOT_TLSLD16_LO,
|
| BFD_RELOC_PPC_GOT_TLSLD16_HI,
|
| BFD_RELOC_PPC_GOT_TLSLD16_HA,
|
| BFD_RELOC_PPC_GOT_TPREL16,
|
| BFD_RELOC_PPC_GOT_TPREL16_LO,
|
| BFD_RELOC_PPC_GOT_TPREL16_HI,
|
| BFD_RELOC_PPC_GOT_TPREL16_HA,
|
| BFD_RELOC_PPC_GOT_DTPREL16,
|
| BFD_RELOC_PPC_GOT_DTPREL16_LO,
|
| BFD_RELOC_PPC_GOT_DTPREL16_HI,
|
| BFD_RELOC_PPC_GOT_DTPREL16_HA,
|
| BFD_RELOC_PPC64_TPREL16_DS,
|
| BFD_RELOC_PPC64_TPREL16_LO_DS,
|
| BFD_RELOC_PPC64_TPREL16_HIGHER,
|
| BFD_RELOC_PPC64_TPREL16_HIGHERA,
|
| BFD_RELOC_PPC64_TPREL16_HIGHEST,
|
| BFD_RELOC_PPC64_TPREL16_HIGHESTA,
|
| BFD_RELOC_PPC64_DTPREL16_DS,
|
| BFD_RELOC_PPC64_DTPREL16_LO_DS,
|
| BFD_RELOC_PPC64_DTPREL16_HIGHER,
|
| BFD_RELOC_PPC64_DTPREL16_HIGHERA,
|
| BFD_RELOC_PPC64_DTPREL16_HIGHEST,
|
| BFD_RELOC_PPC64_DTPREL16_HIGHESTA,
|
|
|
|
|
| BFD_RELOC_I370_D12,
|
|
|
| |
| |
|
|
| BFD_RELOC_CTOR,
|
|
|
| |
|
|
| BFD_RELOC_ARM_PCREL_BRANCH,
|
|
|
| |
| |
|
|
| BFD_RELOC_ARM_PCREL_BLX,
|
|
|
| |
| |
|
|
| BFD_RELOC_THUMB_PCREL_BLX,
|
|
|
|
|
| BFD_RELOC_ARM_PCREL_CALL,
|
|
|
|
|
| BFD_RELOC_ARM_PCREL_JUMP,
|
|
|
| |
| |
| |
| |
|
|
| BFD_RELOC_THUMB_PCREL_BRANCH7,
|
| BFD_RELOC_THUMB_PCREL_BRANCH9,
|
| BFD_RELOC_THUMB_PCREL_BRANCH12,
|
| BFD_RELOC_THUMB_PCREL_BRANCH20,
|
| BFD_RELOC_THUMB_PCREL_BRANCH23,
|
| BFD_RELOC_THUMB_PCREL_BRANCH25,
|
|
|
|
|
| BFD_RELOC_ARM_OFFSET_IMM,
|
|
|
|
|
| BFD_RELOC_ARM_THUMB_OFFSET,
|
|
|
| |
|
|
| BFD_RELOC_ARM_TARGET1,
|
|
|
|
|
| BFD_RELOC_ARM_ROSEGREL32,
|
|
|
|
|
| BFD_RELOC_ARM_SBREL32,
|
|
|
| |
| |
|
|
| BFD_RELOC_ARM_TARGET2,
|
|
|
|
|
| BFD_RELOC_ARM_PREL31,
|
|
|
|
|
| BFD_RELOC_ARM_MOVW,
|
| BFD_RELOC_ARM_MOVT,
|
| BFD_RELOC_ARM_MOVW_PCREL,
|
| BFD_RELOC_ARM_MOVT_PCREL,
|
| BFD_RELOC_ARM_THUMB_MOVW,
|
| BFD_RELOC_ARM_THUMB_MOVT,
|
| BFD_RELOC_ARM_THUMB_MOVW_PCREL,
|
| BFD_RELOC_ARM_THUMB_MOVT_PCREL,
|
|
|
|
|
| BFD_RELOC_ARM_JUMP_SLOT,
|
| BFD_RELOC_ARM_GLOB_DAT,
|
| BFD_RELOC_ARM_GOT32,
|
| BFD_RELOC_ARM_PLT32,
|
| BFD_RELOC_ARM_RELATIVE,
|
| BFD_RELOC_ARM_GOTOFF,
|
| BFD_RELOC_ARM_GOTPC,
|
|
|
|
|
| BFD_RELOC_ARM_TLS_GD32,
|
| BFD_RELOC_ARM_TLS_LDO32,
|
| BFD_RELOC_ARM_TLS_LDM32,
|
| BFD_RELOC_ARM_TLS_DTPOFF32,
|
| BFD_RELOC_ARM_TLS_DTPMOD32,
|
| BFD_RELOC_ARM_TLS_TPOFF32,
|
| BFD_RELOC_ARM_TLS_IE32,
|
| BFD_RELOC_ARM_TLS_LE32,
|
|
|
|
|
| BFD_RELOC_ARM_ALU_PC_G0_NC,
|
| BFD_RELOC_ARM_ALU_PC_G0,
|
| BFD_RELOC_ARM_ALU_PC_G1_NC,
|
| BFD_RELOC_ARM_ALU_PC_G1,
|
| BFD_RELOC_ARM_ALU_PC_G2,
|
| BFD_RELOC_ARM_LDR_PC_G0,
|
| BFD_RELOC_ARM_LDR_PC_G1,
|
| BFD_RELOC_ARM_LDR_PC_G2,
|
| BFD_RELOC_ARM_LDRS_PC_G0,
|
| BFD_RELOC_ARM_LDRS_PC_G1,
|
| BFD_RELOC_ARM_LDRS_PC_G2,
|
| BFD_RELOC_ARM_LDC_PC_G0,
|
| BFD_RELOC_ARM_LDC_PC_G1,
|
| BFD_RELOC_ARM_LDC_PC_G2,
|
| BFD_RELOC_ARM_ALU_SB_G0_NC,
|
| BFD_RELOC_ARM_ALU_SB_G0,
|
| BFD_RELOC_ARM_ALU_SB_G1_NC,
|
| BFD_RELOC_ARM_ALU_SB_G1,
|
| BFD_RELOC_ARM_ALU_SB_G2,
|
| BFD_RELOC_ARM_LDR_SB_G0,
|
| BFD_RELOC_ARM_LDR_SB_G1,
|
| BFD_RELOC_ARM_LDR_SB_G2,
|
| BFD_RELOC_ARM_LDRS_SB_G0,
|
| BFD_RELOC_ARM_LDRS_SB_G1,
|
| BFD_RELOC_ARM_LDRS_SB_G2,
|
| BFD_RELOC_ARM_LDC_SB_G0,
|
| BFD_RELOC_ARM_LDC_SB_G1,
|
| BFD_RELOC_ARM_LDC_SB_G2,
|
|
|
|
|
| BFD_RELOC_ARM_V4BX,
|
|
|
| |
|
|
| BFD_RELOC_ARM_IMMEDIATE,
|
| BFD_RELOC_ARM_ADRL_IMMEDIATE,
|
| BFD_RELOC_ARM_T32_IMMEDIATE,
|
| BFD_RELOC_ARM_T32_ADD_IMM,
|
| BFD_RELOC_ARM_T32_IMM12,
|
| BFD_RELOC_ARM_T32_ADD_PC12,
|
| BFD_RELOC_ARM_SHIFT_IMM,
|
| BFD_RELOC_ARM_SMC,
|
| BFD_RELOC_ARM_SWI,
|
| BFD_RELOC_ARM_MULTI,
|
| BFD_RELOC_ARM_CP_OFF_IMM,
|
| BFD_RELOC_ARM_CP_OFF_IMM_S2,
|
| BFD_RELOC_ARM_T32_CP_OFF_IMM,
|
| BFD_RELOC_ARM_T32_CP_OFF_IMM_S2,
|
| BFD_RELOC_ARM_ADR_IMM,
|
| BFD_RELOC_ARM_LDR_IMM,
|
| BFD_RELOC_ARM_LITERAL,
|
| BFD_RELOC_ARM_IN_POOL,
|
| BFD_RELOC_ARM_OFFSET_IMM8,
|
| BFD_RELOC_ARM_T32_OFFSET_U8,
|
| BFD_RELOC_ARM_T32_OFFSET_IMM,
|
| BFD_RELOC_ARM_HWLITERAL,
|
| BFD_RELOC_ARM_THUMB_ADD,
|
| BFD_RELOC_ARM_THUMB_IMM,
|
| BFD_RELOC_ARM_THUMB_SHIFT,
|
|
|
|
|
| BFD_RELOC_SH_PCDISP8BY2,
|
| BFD_RELOC_SH_PCDISP12BY2,
|
| BFD_RELOC_SH_IMM3,
|
| BFD_RELOC_SH_IMM3U,
|
| BFD_RELOC_SH_DISP12,
|
| BFD_RELOC_SH_DISP12BY2,
|
| BFD_RELOC_SH_DISP12BY4,
|
| BFD_RELOC_SH_DISP12BY8,
|
| BFD_RELOC_SH_DISP20,
|
| BFD_RELOC_SH_DISP20BY8,
|
| BFD_RELOC_SH_IMM4,
|
| BFD_RELOC_SH_IMM4BY2,
|
| BFD_RELOC_SH_IMM4BY4,
|
| BFD_RELOC_SH_IMM8,
|
| BFD_RELOC_SH_IMM8BY2,
|
| BFD_RELOC_SH_IMM8BY4,
|
| BFD_RELOC_SH_PCRELIMM8BY2,
|
| BFD_RELOC_SH_PCRELIMM8BY4,
|
| BFD_RELOC_SH_SWITCH16,
|
| BFD_RELOC_SH_SWITCH32,
|
| BFD_RELOC_SH_USES,
|
| BFD_RELOC_SH_COUNT,
|
| BFD_RELOC_SH_ALIGN,
|
| BFD_RELOC_SH_CODE,
|
| BFD_RELOC_SH_DATA,
|
| BFD_RELOC_SH_LABEL,
|
| BFD_RELOC_SH_LOOP_START,
|
| BFD_RELOC_SH_LOOP_END,
|
| BFD_RELOC_SH_COPY,
|
| BFD_RELOC_SH_GLOB_DAT,
|
| BFD_RELOC_SH_JMP_SLOT,
|
| BFD_RELOC_SH_RELATIVE,
|
| BFD_RELOC_SH_GOTPC,
|
| BFD_RELOC_SH_GOT_LOW16,
|
| BFD_RELOC_SH_GOT_MEDLOW16,
|
| BFD_RELOC_SH_GOT_MEDHI16,
|
| BFD_RELOC_SH_GOT_HI16,
|
| BFD_RELOC_SH_GOTPLT_LOW16,
|
| BFD_RELOC_SH_GOTPLT_MEDLOW16,
|
| BFD_RELOC_SH_GOTPLT_MEDHI16,
|
| BFD_RELOC_SH_GOTPLT_HI16,
|
| BFD_RELOC_SH_PLT_LOW16,
|
| BFD_RELOC_SH_PLT_MEDLOW16,
|
| BFD_RELOC_SH_PLT_MEDHI16,
|
| BFD_RELOC_SH_PLT_HI16,
|
| BFD_RELOC_SH_GOTOFF_LOW16,
|
| BFD_RELOC_SH_GOTOFF_MEDLOW16,
|
| BFD_RELOC_SH_GOTOFF_MEDHI16,
|
| BFD_RELOC_SH_GOTOFF_HI16,
|
| BFD_RELOC_SH_GOTPC_LOW16,
|
| BFD_RELOC_SH_GOTPC_MEDLOW16,
|
| BFD_RELOC_SH_GOTPC_MEDHI16,
|
| BFD_RELOC_SH_GOTPC_HI16,
|
| BFD_RELOC_SH_COPY64,
|
| BFD_RELOC_SH_GLOB_DAT64,
|
| BFD_RELOC_SH_JMP_SLOT64,
|
| BFD_RELOC_SH_RELATIVE64,
|
| BFD_RELOC_SH_GOT10BY4,
|
| BFD_RELOC_SH_GOT10BY8,
|
| BFD_RELOC_SH_GOTPLT10BY4,
|
| BFD_RELOC_SH_GOTPLT10BY8,
|
| BFD_RELOC_SH_GOTPLT32,
|
| BFD_RELOC_SH_SHMEDIA_CODE,
|
| BFD_RELOC_SH_IMMU5,
|
| BFD_RELOC_SH_IMMS6,
|
| BFD_RELOC_SH_IMMS6BY32,
|
| BFD_RELOC_SH_IMMU6,
|
| BFD_RELOC_SH_IMMS10,
|
| BFD_RELOC_SH_IMMS10BY2,
|
| BFD_RELOC_SH_IMMS10BY4,
|
| BFD_RELOC_SH_IMMS10BY8,
|
| BFD_RELOC_SH_IMMS16,
|
| BFD_RELOC_SH_IMMU16,
|
| BFD_RELOC_SH_IMM_LOW16,
|
| BFD_RELOC_SH_IMM_LOW16_PCREL,
|
| BFD_RELOC_SH_IMM_MEDLOW16,
|
| BFD_RELOC_SH_IMM_MEDLOW16_PCREL,
|
| BFD_RELOC_SH_IMM_MEDHI16,
|
| BFD_RELOC_SH_IMM_MEDHI16_PCREL,
|
| BFD_RELOC_SH_IMM_HI16,
|
| BFD_RELOC_SH_IMM_HI16_PCREL,
|
| BFD_RELOC_SH_PT_16,
|
| BFD_RELOC_SH_TLS_GD_32,
|
| BFD_RELOC_SH_TLS_LD_32,
|
| BFD_RELOC_SH_TLS_LDO_32,
|
| BFD_RELOC_SH_TLS_IE_32,
|
| BFD_RELOC_SH_TLS_LE_32,
|
| BFD_RELOC_SH_TLS_DTPMOD32,
|
| BFD_RELOC_SH_TLS_DTPOFF32,
|
| BFD_RELOC_SH_TLS_TPOFF32,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_ARC_B22_PCREL,
|
|
|
| |
| |
|
|
| BFD_RELOC_ARC_B26,
|
|
|
|
|
| BFD_RELOC_BFIN_16_IMM,
|
|
|
|
|
| BFD_RELOC_BFIN_16_HIGH,
|
|
|
|
|
| BFD_RELOC_BFIN_4_PCREL,
|
|
|
|
|
| BFD_RELOC_BFIN_5_PCREL,
|
|
|
|
|
| BFD_RELOC_BFIN_16_LOW,
|
|
|
|
|
| BFD_RELOC_BFIN_10_PCREL,
|
|
|
|
|
| BFD_RELOC_BFIN_11_PCREL,
|
|
|
|
|
| BFD_RELOC_BFIN_12_PCREL_JUMP,
|
|
|
|
|
| BFD_RELOC_BFIN_12_PCREL_JUMP_S,
|
|
|
|
|
| BFD_RELOC_BFIN_24_PCREL_CALL_X,
|
|
|
|
|
| BFD_RELOC_BFIN_24_PCREL_JUMP_L,
|
|
|
|
|
| BFD_RELOC_BFIN_GOT17M4,
|
| BFD_RELOC_BFIN_GOTHI,
|
| BFD_RELOC_BFIN_GOTLO,
|
| BFD_RELOC_BFIN_FUNCDESC,
|
| BFD_RELOC_BFIN_FUNCDESC_GOT17M4,
|
| BFD_RELOC_BFIN_FUNCDESC_GOTHI,
|
| BFD_RELOC_BFIN_FUNCDESC_GOTLO,
|
| BFD_RELOC_BFIN_FUNCDESC_VALUE,
|
| BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4,
|
| BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI,
|
| BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO,
|
| BFD_RELOC_BFIN_GOTOFF17M4,
|
| BFD_RELOC_BFIN_GOTOFFHI,
|
| BFD_RELOC_BFIN_GOTOFFLO,
|
|
|
|
|
| BFD_RELOC_BFIN_GOT,
|
|
|
|
|
| BFD_RELOC_BFIN_PLTPC,
|
|
|
|
|
| BFD_ARELOC_BFIN_PUSH,
|
|
|
|
|
| BFD_ARELOC_BFIN_CONST,
|
|
|
|
|
| BFD_ARELOC_BFIN_ADD,
|
|
|
|
|
| BFD_ARELOC_BFIN_SUB,
|
|
|
|
|
| BFD_ARELOC_BFIN_MULT,
|
|
|
|
|
| BFD_ARELOC_BFIN_DIV,
|
|
|
|
|
| BFD_ARELOC_BFIN_MOD,
|
|
|
|
|
| BFD_ARELOC_BFIN_LSHIFT,
|
|
|
|
|
| BFD_ARELOC_BFIN_RSHIFT,
|
|
|
|
|
| BFD_ARELOC_BFIN_AND,
|
|
|
|
|
| BFD_ARELOC_BFIN_OR,
|
|
|
|
|
| BFD_ARELOC_BFIN_XOR,
|
|
|
|
|
| BFD_ARELOC_BFIN_LAND,
|
|
|
|
|
| BFD_ARELOC_BFIN_LOR,
|
|
|
|
|
| BFD_ARELOC_BFIN_LEN,
|
|
|
|
|
| BFD_ARELOC_BFIN_NEG,
|
|
|
|
|
| BFD_ARELOC_BFIN_COMP,
|
|
|
|
|
| BFD_ARELOC_BFIN_PAGE,
|
|
|
|
|
| BFD_ARELOC_BFIN_HWPAGE,
|
|
|
|
|
| BFD_ARELOC_BFIN_ADDR,
|
|
|
| |
| |
|
|
| BFD_RELOC_D10V_10_PCREL_R,
|
|
|
| |
| |
| |
| |
|
|
| BFD_RELOC_D10V_10_PCREL_L,
|
|
|
| |
|
|
| BFD_RELOC_D10V_18,
|
|
|
| |
|
|
| BFD_RELOC_D10V_18_PCREL,
|
|
|
| |
|
|
| BFD_RELOC_D30V_6,
|
|
|
| |
|
|
| BFD_RELOC_D30V_9_PCREL,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_D30V_9_PCREL_R,
|
|
|
| |
|
|
| BFD_RELOC_D30V_15,
|
|
|
| |
|
|
| BFD_RELOC_D30V_15_PCREL,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_D30V_15_PCREL_R,
|
|
|
| |
|
|
| BFD_RELOC_D30V_21,
|
|
|
| |
|
|
| BFD_RELOC_D30V_21_PCREL,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_D30V_21_PCREL_R,
|
|
|
|
|
| BFD_RELOC_D30V_32,
|
|
|
|
|
| BFD_RELOC_D30V_32_PCREL,
|
|
|
|
|
| BFD_RELOC_DLX_HI16_S,
|
|
|
|
|
| BFD_RELOC_DLX_LO16,
|
|
|
|
|
| BFD_RELOC_DLX_JMP26,
|
|
|
|
|
| BFD_RELOC_M32C_HI8,
|
| BFD_RELOC_M32C_RL_JUMP,
|
| BFD_RELOC_M32C_RL_1ADDR,
|
| BFD_RELOC_M32C_RL_2ADDR,
|
|
|
| |
|
|
| BFD_RELOC_M32R_24,
|
|
|
|
|
| BFD_RELOC_M32R_10_PCREL,
|
|
|
|
|
| BFD_RELOC_M32R_18_PCREL,
|
|
|
|
|
| BFD_RELOC_M32R_26_PCREL,
|
|
|
| |
|
|
| BFD_RELOC_M32R_HI16_ULO,
|
|
|
| |
|
|
| BFD_RELOC_M32R_HI16_SLO,
|
|
|
|
|
| BFD_RELOC_M32R_LO16,
|
|
|
| |
|
|
| BFD_RELOC_M32R_SDA16,
|
|
|
|
|
| BFD_RELOC_M32R_GOT24,
|
| BFD_RELOC_M32R_26_PLTREL,
|
| BFD_RELOC_M32R_COPY,
|
| BFD_RELOC_M32R_GLOB_DAT,
|
| BFD_RELOC_M32R_JMP_SLOT,
|
| BFD_RELOC_M32R_RELATIVE,
|
| BFD_RELOC_M32R_GOTOFF,
|
| BFD_RELOC_M32R_GOTOFF_HI_ULO,
|
| BFD_RELOC_M32R_GOTOFF_HI_SLO,
|
| BFD_RELOC_M32R_GOTOFF_LO,
|
| BFD_RELOC_M32R_GOTPC24,
|
| BFD_RELOC_M32R_GOT16_HI_ULO,
|
| BFD_RELOC_M32R_GOT16_HI_SLO,
|
| BFD_RELOC_M32R_GOT16_LO,
|
| BFD_RELOC_M32R_GOTPC_HI_ULO,
|
| BFD_RELOC_M32R_GOTPC_HI_SLO,
|
| BFD_RELOC_M32R_GOTPC_LO,
|
|
|
|
|
| BFD_RELOC_V850_9_PCREL,
|
|
|
|
|
| BFD_RELOC_V850_22_PCREL,
|
|
|
|
|
| BFD_RELOC_V850_SDA_16_16_OFFSET,
|
|
|
| |
|
|
| BFD_RELOC_V850_SDA_15_16_OFFSET,
|
|
|
|
|
| BFD_RELOC_V850_ZDA_16_16_OFFSET,
|
|
|
| |
|
|
| BFD_RELOC_V850_ZDA_15_16_OFFSET,
|
|
|
| |
|
|
| BFD_RELOC_V850_TDA_6_8_OFFSET,
|
|
|
| |
|
|
| BFD_RELOC_V850_TDA_7_8_OFFSET,
|
|
|
|
|
| BFD_RELOC_V850_TDA_7_7_OFFSET,
|
|
|
|
|
| BFD_RELOC_V850_TDA_16_16_OFFSET,
|
|
|
| |
|
|
| BFD_RELOC_V850_TDA_4_5_OFFSET,
|
|
|
|
|
| BFD_RELOC_V850_TDA_4_4_OFFSET,
|
|
|
| |
|
|
| BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET,
|
|
|
| |
|
|
| BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET,
|
|
|
|
|
| BFD_RELOC_V850_CALLT_6_7_OFFSET,
|
|
|
|
|
| BFD_RELOC_V850_CALLT_16_16_OFFSET,
|
|
|
|
|
| BFD_RELOC_V850_LONGCALL,
|
|
|
|
|
| BFD_RELOC_V850_LONGJUMP,
|
|
|
|
|
| BFD_RELOC_V850_ALIGN,
|
|
|
| |
|
|
| BFD_RELOC_V850_LO16_SPLIT_OFFSET,
|
|
|
| |
|
|
| BFD_RELOC_MN10300_32_PCREL,
|
|
|
| |
|
|
| BFD_RELOC_MN10300_16_PCREL,
|
|
|
| |
| |
|
|
| BFD_RELOC_TIC30_LDP,
|
|
|
| |
| |
|
|
| BFD_RELOC_TIC54X_PARTLS7,
|
|
|
| |
| |
|
|
| BFD_RELOC_TIC54X_PARTMS9,
|
|
|
|
|
| BFD_RELOC_TIC54X_23,
|
|
|
| |
| |
|
|
| BFD_RELOC_TIC54X_16_OF_23,
|
|
|
| |
| |
|
|
| BFD_RELOC_TIC54X_MS7_OF_23,
|
|
|
|
|
| BFD_RELOC_FR30_48,
|
|
|
| |
|
|
| BFD_RELOC_FR30_20,
|
|
|
| |
|
|
| BFD_RELOC_FR30_6_IN_4,
|
|
|
| |
|
|
| BFD_RELOC_FR30_8_IN_8,
|
|
|
| |
|
|
| BFD_RELOC_FR30_9_IN_8,
|
|
|
| |
|
|
| BFD_RELOC_FR30_10_IN_8,
|
|
|
| |
|
|
| BFD_RELOC_FR30_9_PCREL,
|
|
|
| |
|
|
| BFD_RELOC_FR30_12_PCREL,
|
|
|
|
|
| BFD_RELOC_MCORE_PCREL_IMM8BY4,
|
| BFD_RELOC_MCORE_PCREL_IMM11BY2,
|
| BFD_RELOC_MCORE_PCREL_IMM4BY2,
|
| BFD_RELOC_MCORE_PCREL_32,
|
| BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2,
|
| BFD_RELOC_MCORE_RVA,
|
|
|
|
|
| BFD_RELOC_MEP_8,
|
| BFD_RELOC_MEP_16,
|
| BFD_RELOC_MEP_32,
|
| BFD_RELOC_MEP_PCREL8A2,
|
| BFD_RELOC_MEP_PCREL12A2,
|
| BFD_RELOC_MEP_PCREL17A2,
|
| BFD_RELOC_MEP_PCREL24A2,
|
| BFD_RELOC_MEP_PCABS24A2,
|
| BFD_RELOC_MEP_LOW16,
|
| BFD_RELOC_MEP_HI16U,
|
| BFD_RELOC_MEP_HI16S,
|
| BFD_RELOC_MEP_GPREL,
|
| BFD_RELOC_MEP_TPREL,
|
| BFD_RELOC_MEP_TPREL7,
|
| BFD_RELOC_MEP_TPREL7A2,
|
| BFD_RELOC_MEP_TPREL7A4,
|
| BFD_RELOC_MEP_UIMM24,
|
| BFD_RELOC_MEP_ADDR24A4,
|
| BFD_RELOC_MEP_GNU_VTINHERIT,
|
| BFD_RELOC_MEP_GNU_VTENTRY,
|
|
|
|
|
|
|
| BFD_RELOC_MMIX_GETA,
|
| BFD_RELOC_MMIX_GETA_1,
|
| BFD_RELOC_MMIX_GETA_2,
|
| BFD_RELOC_MMIX_GETA_3,
|
|
|
|
|
| BFD_RELOC_MMIX_CBRANCH,
|
| BFD_RELOC_MMIX_CBRANCH_J,
|
| BFD_RELOC_MMIX_CBRANCH_1,
|
| BFD_RELOC_MMIX_CBRANCH_2,
|
| BFD_RELOC_MMIX_CBRANCH_3,
|
|
|
|
|
| BFD_RELOC_MMIX_PUSHJ,
|
| BFD_RELOC_MMIX_PUSHJ_1,
|
| BFD_RELOC_MMIX_PUSHJ_2,
|
| BFD_RELOC_MMIX_PUSHJ_3,
|
| BFD_RELOC_MMIX_PUSHJ_STUBBABLE,
|
|
|
|
|
| BFD_RELOC_MMIX_JMP,
|
| BFD_RELOC_MMIX_JMP_1,
|
| BFD_RELOC_MMIX_JMP_2,
|
| BFD_RELOC_MMIX_JMP_3,
|
|
|
| |
|
|
| BFD_RELOC_MMIX_ADDR19,
|
|
|
|
|
| BFD_RELOC_MMIX_ADDR27,
|
|
|
| |
|
|
| BFD_RELOC_MMIX_REG_OR_BYTE,
|
|
|
| |
|
|
| BFD_RELOC_MMIX_REG,
|
|
|
| |
|
|
| BFD_RELOC_MMIX_BASE_PLUS_OFFSET,
|
|
|
| |
|
|
| BFD_RELOC_MMIX_LOCAL,
|
|
|
| |
|
|
| BFD_RELOC_AVR_7_PCREL,
|
|
|
| |
|
|
| BFD_RELOC_AVR_13_PCREL,
|
|
|
| |
|
|
| BFD_RELOC_AVR_16_PM,
|
|
|
| |
|
|
| BFD_RELOC_AVR_LO8_LDI,
|
|
|
| |
|
|
| BFD_RELOC_AVR_HI8_LDI,
|
|
|
| |
|
|
| BFD_RELOC_AVR_HH8_LDI,
|
|
|
| |
|
|
| BFD_RELOC_AVR_MS8_LDI,
|
|
|
| |
|
|
| BFD_RELOC_AVR_LO8_LDI_NEG,
|
|
|
| |
| |
|
|
| BFD_RELOC_AVR_HI8_LDI_NEG,
|
|
|
| |
| |
|
|
| BFD_RELOC_AVR_HH8_LDI_NEG,
|
|
|
| |
|
|
| BFD_RELOC_AVR_MS8_LDI_NEG,
|
|
|
| |
|
|
| BFD_RELOC_AVR_LO8_LDI_PM,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_AVR_LO8_LDI_GS,
|
|
|
| |
|
|
| BFD_RELOC_AVR_HI8_LDI_PM,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_AVR_HI8_LDI_GS,
|
|
|
| |
|
|
| BFD_RELOC_AVR_HH8_LDI_PM,
|
|
|
| |
|
|
| BFD_RELOC_AVR_LO8_LDI_PM_NEG,
|
|
|
| |
| |
|
|
| BFD_RELOC_AVR_HI8_LDI_PM_NEG,
|
|
|
| |
| |
|
|
| BFD_RELOC_AVR_HH8_LDI_PM_NEG,
|
|
|
| |
|
|
| BFD_RELOC_AVR_CALL,
|
|
|
| |
|
|
| BFD_RELOC_AVR_LDI,
|
|
|
| |
|
|
| BFD_RELOC_AVR_6,
|
|
|
| |
|
|
| BFD_RELOC_AVR_6_ADIW,
|
|
|
|
|
| BFD_RELOC_390_12,
|
|
|
|
|
| BFD_RELOC_390_GOT12,
|
|
|
|
|
| BFD_RELOC_390_PLT32,
|
|
|
|
|
| BFD_RELOC_390_COPY,
|
|
|
|
|
| BFD_RELOC_390_GLOB_DAT,
|
|
|
|
|
| BFD_RELOC_390_JMP_SLOT,
|
|
|
|
|
| BFD_RELOC_390_RELATIVE,
|
|
|
|
|
| BFD_RELOC_390_GOTPC,
|
|
|
|
|
| BFD_RELOC_390_GOT16,
|
|
|
|
|
| BFD_RELOC_390_PC16DBL,
|
|
|
|
|
| BFD_RELOC_390_PLT16DBL,
|
|
|
|
|
| BFD_RELOC_390_PC32DBL,
|
|
|
|
|
| BFD_RELOC_390_PLT32DBL,
|
|
|
|
|
| BFD_RELOC_390_GOTPCDBL,
|
|
|
|
|
| BFD_RELOC_390_GOT64,
|
|
|
|
|
| BFD_RELOC_390_PLT64,
|
|
|
|
|
| BFD_RELOC_390_GOTENT,
|
|
|
|
|
| BFD_RELOC_390_GOTOFF64,
|
|
|
|
|
| BFD_RELOC_390_GOTPLT12,
|
|
|
|
|
| BFD_RELOC_390_GOTPLT16,
|
|
|
|
|
| BFD_RELOC_390_GOTPLT32,
|
|
|
|
|
| BFD_RELOC_390_GOTPLT64,
|
|
|
|
|
| BFD_RELOC_390_GOTPLTENT,
|
|
|
|
|
| BFD_RELOC_390_PLTOFF16,
|
|
|
|
|
| BFD_RELOC_390_PLTOFF32,
|
|
|
|
|
| BFD_RELOC_390_PLTOFF64,
|
|
|
|
|
| BFD_RELOC_390_TLS_LOAD,
|
| BFD_RELOC_390_TLS_GDCALL,
|
| BFD_RELOC_390_TLS_LDCALL,
|
| BFD_RELOC_390_TLS_GD32,
|
| BFD_RELOC_390_TLS_GD64,
|
| BFD_RELOC_390_TLS_GOTIE12,
|
| BFD_RELOC_390_TLS_GOTIE32,
|
| BFD_RELOC_390_TLS_GOTIE64,
|
| BFD_RELOC_390_TLS_LDM32,
|
| BFD_RELOC_390_TLS_LDM64,
|
| BFD_RELOC_390_TLS_IE32,
|
| BFD_RELOC_390_TLS_IE64,
|
| BFD_RELOC_390_TLS_IEENT,
|
| BFD_RELOC_390_TLS_LE32,
|
| BFD_RELOC_390_TLS_LE64,
|
| BFD_RELOC_390_TLS_LDO32,
|
| BFD_RELOC_390_TLS_LDO64,
|
| BFD_RELOC_390_TLS_DTPMOD,
|
| BFD_RELOC_390_TLS_DTPOFF,
|
| BFD_RELOC_390_TLS_TPOFF,
|
|
|
|
|
| BFD_RELOC_390_20,
|
| BFD_RELOC_390_GOT20,
|
| BFD_RELOC_390_GOTPLT20,
|
| BFD_RELOC_390_TLS_GOTIE20,
|
|
|
|
|
| BFD_RELOC_SCORE_DUMMY1,
|
|
|
|
|
| BFD_RELOC_SCORE_GPREL15,
|
|
|
|
|
| BFD_RELOC_SCORE_DUMMY2,
|
| BFD_RELOC_SCORE_JMP,
|
|
|
|
|
| BFD_RELOC_SCORE_BRANCH,
|
|
|
|
|
| BFD_RELOC_SCORE16_JMP,
|
|
|
|
|
| BFD_RELOC_SCORE16_BRANCH,
|
|
|
|
|
| BFD_RELOC_SCORE_GOT15,
|
| BFD_RELOC_SCORE_GOT_LO16,
|
| BFD_RELOC_SCORE_CALL15,
|
| BFD_RELOC_SCORE_DUMMY_HI16,
|
|
|
|
|
| BFD_RELOC_IP2K_FR9,
|
|
|
|
|
| BFD_RELOC_IP2K_BANK,
|
|
|
|
|
| BFD_RELOC_IP2K_ADDR16CJP,
|
|
|
|
|
| BFD_RELOC_IP2K_PAGE3,
|
|
|
|
|
| BFD_RELOC_IP2K_LO8DATA,
|
| BFD_RELOC_IP2K_HI8DATA,
|
| BFD_RELOC_IP2K_EX8DATA,
|
|
|
|
|
| BFD_RELOC_IP2K_LO8INSN,
|
| BFD_RELOC_IP2K_HI8INSN,
|
|
|
|
|
| BFD_RELOC_IP2K_PC_SKIP,
|
|
|
|
|
| BFD_RELOC_IP2K_TEXT,
|
|
|
|
|
| BFD_RELOC_IP2K_FR_OFFSET,
|
|
|
|
|
| BFD_RELOC_VPE4KMATH_DATA,
|
| BFD_RELOC_VPE4KMATH_INSN,
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| BFD_RELOC_VTABLE_INHERIT,
|
| BFD_RELOC_VTABLE_ENTRY,
|
|
|
|
|
| BFD_RELOC_IA64_IMM14,
|
| BFD_RELOC_IA64_IMM22,
|
| BFD_RELOC_IA64_IMM64,
|
| BFD_RELOC_IA64_DIR32MSB,
|
| BFD_RELOC_IA64_DIR32LSB,
|
| BFD_RELOC_IA64_DIR64MSB,
|
| BFD_RELOC_IA64_DIR64LSB,
|
| BFD_RELOC_IA64_GPREL22,
|
| BFD_RELOC_IA64_GPREL64I,
|
| BFD_RELOC_IA64_GPREL32MSB,
|
| BFD_RELOC_IA64_GPREL32LSB,
|
| BFD_RELOC_IA64_GPREL64MSB,
|
| BFD_RELOC_IA64_GPREL64LSB,
|
| BFD_RELOC_IA64_LTOFF22,
|
| BFD_RELOC_IA64_LTOFF64I,
|
| BFD_RELOC_IA64_PLTOFF22,
|
| BFD_RELOC_IA64_PLTOFF64I,
|
| BFD_RELOC_IA64_PLTOFF64MSB,
|
| BFD_RELOC_IA64_PLTOFF64LSB,
|
| BFD_RELOC_IA64_FPTR64I,
|
| BFD_RELOC_IA64_FPTR32MSB,
|
| BFD_RELOC_IA64_FPTR32LSB,
|
| BFD_RELOC_IA64_FPTR64MSB,
|
| BFD_RELOC_IA64_FPTR64LSB,
|
| BFD_RELOC_IA64_PCREL21B,
|
| BFD_RELOC_IA64_PCREL21BI,
|
| BFD_RELOC_IA64_PCREL21M,
|
| BFD_RELOC_IA64_PCREL21F,
|
| BFD_RELOC_IA64_PCREL22,
|
| BFD_RELOC_IA64_PCREL60B,
|
| BFD_RELOC_IA64_PCREL64I,
|
| BFD_RELOC_IA64_PCREL32MSB,
|
| BFD_RELOC_IA64_PCREL32LSB,
|
| BFD_RELOC_IA64_PCREL64MSB,
|
| BFD_RELOC_IA64_PCREL64LSB,
|
| BFD_RELOC_IA64_LTOFF_FPTR22,
|
| BFD_RELOC_IA64_LTOFF_FPTR64I,
|
| BFD_RELOC_IA64_LTOFF_FPTR32MSB,
|
| BFD_RELOC_IA64_LTOFF_FPTR32LSB,
|
| BFD_RELOC_IA64_LTOFF_FPTR64MSB,
|
| BFD_RELOC_IA64_LTOFF_FPTR64LSB,
|
| BFD_RELOC_IA64_SEGREL32MSB,
|
| BFD_RELOC_IA64_SEGREL32LSB,
|
| BFD_RELOC_IA64_SEGREL64MSB,
|
| BFD_RELOC_IA64_SEGREL64LSB,
|
| BFD_RELOC_IA64_SECREL32MSB,
|
| BFD_RELOC_IA64_SECREL32LSB,
|
| BFD_RELOC_IA64_SECREL64MSB,
|
| BFD_RELOC_IA64_SECREL64LSB,
|
| BFD_RELOC_IA64_REL32MSB,
|
| BFD_RELOC_IA64_REL32LSB,
|
| BFD_RELOC_IA64_REL64MSB,
|
| BFD_RELOC_IA64_REL64LSB,
|
| BFD_RELOC_IA64_LTV32MSB,
|
| BFD_RELOC_IA64_LTV32LSB,
|
| BFD_RELOC_IA64_LTV64MSB,
|
| BFD_RELOC_IA64_LTV64LSB,
|
| BFD_RELOC_IA64_IPLTMSB,
|
| BFD_RELOC_IA64_IPLTLSB,
|
| BFD_RELOC_IA64_COPY,
|
| BFD_RELOC_IA64_LTOFF22X,
|
| BFD_RELOC_IA64_LDXMOV,
|
| BFD_RELOC_IA64_TPREL14,
|
| BFD_RELOC_IA64_TPREL22,
|
| BFD_RELOC_IA64_TPREL64I,
|
| BFD_RELOC_IA64_TPREL64MSB,
|
| BFD_RELOC_IA64_TPREL64LSB,
|
| BFD_RELOC_IA64_LTOFF_TPREL22,
|
| BFD_RELOC_IA64_DTPMOD64MSB,
|
| BFD_RELOC_IA64_DTPMOD64LSB,
|
| BFD_RELOC_IA64_LTOFF_DTPMOD22,
|
| BFD_RELOC_IA64_DTPREL14,
|
| BFD_RELOC_IA64_DTPREL22,
|
| BFD_RELOC_IA64_DTPREL64I,
|
| BFD_RELOC_IA64_DTPREL32MSB,
|
| BFD_RELOC_IA64_DTPREL32LSB,
|
| BFD_RELOC_IA64_DTPREL64MSB,
|
| BFD_RELOC_IA64_DTPREL64LSB,
|
| BFD_RELOC_IA64_LTOFF_DTPREL22,
|
|
|
| |
|
|
| BFD_RELOC_M68HC11_HI8,
|
|
|
| |
|
|
| BFD_RELOC_M68HC11_LO8,
|
|
|
| |
|
|
| BFD_RELOC_M68HC11_3B,
|
|
|
| |
| |
| |
| |
|
|
| BFD_RELOC_M68HC11_RL_JUMP,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_M68HC11_RL_GROUP,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_M68HC11_LO16,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_M68HC11_PAGE,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_M68HC11_24,
|
|
|
| |
|
|
| BFD_RELOC_M68HC12_5B,
|
|
|
|
|
| BFD_RELOC_16C_NUM08,
|
| BFD_RELOC_16C_NUM08_C,
|
| BFD_RELOC_16C_NUM16,
|
| BFD_RELOC_16C_NUM16_C,
|
| BFD_RELOC_16C_NUM32,
|
| BFD_RELOC_16C_NUM32_C,
|
| BFD_RELOC_16C_DISP04,
|
| BFD_RELOC_16C_DISP04_C,
|
| BFD_RELOC_16C_DISP08,
|
| BFD_RELOC_16C_DISP08_C,
|
| BFD_RELOC_16C_DISP16,
|
| BFD_RELOC_16C_DISP16_C,
|
| BFD_RELOC_16C_DISP24,
|
| BFD_RELOC_16C_DISP24_C,
|
| BFD_RELOC_16C_DISP24a,
|
| BFD_RELOC_16C_DISP24a_C,
|
| BFD_RELOC_16C_REG04,
|
| BFD_RELOC_16C_REG04_C,
|
| BFD_RELOC_16C_REG04a,
|
| BFD_RELOC_16C_REG04a_C,
|
| BFD_RELOC_16C_REG14,
|
| BFD_RELOC_16C_REG14_C,
|
| BFD_RELOC_16C_REG16,
|
| BFD_RELOC_16C_REG16_C,
|
| BFD_RELOC_16C_REG20,
|
| BFD_RELOC_16C_REG20_C,
|
| BFD_RELOC_16C_ABS20,
|
| BFD_RELOC_16C_ABS20_C,
|
| BFD_RELOC_16C_ABS24,
|
| BFD_RELOC_16C_ABS24_C,
|
| BFD_RELOC_16C_IMM04,
|
| BFD_RELOC_16C_IMM04_C,
|
| BFD_RELOC_16C_IMM16,
|
| BFD_RELOC_16C_IMM16_C,
|
| BFD_RELOC_16C_IMM20,
|
| BFD_RELOC_16C_IMM20_C,
|
| BFD_RELOC_16C_IMM24,
|
| BFD_RELOC_16C_IMM24_C,
|
| BFD_RELOC_16C_IMM32,
|
| BFD_RELOC_16C_IMM32_C,
|
|
|
|
|
| BFD_RELOC_CR16_NUM8,
|
| BFD_RELOC_CR16_NUM16,
|
| BFD_RELOC_CR16_NUM32,
|
| BFD_RELOC_CR16_NUM32a,
|
| BFD_RELOC_CR16_REGREL0,
|
| BFD_RELOC_CR16_REGREL4,
|
| BFD_RELOC_CR16_REGREL4a,
|
| BFD_RELOC_CR16_REGREL14,
|
| BFD_RELOC_CR16_REGREL14a,
|
| BFD_RELOC_CR16_REGREL16,
|
| BFD_RELOC_CR16_REGREL20,
|
| BFD_RELOC_CR16_REGREL20a,
|
| BFD_RELOC_CR16_ABS20,
|
| BFD_RELOC_CR16_ABS24,
|
| BFD_RELOC_CR16_IMM4,
|
| BFD_RELOC_CR16_IMM8,
|
| BFD_RELOC_CR16_IMM16,
|
| BFD_RELOC_CR16_IMM20,
|
| BFD_RELOC_CR16_IMM24,
|
| BFD_RELOC_CR16_IMM32,
|
| BFD_RELOC_CR16_IMM32a,
|
| BFD_RELOC_CR16_DISP4,
|
| BFD_RELOC_CR16_DISP8,
|
| BFD_RELOC_CR16_DISP16,
|
| BFD_RELOC_CR16_DISP20,
|
| BFD_RELOC_CR16_DISP24,
|
| BFD_RELOC_CR16_DISP24a,
|
| BFD_RELOC_CR16_SWITCH8,
|
| BFD_RELOC_CR16_SWITCH16,
|
| BFD_RELOC_CR16_SWITCH32,
|
|
|
|
|
| BFD_RELOC_CRX_REL4,
|
| BFD_RELOC_CRX_REL8,
|
| BFD_RELOC_CRX_REL8_CMP,
|
| BFD_RELOC_CRX_REL16,
|
| BFD_RELOC_CRX_REL24,
|
| BFD_RELOC_CRX_REL32,
|
| BFD_RELOC_CRX_REGREL12,
|
| BFD_RELOC_CRX_REGREL22,
|
| BFD_RELOC_CRX_REGREL28,
|
| BFD_RELOC_CRX_REGREL32,
|
| BFD_RELOC_CRX_ABS16,
|
| BFD_RELOC_CRX_ABS32,
|
| BFD_RELOC_CRX_NUM8,
|
| BFD_RELOC_CRX_NUM16,
|
| BFD_RELOC_CRX_NUM32,
|
| BFD_RELOC_CRX_IMM16,
|
| BFD_RELOC_CRX_IMM32,
|
| BFD_RELOC_CRX_SWITCH8,
|
| BFD_RELOC_CRX_SWITCH16,
|
| BFD_RELOC_CRX_SWITCH32,
|
|
|
| |
|
|
| BFD_RELOC_CRIS_BDISP8,
|
| BFD_RELOC_CRIS_UNSIGNED_5,
|
| BFD_RELOC_CRIS_SIGNED_6,
|
| BFD_RELOC_CRIS_UNSIGNED_6,
|
| BFD_RELOC_CRIS_SIGNED_8,
|
| BFD_RELOC_CRIS_UNSIGNED_8,
|
| BFD_RELOC_CRIS_SIGNED_16,
|
| BFD_RELOC_CRIS_UNSIGNED_16,
|
| BFD_RELOC_CRIS_LAPCQ_OFFSET,
|
| BFD_RELOC_CRIS_UNSIGNED_4,
|
|
|
|
|
| BFD_RELOC_CRIS_COPY,
|
| BFD_RELOC_CRIS_GLOB_DAT,
|
| BFD_RELOC_CRIS_JUMP_SLOT,
|
| BFD_RELOC_CRIS_RELATIVE,
|
|
|
|
|
| BFD_RELOC_CRIS_32_GOT,
|
|
|
|
|
| BFD_RELOC_CRIS_16_GOT,
|
|
|
|
|
| BFD_RELOC_CRIS_32_GOTPLT,
|
|
|
|
|
| BFD_RELOC_CRIS_16_GOTPLT,
|
|
|
|
|
| BFD_RELOC_CRIS_32_GOTREL,
|
|
|
|
|
| BFD_RELOC_CRIS_32_PLT_GOTREL,
|
|
|
|
|
| BFD_RELOC_CRIS_32_PLT_PCREL,
|
|
|
|
|
| BFD_RELOC_860_COPY,
|
| BFD_RELOC_860_GLOB_DAT,
|
| BFD_RELOC_860_JUMP_SLOT,
|
| BFD_RELOC_860_RELATIVE,
|
| BFD_RELOC_860_PC26,
|
| BFD_RELOC_860_PLT26,
|
| BFD_RELOC_860_PC16,
|
| BFD_RELOC_860_LOW0,
|
| BFD_RELOC_860_SPLIT0,
|
| BFD_RELOC_860_LOW1,
|
| BFD_RELOC_860_SPLIT1,
|
| BFD_RELOC_860_LOW2,
|
| BFD_RELOC_860_SPLIT2,
|
| BFD_RELOC_860_LOW3,
|
| BFD_RELOC_860_LOGOT0,
|
| BFD_RELOC_860_SPGOT0,
|
| BFD_RELOC_860_LOGOT1,
|
| BFD_RELOC_860_SPGOT1,
|
| BFD_RELOC_860_LOGOTOFF0,
|
| BFD_RELOC_860_SPGOTOFF0,
|
| BFD_RELOC_860_LOGOTOFF1,
|
| BFD_RELOC_860_SPGOTOFF1,
|
| BFD_RELOC_860_LOGOTOFF2,
|
| BFD_RELOC_860_LOGOTOFF3,
|
| BFD_RELOC_860_LOPC,
|
| BFD_RELOC_860_HIGHADJ,
|
| BFD_RELOC_860_HAGOT,
|
| BFD_RELOC_860_HAGOTOFF,
|
| BFD_RELOC_860_HAPC,
|
| BFD_RELOC_860_HIGH,
|
| BFD_RELOC_860_HIGOT,
|
| BFD_RELOC_860_HIGOTOFF,
|
|
|
|
|
| BFD_RELOC_OPENRISC_ABS_26,
|
| BFD_RELOC_OPENRISC_REL_26,
|
|
|
|
|
| BFD_RELOC_H8_DIR16A8,
|
| BFD_RELOC_H8_DIR16R8,
|
| BFD_RELOC_H8_DIR24A8,
|
| BFD_RELOC_H8_DIR24R8,
|
| BFD_RELOC_H8_DIR32A16,
|
|
|
|
|
| BFD_RELOC_XSTORMY16_REL_12,
|
| BFD_RELOC_XSTORMY16_12,
|
| BFD_RELOC_XSTORMY16_24,
|
| BFD_RELOC_XSTORMY16_FPTR16,
|
|
|
|
|
| BFD_RELOC_RELC,
|
|
|
|
|
|
|
| BFD_RELOC_XC16X_PAG,
|
| BFD_RELOC_XC16X_POF,
|
| BFD_RELOC_XC16X_SEG,
|
| BFD_RELOC_XC16X_SOF,
|
|
|
|
|
| BFD_RELOC_VAX_GLOB_DAT,
|
| BFD_RELOC_VAX_JMP_SLOT,
|
| BFD_RELOC_VAX_RELATIVE,
|
|
|
|
|
| BFD_RELOC_MT_PC16,
|
|
|
|
|
| BFD_RELOC_MT_HI16,
|
|
|
|
|
| BFD_RELOC_MT_LO16,
|
|
|
|
|
| BFD_RELOC_MT_GNU_VTINHERIT,
|
|
|
|
|
| BFD_RELOC_MT_GNU_VTENTRY,
|
|
|
|
|
| BFD_RELOC_MT_PCINSN8,
|
|
|
|
|
| BFD_RELOC_MSP430_10_PCREL,
|
| BFD_RELOC_MSP430_16_PCREL,
|
| BFD_RELOC_MSP430_16,
|
| BFD_RELOC_MSP430_16_PCREL_BYTE,
|
| BFD_RELOC_MSP430_16_BYTE,
|
| BFD_RELOC_MSP430_2X_PCREL,
|
| BFD_RELOC_MSP430_RL_PCREL,
|
|
|
|
|
| BFD_RELOC_IQ2000_OFFSET_16,
|
| BFD_RELOC_IQ2000_OFFSET_21,
|
| BFD_RELOC_IQ2000_UHI16,
|
|
|
| |
| |
|
|
| BFD_RELOC_XTENSA_RTLD,
|
|
|
|
|
| BFD_RELOC_XTENSA_GLOB_DAT,
|
| BFD_RELOC_XTENSA_JMP_SLOT,
|
| BFD_RELOC_XTENSA_RELATIVE,
|
|
|
| |
|
|
| BFD_RELOC_XTENSA_PLT,
|
|
|
| |
| |
| |
| |
| |
|
|
| BFD_RELOC_XTENSA_DIFF8,
|
| BFD_RELOC_XTENSA_DIFF16,
|
| BFD_RELOC_XTENSA_DIFF32,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_XTENSA_SLOT0_OP,
|
| BFD_RELOC_XTENSA_SLOT1_OP,
|
| BFD_RELOC_XTENSA_SLOT2_OP,
|
| BFD_RELOC_XTENSA_SLOT3_OP,
|
| BFD_RELOC_XTENSA_SLOT4_OP,
|
| BFD_RELOC_XTENSA_SLOT5_OP,
|
| BFD_RELOC_XTENSA_SLOT6_OP,
|
| BFD_RELOC_XTENSA_SLOT7_OP,
|
| BFD_RELOC_XTENSA_SLOT8_OP,
|
| BFD_RELOC_XTENSA_SLOT9_OP,
|
| BFD_RELOC_XTENSA_SLOT10_OP,
|
| BFD_RELOC_XTENSA_SLOT11_OP,
|
| BFD_RELOC_XTENSA_SLOT12_OP,
|
| BFD_RELOC_XTENSA_SLOT13_OP,
|
| BFD_RELOC_XTENSA_SLOT14_OP,
|
|
|
| |
|
|
| BFD_RELOC_XTENSA_SLOT0_ALT,
|
| BFD_RELOC_XTENSA_SLOT1_ALT,
|
| BFD_RELOC_XTENSA_SLOT2_ALT,
|
| BFD_RELOC_XTENSA_SLOT3_ALT,
|
| BFD_RELOC_XTENSA_SLOT4_ALT,
|
| BFD_RELOC_XTENSA_SLOT5_ALT,
|
| BFD_RELOC_XTENSA_SLOT6_ALT,
|
| BFD_RELOC_XTENSA_SLOT7_ALT,
|
| BFD_RELOC_XTENSA_SLOT8_ALT,
|
| BFD_RELOC_XTENSA_SLOT9_ALT,
|
| BFD_RELOC_XTENSA_SLOT10_ALT,
|
| BFD_RELOC_XTENSA_SLOT11_ALT,
|
| BFD_RELOC_XTENSA_SLOT12_ALT,
|
| BFD_RELOC_XTENSA_SLOT13_ALT,
|
| BFD_RELOC_XTENSA_SLOT14_ALT,
|
|
|
| |
|
|
| BFD_RELOC_XTENSA_OP0,
|
| BFD_RELOC_XTENSA_OP1,
|
| BFD_RELOC_XTENSA_OP2,
|
|
|
| |
| |
|
|
| BFD_RELOC_XTENSA_ASM_EXPAND,
|
|
|
| |
| |
| |
|
|
| BFD_RELOC_XTENSA_ASM_SIMPLIFY,
|
|
|
|
|
| BFD_RELOC_XTENSA_TLSDESC_FN,
|
| BFD_RELOC_XTENSA_TLSDESC_ARG,
|
| BFD_RELOC_XTENSA_TLS_DTPOFF,
|
| BFD_RELOC_XTENSA_TLS_TPOFF,
|
| BFD_RELOC_XTENSA_TLS_FUNC,
|
| BFD_RELOC_XTENSA_TLS_ARG,
|
| BFD_RELOC_XTENSA_TLS_CALL,
|
|
|
|
|
| BFD_RELOC_Z80_DISP8,
|
|
|
|
|
| BFD_RELOC_Z8K_DISP7,
|
|
|
|
|
| BFD_RELOC_Z8K_CALLR,
|
|
|
|
|
| BFD_RELOC_Z8K_IMM4L,
|
| BFD_RELOC_UNUSED };
|
| typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
|
| reloc_howto_type *bfd_reloc_type_lookup
|
| (bfd *abfd, bfd_reloc_code_real_type code);
|
| reloc_howto_type *bfd_reloc_name_lookup
|
| (bfd *abfd, const char *reloc_name);
|
|
|
| const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code);
|
|
|
|
|
|
|
| typedef struct bfd_symbol
|
| {
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| struct bfd *the_bfd;
|
|
|
| |
|
|
| const char *name;
|
|
|
| |
| |
|
|
| symvalue value;
|
|
|
|
|
| #define BSF_NO_FLAGS 0x00
|
|
|
| |
|
|
| #define BSF_LOCAL 0x01
|
|
|
| |
|
|
| #define BSF_GLOBAL 0x02
|
|
|
| |
|
|
| #define BSF_EXPORT BSF_GLOBAL
|
|
|
| |
| |
|
|
|
|
| |
|
|
| #define BSF_DEBUGGING 0x08
|
|
|
| |
|
|
| #define BSF_FUNCTION 0x10
|
|
|
|
|
| #define BSF_KEEP 0x20
|
| #define BSF_KEEP_G 0x40
|
|
|
| |
|
|
| #define BSF_WEAK 0x80
|
|
|
| |
|
|
| #define BSF_SECTION_SYM 0x100
|
|
|
| |
|
|
| #define BSF_OLD_COMMON 0x200
|
|
|
|
|
| #define BFD_FORT_COMM_DEFAULT_VALUE 0
|
|
|
| |
| |
| |
| |
|
|
| #define BSF_NOT_AT_END 0x400
|
|
|
|
|
| #define BSF_CONSTRUCTOR 0x800
|
|
|
| |
| |
| |
|
|
| #define BSF_WARNING 0x1000
|
|
|
| |
|
|
| #define BSF_INDIRECT 0x2000
|
|
|
| |
|
|
| #define BSF_FILE 0x4000
|
|
|
|
|
| #define BSF_DYNAMIC 0x8000
|
|
|
| |
|
|
| #define BSF_OBJECT 0x10000
|
|
|
| |
| |
|
|
| #define BSF_DEBUGGING_RELOC 0x20000
|
|
|
|
|
| #define BSF_THREAD_LOCAL 0x40000
|
|
|
| |
|
|
| #define BSF_RELC 0x80000
|
|
|
| |
|
|
| #define BSF_SRELC 0x100000
|
|
|
|
|
| #define BSF_SYNTHETIC 0x200000
|
|
|
| flagword flags;
|
|
|
| |
| |
|
|
| struct bfd_section *section;
|
|
|
|
|
| union
|
| {
|
| void *p;
|
| bfd_vma i;
|
| }
|
| udata;
|
| }
|
| asymbol;
|
|
|
| #define bfd_get_symtab_upper_bound(abfd) \
|
| BFD_SEND (abfd, _bfd_get_symtab_upper_bound, (abfd))
|
|
|
| bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym);
|
|
|
| bfd_boolean bfd_is_local_label_name (bfd *abfd, const char *name);
|
|
|
| #define bfd_is_local_label_name(abfd, name) \
|
| BFD_SEND (abfd, _bfd_is_local_label_name, (abfd, name))
|
|
|
| bfd_boolean bfd_is_target_special_symbol (bfd *abfd, asymbol *sym);
|
|
|
| #define bfd_is_target_special_symbol(abfd, sym) \
|
| BFD_SEND (abfd, _bfd_is_target_special_symbol, (abfd, sym))
|
|
|
| #define bfd_canonicalize_symtab(abfd, location) \
|
| BFD_SEND (abfd, _bfd_canonicalize_symtab, (abfd, location))
|
|
|
| bfd_boolean bfd_set_symtab
|
| (bfd *abfd, asymbol **location, unsigned int count);
|
|
|
| void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);
|
|
|
| #define bfd_make_empty_symbol(abfd) \
|
| BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd))
|
|
|
| asymbol *_bfd_generic_make_empty_symbol (bfd *);
|
|
|
| #define bfd_make_debug_symbol(abfd,ptr,size) \
|
| BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
|
|
|
| int bfd_decode_symclass (asymbol *symbol);
|
|
|
| bfd_boolean bfd_is_undefined_symclass (int symclass);
|
|
|
| void bfd_symbol_info (asymbol *symbol, symbol_info *ret);
|
|
|
| bfd_boolean bfd_copy_private_symbol_data
|
| (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym);
|
|
|
| #define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \
|
| BFD_SEND (obfd, _bfd_copy_private_symbol_data, \
|
| (ibfd, isymbol, obfd, osymbol))
|
|
|
|
|
| struct bfd
|
| {
|
|
|
| unsigned int id;
|
|
|
|
|
| const char *filename;
|
|
|
|
|
| const struct bfd_target *xvec;
|
|
|
| |
|
|
| void *iostream;
|
| const struct bfd_iovec *iovec;
|
|
|
| |
|
|
| struct bfd *lru_prev, *lru_next;
|
|
|
| |
|
|
| ufile_ptr where;
|
|
|
|
|
| long mtime;
|
|
|
|
|
| int ifd;
|
|
|
|
|
| bfd_format format;
|
|
|
|
|
| enum bfd_direction
|
| {
|
| no_direction = 0,
|
| read_direction = 1,
|
| write_direction = 2,
|
| both_direction = 3
|
| }
|
| direction;
|
|
|
|
|
| flagword flags;
|
|
|
| |
| |
| |
| |
| |
|
|
|
|
| #define BFD_NO_FLAGS 0x00
|
|
|
|
|
| #define HAS_RELOC 0x01
|
|
|
|
|
| #define EXEC_P 0x02
|
|
|
| |
|
|
| #define HAS_LINENO 0x04
|
|
|
|
|
| #define HAS_DEBUG 0x08
|
|
|
|
|
| #define HAS_SYMS 0x10
|
|
|
| |
|
|
| #define HAS_LOCALS 0x20
|
|
|
|
|
| #define DYNAMIC 0x40
|
|
|
| |
| |
|
|
| #define WP_TEXT 0x80
|
|
|
| |
|
|
| #define D_PAGED 0x100
|
|
|
| |
| |
|
|
| #define BFD_IS_RELAXABLE 0x200
|
|
|
| |
| |
| |
|
|
| #define BFD_TRADITIONAL_FORMAT 0x400
|
|
|
| |
| |
|
|
| #define BFD_IN_MEMORY 0x800
|
|
|
|
|
| #define HAS_LOAD_PAGE 0x1000
|
|
|
| |
|
|
| #define BFD_LINKER_CREATED 0x2000
|
|
|
| |
| |
|
|
| ufile_ptr origin;
|
|
|
| |
| |
| |
| |
|
|
| ufile_ptr proxy_origin;
|
|
|
|
|
| struct bfd_hash_table section_htab;
|
|
|
|
|
| struct bfd_section *sections;
|
|
|
|
|
| struct bfd_section *section_last;
|
|
|
|
|
| unsigned int section_count;
|
|
|
| |
|
|
| bfd_vma start_address;
|
|
|
|
|
| unsigned int symcount;
|
|
|
| |
|
|
| struct bfd_symbol **outsymbols;
|
|
|
|
|
| unsigned int dynsymcount;
|
|
|
|
|
| const struct bfd_arch_info *arch_info;
|
|
|
|
|
| void *arelt_data;
|
| struct bfd *my_archive;
|
| struct bfd *archive_next;
|
| struct bfd *archive_head;
|
| struct bfd *nested_archives; |
|
|
|
|
|
|
| struct bfd *link_next;
|
|
|
| |
|
|
| int archive_pass;
|
|
|
|
|
| union
|
| {
|
| struct aout_data_struct *aout_data;
|
| struct artdata *aout_ar_data;
|
| struct _oasys_data *oasys_obj_data;
|
| struct _oasys_ar_data *oasys_ar_data;
|
| struct coff_tdata *coff_obj_data;
|
| struct pe_tdata *pe_obj_data;
|
| struct xcoff_tdata *xcoff_obj_data;
|
| struct ecoff_tdata *ecoff_obj_data;
|
| struct ieee_data_struct *ieee_data;
|
| struct ieee_ar_data_struct *ieee_ar_data;
|
| struct srec_data_struct *srec_data;
|
| struct ihex_data_struct *ihex_data;
|
| struct tekhex_data_struct *tekhex_data;
|
| struct elf_obj_tdata *elf_obj_data;
|
| struct nlm_obj_tdata *nlm_obj_data;
|
| struct bout_data_struct *bout_data;
|
| struct mmo_data_struct *mmo_data;
|
| struct sun_core_struct *sun_core_data;
|
| struct sco5_core_struct *sco5_core_data;
|
| struct trad_core_struct *trad_core_data;
|
| struct som_data_struct *som_data;
|
| struct hpux_core_struct *hpux_core_data;
|
| struct hppabsd_core_struct *hppabsd_core_data;
|
| struct sgi_core_struct *sgi_core_data;
|
| struct lynx_core_struct *lynx_core_data;
|
| struct osf_core_struct *osf_core_data;
|
| struct cisco_core_struct *cisco_core_data;
|
| struct versados_data_struct *versados_data;
|
| struct netbsd_core_struct *netbsd_core_data;
|
| struct mach_o_data_struct *mach_o_data;
|
| struct mach_o_fat_data_struct *mach_o_fat_data;
|
| struct bfd_pef_data_struct *pef_data;
|
| struct bfd_pef_xlib_data_struct *pef_xlib_data;
|
| struct bfd_sym_data_struct *sym_data;
|
| void *any;
|
| }
|
| tdata;
|
|
|
|
|
| void *usrdata;
|
|
|
| |
| |
|
|
| void *memory;
|
|
|
| |
|
|
| unsigned int cacheable : 1;
|
|
|
| |
| |
|
|
| unsigned int target_defaulted : 1;
|
|
|
|
|
| unsigned int opened_once : 1;
|
|
|
| |
|
|
| unsigned int mtime_set : 1;
|
|
|
|
|
| unsigned int no_export : 1;
|
|
|
| |
|
|
| unsigned int output_has_begun : 1;
|
|
|
|
|
| unsigned int has_armap : 1;
|
|
|
|
|
| unsigned int is_thin_archive : 1;
|
| };
|
|
|
| typedef enum bfd_error
|
| {
|
| bfd_error_no_error = 0,
|
| bfd_error_system_call,
|
| bfd_error_invalid_target,
|
| bfd_error_wrong_format,
|
| bfd_error_wrong_object_format,
|
| bfd_error_invalid_operation,
|
| bfd_error_no_memory,
|
| bfd_error_no_symbols,
|
| bfd_error_no_armap,
|
| bfd_error_no_more_archived_files,
|
| bfd_error_malformed_archive,
|
| bfd_error_file_not_recognized,
|
| bfd_error_file_ambiguously_recognized,
|
| bfd_error_no_contents,
|
| bfd_error_nonrepresentable_section,
|
| bfd_error_no_debug_section,
|
| bfd_error_bad_value,
|
| bfd_error_file_truncated,
|
| bfd_error_file_too_big,
|
| bfd_error_on_input,
|
| bfd_error_invalid_error_code
|
| }
|
| bfd_error_type;
|
|
|
| bfd_error_type bfd_get_error (void);
|
|
|
| void bfd_set_error (bfd_error_type error_tag, ...);
|
|
|
| const char *bfd_errmsg (bfd_error_type error_tag);
|
|
|
| void bfd_perror (const char *message);
|
|
|
| typedef void (*bfd_error_handler_type) (const char *, ...);
|
|
|
| bfd_error_handler_type bfd_set_error_handler (bfd_error_handler_type);
|
|
|
| void bfd_set_error_program_name (const char *);
|
|
|
| bfd_error_handler_type bfd_get_error_handler (void);
|
|
|
| long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect);
|
|
|
| long bfd_canonicalize_reloc
|
| (bfd *abfd, asection *sec, arelent **loc, asymbol **syms);
|
|
|
| void bfd_set_reloc
|
| (bfd *abfd, asection *sec, arelent **rel, unsigned int count);
|
|
|
| bfd_boolean bfd_set_file_flags (bfd *abfd, flagword flags);
|
|
|
| int bfd_get_arch_size (bfd *abfd);
|
|
|
| int bfd_get_sign_extend_vma (bfd *abfd);
|
|
|
| bfd_boolean bfd_set_start_address (bfd *abfd, bfd_vma vma);
|
|
|
| unsigned int bfd_get_gp_size (bfd *abfd);
|
|
|
| void bfd_set_gp_size (bfd *abfd, unsigned int i);
|
|
|
| bfd_vma bfd_scan_vma (const char *string, const char **end, int base);
|
|
|
| bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);
|
|
|
| #define bfd_copy_private_header_data(ibfd, obfd) \
|
| BFD_SEND (obfd, _bfd_copy_private_header_data, \
|
| (ibfd, obfd))
|
| bfd_boolean bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd);
|
|
|
| #define bfd_copy_private_bfd_data(ibfd, obfd) \
|
| BFD_SEND (obfd, _bfd_copy_private_bfd_data, \
|
| (ibfd, obfd))
|
| bfd_boolean bfd_merge_private_bfd_data (bfd *ibfd, bfd *obfd);
|
|
|
| #define bfd_merge_private_bfd_data(ibfd, obfd) \
|
| BFD_SEND (obfd, _bfd_merge_private_bfd_data, \
|
| (ibfd, obfd))
|
| bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags);
|
|
|
| #define bfd_set_private_flags(abfd, flags) \
|
| BFD_SEND (abfd, _bfd_set_private_flags, (abfd, flags))
|
| #define bfd_sizeof_headers(abfd, info) \
|
| BFD_SEND (abfd, _bfd_sizeof_headers, (abfd, info))
|
|
|
| #define bfd_find_nearest_line(abfd, sec, syms, off, file, func, line) \
|
| BFD_SEND (abfd, _bfd_find_nearest_line, \
|
| (abfd, sec, syms, off, file, func, line))
|
|
|
| #define bfd_find_line(abfd, syms, sym, file, line) \
|
| BFD_SEND (abfd, _bfd_find_line, \
|
| (abfd, syms, sym, file, line))
|
|
|
| #define bfd_find_inliner_info(abfd, file, func, line) \
|
| BFD_SEND (abfd, _bfd_find_inliner_info, \
|
| (abfd, file, func, line))
|
|
|
| #define bfd_debug_info_start(abfd) \
|
| BFD_SEND (abfd, _bfd_debug_info_start, (abfd))
|
|
|
| #define bfd_debug_info_end(abfd) \
|
| BFD_SEND (abfd, _bfd_debug_info_end, (abfd))
|
|
|
| #define bfd_debug_info_accumulate(abfd, section) \
|
| BFD_SEND (abfd, _bfd_debug_info_accumulate, (abfd, section))
|
|
|
| #define bfd_stat_arch_elt(abfd, stat) \
|
| BFD_SEND (abfd, _bfd_stat_arch_elt,(abfd, stat))
|
|
|
| #define bfd_update_armap_timestamp(abfd) \
|
| BFD_SEND (abfd, _bfd_update_armap_timestamp, (abfd))
|
|
|
| #define bfd_set_arch_mach(abfd, arch, mach)\
|
| BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach))
|
|
|
| #define bfd_relax_section(abfd, section, link_info, again) \
|
| BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again))
|
|
|
| #define bfd_gc_sections(abfd, link_info) \
|
| BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info))
|
|
|
| #define bfd_merge_sections(abfd, link_info) \
|
| BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info))
|
|
|
| #define bfd_is_group_section(abfd, sec) \
|
| BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec))
|
|
|
| #define bfd_discard_group(abfd, sec) \
|
| BFD_SEND (abfd, _bfd_discard_group, (abfd, sec))
|
|
|
| #define bfd_link_hash_table_create(abfd) \
|
| BFD_SEND (abfd, _bfd_link_hash_table_create, (abfd))
|
|
|
| #define bfd_link_hash_table_free(abfd, hash) \
|
| BFD_SEND (abfd, _bfd_link_hash_table_free, (hash))
|
|
|
| #define bfd_link_add_symbols(abfd, info) \
|
| BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info))
|
|
|
| #define bfd_link_just_syms(abfd, sec, info) \
|
| BFD_SEND (abfd, _bfd_link_just_syms, (sec, info))
|
|
|
| #define bfd_final_link(abfd, info) \
|
| BFD_SEND (abfd, _bfd_final_link, (abfd, info))
|
|
|
| #define bfd_free_cached_info(abfd) \
|
| BFD_SEND (abfd, _bfd_free_cached_info, (abfd))
|
|
|
| #define bfd_get_dynamic_symtab_upper_bound(abfd) \
|
| BFD_SEND (abfd, _bfd_get_dynamic_symtab_upper_bound, (abfd))
|
|
|
| #define bfd_print_private_bfd_data(abfd, file)\
|
| BFD_SEND (abfd, _bfd_print_private_bfd_data, (abfd, file))
|
|
|
| #define bfd_canonicalize_dynamic_symtab(abfd, asymbols) \
|
| BFD_SEND (abfd, _bfd_canonicalize_dynamic_symtab, (abfd, asymbols))
|
|
|
| #define bfd_get_synthetic_symtab(abfd, count, syms, dyncount, dynsyms, ret) \
|
| BFD_SEND (abfd, _bfd_get_synthetic_symtab, (abfd, count, syms, \
|
| dyncount, dynsyms, ret))
|
|
|
| #define bfd_get_dynamic_reloc_upper_bound(abfd) \
|
| BFD_SEND (abfd, _bfd_get_dynamic_reloc_upper_bound, (abfd))
|
|
|
| #define bfd_canonicalize_dynamic_reloc(abfd, arels, asyms) \
|
| BFD_SEND (abfd, _bfd_canonicalize_dynamic_reloc, (abfd, arels, asyms))
|
|
|
| extern bfd_byte *bfd_get_relocated_section_contents
|
| (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *,
|
| bfd_boolean, asymbol **);
|
|
|
| bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative);
|
|
|
| struct bfd_preserve
|
| {
|
| void *marker;
|
| void *tdata;
|
| flagword flags;
|
| const struct bfd_arch_info *arch_info;
|
| struct bfd_section *sections;
|
| struct bfd_section *section_last;
|
| unsigned int section_count;
|
| struct bfd_hash_table section_htab;
|
| };
|
|
|
| bfd_boolean bfd_preserve_save (bfd *, struct bfd_preserve *);
|
|
|
| void bfd_preserve_restore (bfd *, struct bfd_preserve *);
|
|
|
| void bfd_preserve_finish (bfd *, struct bfd_preserve *);
|
|
|
| bfd_vma bfd_emul_get_maxpagesize (const char *);
|
|
|
| void bfd_emul_set_maxpagesize (const char *, bfd_vma);
|
|
|
| bfd_vma bfd_emul_get_commonpagesize (const char *);
|
|
|
| void bfd_emul_set_commonpagesize (const char *, bfd_vma);
|
|
|
| char *bfd_demangle (bfd *, const char *, int);
|
|
|
|
|
| symindex bfd_get_next_mapent
|
| (bfd *abfd, symindex previous, carsym **sym);
|
|
|
| bfd_boolean bfd_set_archive_head (bfd *output, bfd *new_head);
|
|
|
| bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous);
|
|
|
|
|
| const char *bfd_core_file_failing_command (bfd *abfd);
|
|
|
| int bfd_core_file_failing_signal (bfd *abfd);
|
|
|
| bfd_boolean core_file_matches_executable_p
|
| (bfd *core_bfd, bfd *exec_bfd);
|
|
|
| bfd_boolean generic_core_file_matches_executable_p
|
| (bfd *core_bfd, bfd *exec_bfd);
|
|
|
|
|
| #define BFD_SEND(bfd, message, arglist) \
|
| ((*((bfd)->xvec->message)) arglist)
|
|
|
| #ifdef DEBUG_BFD_SEND
|
| #undef BFD_SEND
|
| #define BFD_SEND(bfd, message, arglist) \
|
| (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
|
| ((*((bfd)->xvec->message)) arglist) : \
|
| (bfd_assert (__FILE__,__LINE__), NULL))
|
| #endif
|
| #define BFD_SEND_FMT(bfd, message, arglist) \
|
| (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist)
|
|
|
| #ifdef DEBUG_BFD_SEND
|
| #undef BFD_SEND_FMT
|
| #define BFD_SEND_FMT(bfd, message, arglist) \
|
| (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
|
| (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) : \
|
| (bfd_assert (__FILE__,__LINE__), NULL))
|
| #endif
|
|
|
| enum bfd_flavour
|
| {
|
| bfd_target_unknown_flavour,
|
| bfd_target_aout_flavour,
|
| bfd_target_coff_flavour,
|
| bfd_target_ecoff_flavour,
|
| bfd_target_xcoff_flavour,
|
| bfd_target_elf_flavour,
|
| bfd_target_ieee_flavour,
|
| bfd_target_nlm_flavour,
|
| bfd_target_oasys_flavour,
|
| bfd_target_tekhex_flavour,
|
| bfd_target_srec_flavour,
|
| bfd_target_ihex_flavour,
|
| bfd_target_som_flavour,
|
| bfd_target_os9k_flavour,
|
| bfd_target_versados_flavour,
|
| bfd_target_msdos_flavour,
|
| bfd_target_ovax_flavour,
|
| bfd_target_evax_flavour,
|
| bfd_target_mmo_flavour,
|
| bfd_target_mach_o_flavour,
|
| bfd_target_pef_flavour,
|
| bfd_target_pef_xlib_flavour,
|
| bfd_target_sym_flavour
|
| };
|
|
|
| enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN };
|
|
|
|
|
| typedef struct bfd_link_info _bfd_link_info;
|
|
|
| typedef struct bfd_target
|
| {
|
|
|
| char *name;
|
|
|
| |
|
|
| enum bfd_flavour flavour;
|
|
|
|
|
| enum bfd_endian byteorder;
|
|
|
|
|
| enum bfd_endian header_byteorder;
|
|
|
| |
|
|
| flagword object_flags;
|
|
|
| |
|
|
| flagword section_flags;
|
|
|
| |
|
|
| char symbol_leading_char;
|
|
|
|
|
| char ar_pad_char;
|
|
|
|
|
| unsigned short ar_max_namelen;
|
|
|
| |
| |
|
|
| bfd_uint64_t (*bfd_getx64) (const void *);
|
| bfd_int64_t (*bfd_getx_signed_64) (const void *);
|
| void (*bfd_putx64) (bfd_uint64_t, void *);
|
| bfd_vma (*bfd_getx32) (const void *);
|
| bfd_signed_vma (*bfd_getx_signed_32) (const void *);
|
| void (*bfd_putx32) (bfd_vma, void *);
|
| bfd_vma (*bfd_getx16) (const void *);
|
| bfd_signed_vma (*bfd_getx_signed_16) (const void *);
|
| void (*bfd_putx16) (bfd_vma, void *);
|
|
|
|
|
| bfd_uint64_t (*bfd_h_getx64) (const void *);
|
| bfd_int64_t (*bfd_h_getx_signed_64) (const void *);
|
| void (*bfd_h_putx64) (bfd_uint64_t, void *);
|
| bfd_vma (*bfd_h_getx32) (const void *);
|
| bfd_signed_vma (*bfd_h_getx_signed_32) (const void *);
|
| void (*bfd_h_putx32) (bfd_vma, void *);
|
| bfd_vma (*bfd_h_getx16) (const void *);
|
| bfd_signed_vma (*bfd_h_getx_signed_16) (const void *);
|
| void (*bfd_h_putx16) (bfd_vma, void *);
|
|
|
| |
|
|
|
|
|
|
| const struct bfd_target *(*_bfd_check_format[bfd_type_end]) (bfd *);
|
|
|
|
|
| bfd_boolean (*_bfd_set_format[bfd_type_end]) (bfd *);
|
|
|
|
|
| bfd_boolean (*_bfd_write_contents[bfd_type_end]) (bfd *);
|
|
|
|
|
|
|
| #define BFD_JUMP_TABLE_GENERIC(NAME) \
|
| NAME##_close_and_cleanup, \
|
| NAME##_bfd_free_cached_info, \
|
| NAME##_new_section_hook, \
|
| NAME##_get_section_contents, \
|
| NAME##_get_section_contents_in_window
|
|
|
|
|
| bfd_boolean (*_close_and_cleanup) (bfd *);
|
|
|
| bfd_boolean (*_bfd_free_cached_info) (bfd *);
|
|
|
| bfd_boolean (*_new_section_hook) (bfd *, sec_ptr);
|
|
|
| bfd_boolean (*_bfd_get_section_contents)
|
| (bfd *, sec_ptr, void *, file_ptr, bfd_size_type);
|
| bfd_boolean (*_bfd_get_section_contents_in_window)
|
| (bfd *, sec_ptr, bfd_window *, file_ptr, bfd_size_type);
|
|
|
|
|
| #define BFD_JUMP_TABLE_COPY(NAME) \
|
| NAME##_bfd_copy_private_bfd_data, \
|
| NAME##_bfd_merge_private_bfd_data, \
|
| _bfd_generic_init_private_section_data, \
|
| NAME##_bfd_copy_private_section_data, \
|
| NAME##_bfd_copy_private_symbol_data, \
|
| NAME##_bfd_copy_private_header_data, \
|
| NAME##_bfd_set_private_flags, \
|
| NAME##_bfd_print_private_bfd_data
|
|
|
| |
|
|
| bfd_boolean (*_bfd_copy_private_bfd_data) (bfd *, bfd *);
|
| |
|
|
| bfd_boolean (*_bfd_merge_private_bfd_data) (bfd *, bfd *);
|
| |
|
|
| #define bfd_init_private_section_data(ibfd, isec, obfd, osec, link_info) \
|
| BFD_SEND (obfd, _bfd_init_private_section_data, (ibfd, isec, obfd, osec, link_info))
|
| bfd_boolean (*_bfd_init_private_section_data)
|
| (bfd *, sec_ptr, bfd *, sec_ptr, struct bfd_link_info *);
|
| |
|
|
| bfd_boolean (*_bfd_copy_private_section_data)
|
| (bfd *, sec_ptr, bfd *, sec_ptr);
|
| |
|
|
| bfd_boolean (*_bfd_copy_private_symbol_data)
|
| (bfd *, asymbol *, bfd *, asymbol *);
|
| |
|
|
| bfd_boolean (*_bfd_copy_private_header_data)
|
| (bfd *, bfd *);
|
|
|
| bfd_boolean (*_bfd_set_private_flags) (bfd *, flagword);
|
|
|
|
|
| bfd_boolean (*_bfd_print_private_bfd_data) (bfd *, void *);
|
|
|
|
|
| #define BFD_JUMP_TABLE_CORE(NAME) \
|
| NAME##_core_file_failing_command, \
|
| NAME##_core_file_failing_signal, \
|
| NAME##_core_file_matches_executable_p
|
|
|
| char * (*_core_file_failing_command) (bfd *);
|
| int (*_core_file_failing_signal) (bfd *);
|
| bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *);
|
|
|
|
|
| #define BFD_JUMP_TABLE_ARCHIVE(NAME) \
|
| NAME##_slurp_armap, \
|
| NAME##_slurp_extended_name_table, \
|
| NAME##_construct_extended_name_table, \
|
| NAME##_truncate_arname, \
|
| NAME##_write_armap, \
|
| NAME##_read_ar_hdr, \
|
| NAME##_openr_next_archived_file, \
|
| NAME##_get_elt_at_index, \
|
| NAME##_generic_stat_arch_elt, \
|
| NAME##_update_armap_timestamp
|
|
|
| bfd_boolean (*_bfd_slurp_armap) (bfd *);
|
| bfd_boolean (*_bfd_slurp_extended_name_table) (bfd *);
|
| bfd_boolean (*_bfd_construct_extended_name_table)
|
| (bfd *, char **, bfd_size_type *, const char **);
|
| void (*_bfd_truncate_arname) (bfd *, const char *, char *);
|
| bfd_boolean (*write_armap)
|
| (bfd *, unsigned int, struct orl *, unsigned int, int);
|
| void * (*_bfd_read_ar_hdr_fn) (bfd *);
|
| bfd * (*openr_next_archived_file) (bfd *, bfd *);
|
| #define bfd_get_elt_at_index(b,i) BFD_SEND (b, _bfd_get_elt_at_index, (b,i))
|
| bfd * (*_bfd_get_elt_at_index) (bfd *, symindex);
|
| int (*_bfd_stat_arch_elt) (bfd *, struct stat *);
|
| bfd_boolean (*_bfd_update_armap_timestamp) (bfd *);
|
|
|
|
|
| #define BFD_JUMP_TABLE_SYMBOLS(NAME) \
|
| NAME##_get_symtab_upper_bound, \
|
| NAME##_canonicalize_symtab, \
|
| NAME##_make_empty_symbol, \
|
| NAME##_print_symbol, \
|
| NAME##_get_symbol_info, \
|
| NAME##_bfd_is_local_label_name, \
|
| NAME##_bfd_is_target_special_symbol, \
|
| NAME##_get_lineno, \
|
| NAME##_find_nearest_line, \
|
| _bfd_generic_find_line, \
|
| NAME##_find_inliner_info, \
|
| NAME##_bfd_make_debug_symbol, \
|
| NAME##_read_minisymbols, \
|
| NAME##_minisymbol_to_symbol
|
|
|
| long (*_bfd_get_symtab_upper_bound) (bfd *);
|
| long (*_bfd_canonicalize_symtab)
|
| (bfd *, struct bfd_symbol **);
|
| struct bfd_symbol *
|
| (*_bfd_make_empty_symbol) (bfd *);
|
| void (*_bfd_print_symbol)
|
| (bfd *, void *, struct bfd_symbol *, bfd_print_symbol_type);
|
| #define bfd_print_symbol(b,p,s,e) BFD_SEND (b, _bfd_print_symbol, (b,p,s,e))
|
| void (*_bfd_get_symbol_info)
|
| (bfd *, struct bfd_symbol *, symbol_info *);
|
| #define bfd_get_symbol_info(b,p,e) BFD_SEND (b, _bfd_get_symbol_info, (b,p,e))
|
| bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *);
|
| bfd_boolean (*_bfd_is_target_special_symbol) (bfd *, asymbol *);
|
| alent * (*_get_lineno) (bfd *, struct bfd_symbol *);
|
| bfd_boolean (*_bfd_find_nearest_line)
|
| (bfd *, struct bfd_section *, struct bfd_symbol **, bfd_vma,
|
| const char **, const char **, unsigned int *);
|
| bfd_boolean (*_bfd_find_line)
|
| (bfd *, struct bfd_symbol **, struct bfd_symbol *,
|
| const char **, unsigned int *);
|
| bfd_boolean (*_bfd_find_inliner_info)
|
| (bfd *, const char **, const char **, unsigned int *);
|
| |
| |
|
|
| asymbol * (*_bfd_make_debug_symbol)
|
| (bfd *, void *, unsigned long size);
|
| #define bfd_read_minisymbols(b, d, m, s) \
|
| BFD_SEND (b, _read_minisymbols, (b, d, m, s))
|
| long (*_read_minisymbols)
|
| (bfd *, bfd_boolean, void **, unsigned int *);
|
| #define bfd_minisymbol_to_symbol(b, d, m, f) \
|
| BFD_SEND (b, _minisymbol_to_symbol, (b, d, m, f))
|
| asymbol * (*_minisymbol_to_symbol)
|
| (bfd *, bfd_boolean, const void *, asymbol *);
|
|
|
|
|
| #define BFD_JUMP_TABLE_RELOCS(NAME) \
|
| NAME##_get_reloc_upper_bound, \
|
| NAME##_canonicalize_reloc, \
|
| NAME##_bfd_reloc_type_lookup, \
|
| NAME##_bfd_reloc_name_lookup
|
|
|
| long (*_get_reloc_upper_bound) (bfd *, sec_ptr);
|
| long (*_bfd_canonicalize_reloc)
|
| (bfd *, sec_ptr, arelent **, struct bfd_symbol **);
|
|
|
| reloc_howto_type *
|
| (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type);
|
| reloc_howto_type *
|
| (*reloc_name_lookup) (bfd *, const char *);
|
|
|
|
|
|
|
| #define BFD_JUMP_TABLE_WRITE(NAME) \
|
| NAME##_set_arch_mach, \
|
| NAME##_set_section_contents
|
|
|
| bfd_boolean (*_bfd_set_arch_mach)
|
| (bfd *, enum bfd_architecture, unsigned long);
|
| bfd_boolean (*_bfd_set_section_contents)
|
| (bfd *, sec_ptr, const void *, file_ptr, bfd_size_type);
|
|
|
|
|
| #define BFD_JUMP_TABLE_LINK(NAME) \
|
| NAME##_sizeof_headers, \
|
| NAME##_bfd_get_relocated_section_contents, \
|
| NAME##_bfd_relax_section, \
|
| NAME##_bfd_link_hash_table_create, \
|
| NAME##_bfd_link_hash_table_free, \
|
| NAME##_bfd_link_add_symbols, \
|
| NAME##_bfd_link_just_syms, \
|
| NAME##_bfd_final_link, \
|
| NAME##_bfd_link_split_section, \
|
| NAME##_bfd_gc_sections, \
|
| NAME##_bfd_merge_sections, \
|
| NAME##_bfd_is_group_section, \
|
| NAME##_bfd_discard_group, \
|
| NAME##_section_already_linked \
|
|
|
| int (*_bfd_sizeof_headers) (bfd *, struct bfd_link_info *);
|
| bfd_byte * (*_bfd_get_relocated_section_contents)
|
| (bfd *, struct bfd_link_info *, struct bfd_link_order *,
|
| bfd_byte *, bfd_boolean, struct bfd_symbol **);
|
|
|
| bfd_boolean (*_bfd_relax_section)
|
| (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *);
|
|
|
| |
|
|
| struct bfd_link_hash_table *
|
| (*_bfd_link_hash_table_create) (bfd *);
|
|
|
|
|
| void (*_bfd_link_hash_table_free) (struct bfd_link_hash_table *);
|
|
|
|
|
| bfd_boolean (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *);
|
|
|
|
|
| void (*_bfd_link_just_syms) (asection *, struct bfd_link_info *);
|
|
|
| |
|
|
| bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *);
|
|
|
|
|
| bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *);
|
|
|
|
|
| bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *);
|
|
|
|
|
| bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
|
|
|
|
|
| bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *);
|
|
|
|
|
| bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *);
|
|
|
| |
|
|
| void (*_section_already_linked) (bfd *, struct bfd_section *,
|
| struct bfd_link_info *);
|
|
|
|
|
| #define BFD_JUMP_TABLE_DYNAMIC(NAME) \
|
| NAME##_get_dynamic_symtab_upper_bound, \
|
| NAME##_canonicalize_dynamic_symtab, \
|
| NAME##_get_synthetic_symtab, \
|
| NAME##_get_dynamic_reloc_upper_bound, \
|
| NAME##_canonicalize_dynamic_reloc
|
|
|
|
|
| long (*_bfd_get_dynamic_symtab_upper_bound) (bfd *);
|
|
|
| long (*_bfd_canonicalize_dynamic_symtab)
|
| (bfd *, struct bfd_symbol **);
|
|
|
| long (*_bfd_get_synthetic_symtab)
|
| (bfd *, long, struct bfd_symbol **, long, struct bfd_symbol **,
|
| struct bfd_symbol **);
|
|
|
| long (*_bfd_get_dynamic_reloc_upper_bound) (bfd *);
|
|
|
| long (*_bfd_canonicalize_dynamic_reloc)
|
| (bfd *, arelent **, struct bfd_symbol **);
|
|
|
|
|
| const struct bfd_target * alternative_target;
|
|
|
| |
|
|
| const void *backend_data;
|
|
|
| } bfd_target;
|
|
|
| bfd_boolean bfd_set_default_target (const char *name);
|
|
|
| const bfd_target *bfd_find_target (const char *target_name, bfd *abfd);
|
|
|
| const char ** bfd_target_list (void);
|
|
|
| const bfd_target *bfd_search_for_target
|
| (int (*search_func) (const bfd_target *, void *),
|
| void *);
|
|
|
|
|
| bfd_boolean bfd_check_format (bfd *abfd, bfd_format format);
|
|
|
| bfd_boolean bfd_check_format_matches
|
| (bfd *abfd, bfd_format format, char ***matching);
|
|
|
| bfd_boolean bfd_set_format (bfd *abfd, bfd_format format);
|
|
|
| const char *bfd_format_string (bfd_format format);
|
|
|
|
|
| bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec);
|
|
|
| #define bfd_link_split_section(abfd, sec) \
|
| BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec))
|
|
|
| void bfd_section_already_linked (bfd *abfd, asection *sec,
|
| struct bfd_link_info *info);
|
|
|
| #define bfd_section_already_linked(abfd, sec, info) \
|
| BFD_SEND (abfd, _section_already_linked, (abfd, sec, info))
|
|
|
|
|
| bfd_byte *bfd_simple_get_relocated_section_contents
|
| (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table);
|
|
|
|
|
| bfd_boolean bfd_uncompress_section_contents
|
| (bfd_byte **buffer, bfd_size_type *size);
|
|
|
| #ifdef __cplusplus
|
| }
|
| #endif
|
| #endif
|
|
|