2000-11-14 Kazu Hirata <kazu@hxi.com>

* coff-pmac.c: Fix formatting.
	* coff-ppc.c: Likewise.
This commit is contained in:
Kazu Hirata
2000-11-14 19:23:49 +00:00
parent 1ce7de8b08
commit 43646c9de2
3 changed files with 354 additions and 366 deletions

View File

@ -1,3 +1,8 @@
2000-11-14 Kazu Hirata <kazu@hxi.com>
* coff-pmac.c: Fix formatting.
* coff-ppc.c: Likewise.
2000-11-13 H.J. Lu <hjl@gnu.org> 2000-11-13 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_add_object_symbols): Also add indirect * elflink.h (elf_link_add_object_symbols): Also add indirect

View File

@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Tweak coffcode.h based on this being a PowerMac instead of RS/6000. */ /* Tweak coffcode.h based on this being a PowerMac instead of RS/6000. */
#define POWERMAC #define POWERMAC
@ -33,4 +32,3 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "libcoff.h" #include "libcoff.h"
#include "xcoff-target.h" #include "xcoff-target.h"

View File

@ -33,7 +33,6 @@ Boston, MA 02111-1307, USA. */
not produce the right glue code for dll function calls. not produce the right glue code for dll function calls.
*/ */
#include "bfd.h" #include "bfd.h"
#include "sysdep.h" #include "sysdep.h"
@ -75,7 +74,6 @@ extern void dump_toc PARAMS ((PTR));
#define MARK_AS_WRITTEN(x) ((x) |= 1) #define MARK_AS_WRITTEN(x) ((x) |= 1)
#define MAKE_ADDR_AGAIN(x) ((x) &= ~1) #define MAKE_ADDR_AGAIN(x) ((x) &= ~1)
/* Turn on this check if you suspect something amiss in the hash tables */ /* Turn on this check if you suspect something amiss in the hash tables */
#ifdef DEBUG_HASH #ifdef DEBUG_HASH
@ -93,7 +91,6 @@ extern void dump_toc PARAMS ((PTR));
abort(); \ abort(); \
} }
#else #else
#define HASH_CHECK_DCL #define HASH_CHECK_DCL
@ -120,7 +117,6 @@ struct ppc_coff_link_hash_entry
HASH_CHECK_DCL HASH_CHECK_DCL
}; };
/* PE linker hash table. */ /* PE linker hash table. */
struct ppc_coff_link_hash_table struct ppc_coff_link_hash_table
@ -391,8 +387,6 @@ static bfd_reloc_status_type ppc_imglue_reloc PARAMS ((bfd *abfd,
bfd *output_bfd, bfd *output_bfd,
char **error)); char **error));
static boolean in_reloc_p PARAMS((bfd *abfd, reloc_howto_type *howto)); static boolean in_reloc_p PARAMS((bfd *abfd, reloc_howto_type *howto));
@ -776,7 +770,6 @@ static reloc_howto_type ppc_coff_howto_table[] =
}; };
/* Some really cheezy macros that can be turned on to test stderr :-) */ /* Some really cheezy macros that can be turned on to test stderr :-) */
@ -822,7 +815,6 @@ static reloc_howto_type ppc_coff_howto_table[] =
#define DUMP_RELOC2(n,r) #define DUMP_RELOC2(n,r)
#endif #endif
/* toc construction and management routines */ /* toc construction and management routines */
@ -1079,7 +1071,6 @@ pe_ppc_reloc (abfd, reloc_entry, symbol_in, data, input_section, output_bfd,
return(bfd_reloc_dangerous); return(bfd_reloc_dangerous);
} }
sym_value = get_symbol_value(symbol_in); sym_value = get_symbol_value(symbol_in);
return(bfd_reloc_ok); return(bfd_reloc_ok);
@ -1356,7 +1347,6 @@ coff_ppc_relocate_section (output_bfd, info, input_bfd, input_section,
fwrite (&addr, 1,4, (FILE *) info->base_file); fwrite (&addr, 1,4, (FILE *) info->base_file);
} }
/* FIXME: this test is conservative */ /* FIXME: this test is conservative */
if ( (r_flags & IMAGE_REL_PPC_TOCDEFN) != IMAGE_REL_PPC_TOCDEFN && if ( (r_flags & IMAGE_REL_PPC_TOCDEFN) != IMAGE_REL_PPC_TOCDEFN &&
our_toc_offset > toc_section->_raw_size) our_toc_offset > toc_section->_raw_size)
@ -1797,7 +1787,6 @@ ppc_process_before_allocation (abfd, info)
#endif #endif
static bfd_reloc_status_type static bfd_reloc_status_type
ppc_refhi_reloc (abfd, ppc_refhi_reloc (abfd,
reloc_entry, reloc_entry,
@ -2017,7 +2006,6 @@ ppc_imglue_reloc (abfd,
#define MAX_RELOC_INDEX \ #define MAX_RELOC_INDEX \
(sizeof(ppc_coff_howto_table) / sizeof(ppc_coff_howto_table[0]) - 1) (sizeof(ppc_coff_howto_table) / sizeof(ppc_coff_howto_table[0]) - 1)
/* FIXME: There is a possiblity that when we read in a reloc from a file, /* FIXME: There is a possiblity that when we read in a reloc from a file,
that there are some bits encoded in the upper portion of the that there are some bits encoded in the upper portion of the
type field. Not yet implemented. type field. Not yet implemented.
@ -2165,7 +2153,6 @@ coff_ppc_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
return howto; return howto;
} }
/* a cheesy little macro to make the code a little more readable */ /* a cheesy little macro to make the code a little more readable */
#define HOW2MAP(bfd_rtype,ppc_rtype) \ #define HOW2MAP(bfd_rtype,ppc_rtype) \
case bfd_rtype: return &ppc_coff_howto_table[ppc_rtype] case bfd_rtype: return &ppc_coff_howto_table[ppc_rtype]
@ -2335,7 +2322,6 @@ ppc_get_last()
precise form of comment. krk@cygnus.com precise form of comment. krk@cygnus.com
*/ */
/* Do the final link step. */ /* Do the final link step. */
boolean boolean
@ -2955,7 +2941,6 @@ const bfd_target TARGET_BIG_SYM =
BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_LINK (coff),
BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
/* Alternative_target. */ /* Alternative_target. */
#ifdef TARGET_LITTLE_SYM #ifdef TARGET_LITTLE_SYM
& TARGET_LITTLE_SYM, & TARGET_LITTLE_SYM,