Line 1... |
Line 1... |
/* Copyright 2002, 2007 Free Software Foundation, Inc.
|
/* Copyright 2002, 2005, 2007, 2009 Free Software Foundation, Inc.
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
Line 66... |
Line 66... |
BADMAG. */
|
BADMAG. */
|
#define BADMAG(x) COFF2_BADMAG(x)
|
#define BADMAG(x) COFF2_BADMAG(x)
|
#include "coffcode.h"
|
#include "coffcode.h"
|
|
|
/* COFF0 differs in file/section header size and relocation entry size. */
|
/* COFF0 differs in file/section header size and relocation entry size. */
|
static const bfd_coff_backend_data ticoff0_swap_table =
|
static bfd_coff_backend_data ticoff0_swap_table =
|
{
|
{
|
coff_SWAP_aux_in, coff_SWAP_sym_in, coff_SWAP_lineno_in,
|
coff_SWAP_aux_in, coff_SWAP_sym_in, coff_SWAP_lineno_in,
|
coff_SWAP_aux_out, coff_SWAP_sym_out,
|
coff_SWAP_aux_out, coff_SWAP_sym_out,
|
coff_SWAP_lineno_out, coff_SWAP_reloc_out,
|
coff_SWAP_lineno_out, coff_SWAP_reloc_out,
|
coff_SWAP_filehdr_out, coff_SWAP_aouthdr_out,
|
coff_SWAP_filehdr_out, coff_SWAP_aouthdr_out,
|
Line 79... |
Line 79... |
#ifdef COFF_LONG_FILENAMES
|
#ifdef COFF_LONG_FILENAMES
|
TRUE,
|
TRUE,
|
#else
|
#else
|
FALSE,
|
FALSE,
|
#endif
|
#endif
|
#ifdef COFF_LONG_SECTION_NAMES
|
COFF_DEFAULT_LONG_SECTION_NAMES,
|
TRUE,
|
|
#else
|
|
FALSE,
|
|
#endif
|
#endif
|
COFF_DEFAULT_SECTION_ALIGNMENT_POWER,
|
COFF_DEFAULT_SECTION_ALIGNMENT_POWER,
|
coff_SWAP_filehdr_in, coff_SWAP_aouthdr_in, coff_SWAP_scnhdr_in,
|
coff_SWAP_filehdr_in, coff_SWAP_aouthdr_in, coff_SWAP_scnhdr_in,
|
coff_SWAP_reloc_in, ticoff0_bad_format_hook, coff_set_arch_mach_hook,
|
coff_SWAP_reloc_in, ticoff0_bad_format_hook, coff_set_arch_mach_hook,
|
coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook,
|
coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook,
|
Line 97... |
Line 94... |
coff_adjust_symndx, coff_link_add_one_symbol,
|
coff_adjust_symndx, coff_link_add_one_symbol,
|
coff_link_output_has_begun, coff_final_link_postscript
|
coff_link_output_has_begun, coff_final_link_postscript
|
};
|
};
|
|
|
/* COFF1 differs in section header size. */
|
/* COFF1 differs in section header size. */
|
static const bfd_coff_backend_data ticoff1_swap_table =
|
static bfd_coff_backend_data ticoff1_swap_table =
|
{
|
{
|
coff_SWAP_aux_in, coff_SWAP_sym_in, coff_SWAP_lineno_in,
|
coff_SWAP_aux_in, coff_SWAP_sym_in, coff_SWAP_lineno_in,
|
coff_SWAP_aux_out, coff_SWAP_sym_out,
|
coff_SWAP_aux_out, coff_SWAP_sym_out,
|
coff_SWAP_lineno_out, coff_SWAP_reloc_out,
|
coff_SWAP_lineno_out, coff_SWAP_reloc_out,
|
coff_SWAP_filehdr_out, coff_SWAP_aouthdr_out,
|
coff_SWAP_filehdr_out, coff_SWAP_aouthdr_out,
|
Line 110... |
Line 107... |
#ifdef COFF_LONG_FILENAMES
|
#ifdef COFF_LONG_FILENAMES
|
TRUE,
|
TRUE,
|
#else
|
#else
|
FALSE,
|
FALSE,
|
#endif
|
#endif
|
#ifdef COFF_LONG_SECTION_NAMES
|
COFF_DEFAULT_LONG_SECTION_NAMES,
|
TRUE,
|
|
#else
|
|
FALSE,
|
|
#endif
|
|
COFF_DEFAULT_SECTION_ALIGNMENT_POWER,
|
COFF_DEFAULT_SECTION_ALIGNMENT_POWER,
|
coff_SWAP_filehdr_in, coff_SWAP_aouthdr_in, coff_SWAP_scnhdr_in,
|
coff_SWAP_filehdr_in, coff_SWAP_aouthdr_in, coff_SWAP_scnhdr_in,
|
coff_SWAP_reloc_in, ticoff1_bad_format_hook, coff_set_arch_mach_hook,
|
coff_SWAP_reloc_in, ticoff1_bad_format_hook, coff_set_arch_mach_hook,
|
coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook,
|
coff_mkobject_hook, styp_to_sec_flags, coff_set_alignment_hook,
|
coff_slurp_symbol_table, symname_in_debug_hook, coff_pointerize_aux_hook,
|
coff_slurp_symbol_table, symname_in_debug_hook, coff_pointerize_aux_hook,
|