#include "bfd.h"#include "sysdep.h"#include "libbfd.h"#include "coff/mcore.h"#include "coff/internal.h"#include "coff/pe.h"#include "libcoff.h"#include "coffcode.h"


Go to the source code of this file.
| #define BADMAG | ( | x | ) | MCOREBADMAG(x) |
Definition at line 37 of file coff-mcore.c.
| #define coff_bfd_reloc_type_lookup mcore_coff_reloc_type_lookup |
Definition at line 544 of file coff-mcore.c.
| #define COFF_DEFAULT_SECTION_ALIGNMENT_POWER 2 |
Definition at line 69 of file coff-mcore.c.
| #define coff_mcore_hash_table | ( | info | ) | ((mcore_hash_table *) ((info)->hash)) |
Definition at line 222 of file coff-mcore.c.
| #define COFF_PAGE_SIZE 0x1000 |
Definition at line 555 of file coff-mcore.c.
| #define coff_relocate_section coff_mcore_relocate_section |
Definition at line 545 of file coff-mcore.c.
| #define coff_rtype_to_howto coff_mcore_rtype_to_howto |
Definition at line 546 of file coff-mcore.c.
| #define HOW2MAP | ( | bfd_rtype, | |||
| mcore_rtype | ) | case bfd_rtype: return & mcore_coff_howto_table [mcore_rtype] |
Definition at line 268 of file coff-mcore.c.
Referenced by mcore_coff_reloc_type_lookup(), and ppc_coff_reloc_type_lookup().
| #define MINUS_ONE (((bfd_vma)0) - 1) |
Definition at line 73 of file coff-mcore.c.
Definition at line 40 of file coff-mcore.c.
| #define RTYPE2HOWTO | ( | cache_ptr, | |||
| dst | ) | (cache_ptr)->howto = mcore_coff_howto_table + (dst)->r_type; |
Definition at line 293 of file coff-mcore.c.
| #define SELECT_RELOC | ( | internal, | |||
| howto | ) | {internal.r_type = howto->type;} |
Definition at line 548 of file coff-mcore.c.
| #define SWAP_IN_RELOC_OFFSET H_GET_32 |
Definition at line 552 of file coff-mcore.c.
| #define SWAP_OUT_RELOC_OFFSET H_PUT_32 |
Definition at line 553 of file coff-mcore.c.
| #define TOC_LOAD_ADJUSTMENT (-32768) |
| #define TOC_SECTION_NAME ".private.toc" |
| static bfd_boolean coff_mcore_relocate_section | ( | bfd * | output_bfd, | |
| struct bfd_link_info * | info, | |||
| bfd * | input_bfd, | |||
| asection * | input_section, | |||
| bfd_byte * | contents, | |||
| struct internal_reloc * | relocs, | |||
| struct internal_syment * | syms, | |||
| asection ** | sections | |||
| ) | [static] |
Definition at line 347 of file coff-mcore.c.
References _, _bfd_error_handler, _bfd_final_link_relocate(), _bfd_relocate_contents(), internal_syment::_n, internal_syment::_n_n, internal_syment::_n_name, abort, addend, bfd_link_info::base_file, bfd_big_endian, bfd_coff_rtype_to_howto, BFD_ENDIAN_UNKNOWN, bfd_error_bad_value, bfd_error_wrong_format, bfd_link_hash_defined, bfd_link_hash_defweak, bfd_reloc_ok, bfd_reloc_overflow, bfd_set_error(), buf, bfd_target::byteorder, bfd_link_info::callbacks, bfd_link_hash_entry::def, FALSE, h, IMAGE_REL_MCORE_ABSOLUTE, IMAGE_REL_MCORE_ADDR32, IMAGE_REL_MCORE_PCREL_32, IMAGE_REL_MCORE_PCREL_IMM11BY2, IMAGE_REL_MCORE_PCREL_IMM4BY2, IMAGE_REL_MCORE_PCREL_IMM8BY4, IMAGE_REL_MCORE_PCREL_JSR_IMM11BY2, IMAGE_REL_MCORE_RVA, in_reloc_p(), mcore_emit_base_file_entry(), internal_syment::n_value, reloc_howto_struct::name, NULL, obj_coff_strings, obj_coff_sym_hashes, bfd_section::output_offset, bfd_section::output_section, pe_data, internal_reloc::r_symndx, internal_reloc::r_type, internal_reloc::r_vaddr, rel, bfd_section::reloc_count, bfd_link_callbacks::reloc_overflow, bfd_link_info::relocatable, coff_link_hash_entry::root, bfd_link_hash_entry::root, sec, bfd_hash_entry::string, strncpy(), sym, SYMNMLEN, TRUE, bfd_link_hash_entry::type, bfd_link_hash_entry::u, bfd_link_callbacks::undefined_symbol, val, bfd_section::vma, and bfd::xvec.
| static reloc_howto_type* coff_mcore_rtype_to_howto | ( | abfd | , | |
| asection * | sec, | |||
| struct internal_reloc * | rel, | |||
| h | , | |||
| struct internal_syment * | sym, | |||
| bfd_vma * | addendp | |||
| ) | [static] |
Definition at line 297 of file coff-mcore.c.
References IMAGE_REL_MCORE_RVA, internal_syment::n_scnum, internal_syment::n_value, NULL, NUM_ELEM, bfd_section::output_section, bfd_section::owner, reloc_howto_struct::pc_relative, pe_data, internal_reloc::r_type, and bfd_section::vma.
| CREATE_BIG_COFF_TARGET_VEC | ( | TARGET_BIG_SYM | , | |
| TARGET_BIG_NAME | , | |||
| D_PAGED | , | |||
| (SEC_CODE|SEC_DATA|SEC_DEBUGGING|SEC_READONLY|SEC_LINK_ONCE|SEC_LINK_DUPLICATES) | , | |||
| 0 | , | |||
| & | TARGET_LITTLE_SYM, | |||
| COFF_SWAP_TABLE | ||||
| ) |
| static bfd_boolean in_reloc_p | ( | abfd | , | |
| reloc_howto_type * | howto | |||
| ) | [static] |
Definition at line 338 of file coff-mcore.c.
References IMAGE_REL_MCORE_RVA, reloc_howto_struct::pc_relative, and reloc_howto_struct::type.
Referenced by coff_mcore_relocate_section(), and coff_ppc_relocate_section().
| static reloc_howto_type* mcore_coff_reloc_type_lookup | ( | abfd | , | |
| bfd_reloc_code_real_type | code | |||
| ) | [static] |
Definition at line 272 of file coff-mcore.c.
References BFD_RELOC_32, BFD_RELOC_32_PCREL, BFD_RELOC_MCORE_PCREL_IMM11BY2, BFD_RELOC_MCORE_PCREL_IMM4BY2, BFD_RELOC_MCORE_PCREL_IMM8BY4, BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2, BFD_RELOC_RVA, HOW2MAP, IMAGE_REL_MCORE_ADDR32, IMAGE_REL_MCORE_PCREL_32, IMAGE_REL_MCORE_PCREL_IMM11BY2, IMAGE_REL_MCORE_PCREL_IMM4BY2, IMAGE_REL_MCORE_PCREL_IMM8BY4, IMAGE_REL_MCORE_PCREL_JSR_IMM11BY2, IMAGE_REL_MCORE_RVA, and NULL.
| static bfd_reloc_status_type mcore_coff_unsupported_reloc | ( | bfd * | abfd, | |
| arelent * | reloc_entry, | |||
| symbol | , | |||
| data | , | |||
| input_section | , | |||
| output_bfd | , | |||
| error_message | ||||
| ) | [static] |
Definition at line 247 of file coff-mcore.c.
References _, _bfd_error_handler, BFD_ASSERT, bfd_reloc_notsupported, reloc_cache_entry::howto, reloc_howto_struct::name, and reloc_howto_struct::type.
| static void mcore_emit_base_file_entry | ( | struct bfd_link_info * | info, | |
| bfd * | output_bfd, | |||
| asection * | input_section, | |||
| bfd_vma | reloc_offset | |||
| ) | [static] |
Definition at line 229 of file coff-mcore.c.
References addr(), coff_data, fwrite, bfd_section::output_offset, bfd_section::output_section, pe, pe_data, and bfd_section::vma.
Referenced by coff_mcore_relocate_section().
| static bfd_boolean in_reloc_p PARAMS | ( | (bfd *, reloc_howto_type *) | ) | [static] |
| static void mcore_emit_base_file_entry PARAMS | ( | (struct bfd_link_info *, bfd *, asection *, bfd_vma) | ) | [static] |
| static reloc_howto_type* coff_mcore_rtype_to_howto PARAMS | ( | (bfd *, asection *, struct internal_reloc *, struct coff_link_hash_entry *, struct internal_syment *, bfd_vma *) | ) | [static] |
| static reloc_howto_type* mcore_coff_reloc_type_lookup PARAMS | ( | (bfd *, bfd_reloc_code_real_type) | ) | [static] |
| static bfd_boolean coff_mcore_relocate_section PARAMS | ( | (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, struct internal_reloc *, struct internal_syment *, asection **) | ) | [static] |
| static bfd_reloc_status_type mcore_coff_unsupported_reloc PARAMS | ( | (bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **) | ) | [static] |
| bfd_boolean mcore_bfd_coff_final_link PARAMS | ( | (bfd *, struct bfd_link_info *) | ) |
Definition at line 566 of file coff-mcore.c.
reloc_howto_type mcore_coff_howto_table[] [static] |
Definition at line 75 of file coff-mcore.c.
| SEC_CODE SEC_DATA SEC_DEBUGGING SEC_READONLY SEC_LINK_ONCE SEC_LINK_DUPLICATES |
Definition at line 566 of file coff-mcore.c.
| SEC_CODE SEC_DATA SEC_DEBUGGING SEC_READONLY SEC_LINK_ONCE & TARGET_BIG_SYM |
Definition at line 566 of file coff-mcore.c.
Definition at line 566 of file coff-mcore.c.
| const bfd_target TARGET_LITTLE_SYM |
1.5.6