Fix formatting.

This commit is contained in:
Nick Clifton 2000-06-27 01:31:59 +00:00
parent a0c0ddf7e8
commit cc040812f5
4 changed files with 113 additions and 119 deletions

View File

@ -1,3 +1,8 @@
2000-06-26 Kazu Hirata <kazu@hxi.com>
* coff-h8300.c: Fix formatting.
* cpu-h8300.c: Likewise.
2000-06-24 Alexandre Oliva <aoliva@redhat.com> 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
* elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)' * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'

View File

@ -192,14 +192,14 @@ h8300_coff_link_hash_table_create (abfd)
return &ret->root.root; return &ret->root.root;
} }
/* special handling for H8/300 relocs. /* Special handling for H8/300 relocs.
We only come here for pcrel stuff and return normally if not an -r link. We only come here for pcrel stuff and return normally if not an -r link.
When doing -r, we can't do any arithmetic for the pcrel stuff, because When doing -r, we can't do any arithmetic for the pcrel stuff, because
the code in reloc.c assumes that we can manipulate the targets of the code in reloc.c assumes that we can manipulate the targets of
the pcrel branches. This isn't so, since the H8/300 can do relaxing, the pcrel branches. This isn't so, since the H8/300 can do relaxing,
which means that the gap after the instruction may not be enough to which means that the gap after the instruction may not be enough to
contain the offset required for the branch, so we have to use the only contain the offset required for the branch, so we have to use the only
the addend until the final link */ the addend until the final link. */
static bfd_reloc_status_type static bfd_reloc_status_type
special (abfd, reloc_entry, symbol, data, input_section, output_bfd, special (abfd, reloc_entry, symbol, data, input_section, output_bfd,
@ -253,8 +253,7 @@ static reloc_howto_type howto_table[] =
HOWTO (R_JMP_DEL, 0, 0, 8, true, 0, complain_overflow_signed, special, "Deleted jump", false, 0x000000ff, 0x000000ff, true), HOWTO (R_JMP_DEL, 0, 0, 8, true, 0, complain_overflow_signed, special, "Deleted jump", false, 0x000000ff, 0x000000ff, true),
}; };
/* Turn a howto into a reloc number. */
/* Turn a howto into a reloc number */
#define SELECT_RELOC(x,howto) \ #define SELECT_RELOC(x,howto) \
{ x.r_type = select_reloc(howto); } { x.r_type = select_reloc(howto); }
@ -263,16 +262,13 @@ static reloc_howto_type howto_table[] =
#define H8300 1 /* Customize coffcode.h */ #define H8300 1 /* Customize coffcode.h */
#define __A_MAGIC_SET__ #define __A_MAGIC_SET__
/* Code to swap in the reloc. */
/* Code to swap in the reloc */
#define SWAP_IN_RELOC_OFFSET bfd_h_get_32 #define SWAP_IN_RELOC_OFFSET bfd_h_get_32
#define SWAP_OUT_RELOC_OFFSET bfd_h_put_32 #define SWAP_OUT_RELOC_OFFSET bfd_h_put_32
#define SWAP_OUT_RELOC_EXTRA(abfd, src, dst) \ #define SWAP_OUT_RELOC_EXTRA(abfd, src, dst) \
dst->r_stuff[0] = 'S'; \ dst->r_stuff[0] = 'S'; \
dst->r_stuff[1] = 'C'; dst->r_stuff[1] = 'C';
static int static int
select_reloc (howto) select_reloc (howto)
reloc_howto_type *howto; reloc_howto_type *howto;
@ -280,8 +276,7 @@ select_reloc (howto)
return howto->type; return howto->type;
} }
/* Code to turn a r_type into a howto ptr, uses the above howto table /* Code to turn a r_type into a howto ptr, uses the above howto table. */
*/
static void static void
rtype2howto (internal, dst) rtype2howto (internal, dst)
@ -358,14 +353,11 @@ rtype2howto (internal, dst)
#define RTYPE2HOWTO(internal, relocentry) rtype2howto(internal,relocentry) #define RTYPE2HOWTO(internal, relocentry) rtype2howto(internal,relocentry)
/* Perform any necessary magic to the addend in a reloc entry. */
/* Perform any necessary magic to the addend in a reloc entry */
#define CALC_ADDEND(abfd, symbol, ext_reloc, cache_ptr) \ #define CALC_ADDEND(abfd, symbol, ext_reloc, cache_ptr) \
cache_ptr->addend = ext_reloc.r_offset; cache_ptr->addend = ext_reloc.r_offset;
#define RELOC_PROCESSING(relent,reloc,symbols,abfd,section) \ #define RELOC_PROCESSING(relent,reloc,symbols,abfd,section) \
reloc_processing(relent, reloc, symbols, abfd, section) reloc_processing(relent, reloc, symbols, abfd, section)
@ -389,12 +381,12 @@ reloc_processing (relent, reloc, symbols, abfd, section)
relent->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr; relent->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
} }
relent->addend = reloc->r_offset; relent->addend = reloc->r_offset;
relent->address -= section->vma; relent->address -= section->vma;
/* relent->section = 0;*/ #if 0
relent->section = 0;
#endif
} }
static boolean static boolean
@ -423,7 +415,6 @@ h8300_symbol_address_p (abfd, input_section, address)
return false; return false;
} }
/* If RELOC represents a relaxable instruction/reloc, change it into /* If RELOC represents a relaxable instruction/reloc, change it into
the relaxed reloc, notify the linker that symbol addresses the relaxed reloc, notify the linker that symbol addresses
have changed (bfd_perform_slip) and return how much the current have changed (bfd_perform_slip) and return how much the current
@ -458,7 +449,6 @@ h8300_reloc16_estimate(abfd, input_section, reloc, shrink, link_info)
/* Only examine the relocs which might be relaxable. */ /* Only examine the relocs which might be relaxable. */
switch (reloc->howto->type) switch (reloc->howto->type)
{ {
/* This is the 16/24 bit absolute branch which could become an 8 bit /* This is the 16/24 bit absolute branch which could become an 8 bit
pc-relative branch. */ pc-relative branch. */
case R_JMP1: case R_JMP1:
@ -481,7 +471,6 @@ h8300_reloc16_estimate(abfd, input_section, reloc, shrink, link_info)
closer if we do relax this branch. */ closer if we do relax this branch. */
if ((int)gap >= -128 && (int)gap <= 128 ) if ((int)gap >= -128 && (int)gap <= 128 )
{ {
/* It's possible we may be able to eliminate this branch entirely; /* It's possible we may be able to eliminate this branch entirely;
if the previous instruction is a branch around this instruction, if the previous instruction is a branch around this instruction,
and there's no label at this instruction, then we can reverse and there's no label at this instruction, then we can reverse
@ -637,7 +626,6 @@ h8300_reloc16_estimate(abfd, input_section, reloc, shrink, link_info)
return shrink; return shrink;
} }
/* Handle relocations for the H8/300, including relocs for relaxed /* Handle relocations for the H8/300, including relocs for relaxed
instructions. instructions.
@ -663,7 +651,6 @@ h8300_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr,
switch (reloc->howto->type) switch (reloc->howto->type)
{ {
/* Generic 8bit pc-relative relocation. */ /* Generic 8bit pc-relative relocation. */
case R_PCRBYTE: case R_PCRBYTE:
/* Get the address of the target of this branch. */ /* Get the address of the target of this branch. */
@ -772,7 +759,7 @@ h8300_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr,
case R_MOVL1: case R_MOVL1:
case R_RELLONG: case R_RELLONG:
/* Get the address of the target of this branch. */ /* Get the address of the target of this branch. */
value = bfd_coff_reloc16_get_value (reloc, link_info, input_section), value = bfd_coff_reloc16_get_value (reloc, link_info, input_section);
bfd_put_32 (abfd, value, data + dst_address); bfd_put_32 (abfd, value, data + dst_address);
dst_address += 4; dst_address += 4;
src_address += 4; src_address += 4;
@ -1162,7 +1149,6 @@ h8300_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr,
*dst_ptr = dst_address; *dst_ptr = dst_address;
} }
/* Routine for the h8300 linker. /* Routine for the h8300 linker.
This routine is necessary to handle the special R_MEM_INDIRECT This routine is necessary to handle the special R_MEM_INDIRECT
@ -1342,12 +1328,10 @@ h8300_bfd_link_add_symbols(abfd, info)
#define COFF_LONG_FILENAMES #define COFF_LONG_FILENAMES
#include "coffcode.h" #include "coffcode.h"
#undef coff_bfd_get_relocated_section_contents #undef coff_bfd_get_relocated_section_contents
#undef coff_bfd_relax_section #undef coff_bfd_relax_section
#define coff_bfd_get_relocated_section_contents \ #define coff_bfd_get_relocated_section_contents \
bfd_coff_reloc16_get_relocated_section_contents bfd_coff_reloc16_get_relocated_section_contents
#define coff_bfd_relax_section bfd_coff_reloc16_relax_section #define coff_bfd_relax_section bfd_coff_reloc16_relax_section
CREATE_BIG_COFF_TARGET_VEC (h8300coff_vec, "coff-h8300", BFD_IS_RELAXABLE, 0, '_', NULL) CREATE_BIG_COFF_TARGET_VEC (h8300coff_vec, "coff-h8300", BFD_IS_RELAXABLE, 0, '_', NULL)

View File

@ -65,10 +65,9 @@ h8300_scan (info, string)
} }
} }
/* This routine is provided two arch_infos and works out the machine
/* This routine is provided two arch_infos and works out the which would be compatible with both and returns a pointer to its
machine which would be compatible with both and returns a pointer info structure. */
to its info structure */
static const bfd_arch_info_type * static const bfd_arch_info_type *
compatible (in, out) compatible (in, out)
@ -95,7 +94,9 @@ static const bfd_arch_info_type h8300_info_struct =
true, /* the default machine */ true, /* the default machine */
compatible, compatible,
h8300_scan, h8300_scan,
/* local_bfd_reloc_type_lookup, */ #if 0
local_bfd_reloc_type_lookup,
#endif
0, 0,
}; };
@ -112,7 +113,9 @@ static const bfd_arch_info_type h8300h_info_struct =
false, /* the default machine */ false, /* the default machine */
compatible, compatible,
h8300_scan, h8300_scan,
/* local_bfd_reloc_type_lookup, */ #if 0
local_bfd_reloc_type_lookup,
#endif
&h8300_info_struct, &h8300_info_struct,
}; };
@ -129,6 +132,8 @@ const bfd_arch_info_type bfd_h8300_arch =
false, /* the default machine */ false, /* the default machine */
compatible, compatible,
h8300_scan, h8300_scan,
/* local_bfd_reloc_type_lookup, */ #if 0
local_bfd_reloc_type_lookup,
#endif
&h8300h_info_struct, &h8300h_info_struct,
}; };

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2000-06-18 17:36-0700\n" "POT-Creation-Date: 2000-06-26 18:29-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -360,7 +360,7 @@ msgstr ""
msgid "uncertain calling convention for non-COFF symbol" msgid "uncertain calling convention for non-COFF symbol"
msgstr "" msgstr ""
#: cofflink.c:518 elflink.h:1567 #: cofflink.c:518 elflink.h:1623
#, c-format #, c-format
msgid "Warning: type of symbol `%s' changed from %d to %d in %s" msgid "Warning: type of symbol `%s' changed from %d to %d in %s"
msgstr "" msgstr ""
@ -380,7 +380,7 @@ msgstr ""
msgid "%s: warning: %s: line number overflow: 0x%lx > 0xffff" msgid "%s: warning: %s: line number overflow: 0x%lx > 0xffff"
msgstr "" msgstr ""
#: coff-mips.c:875 elf32-mips.c:1406 #: coff-mips.c:875 elf32-mips.c:1405
msgid "GP relative relocation when _gp not defined" msgid "GP relative relocation when _gp not defined"
msgstr "" msgstr ""
@ -641,7 +641,7 @@ msgid "does"
msgstr "" msgstr ""
#. Ignore init flag - it may not be set, despite the flags field containing valid data. #. Ignore init flag - it may not be set, despite the flags field containing valid data.
#: elf32-arm.h:2125 elf32-m68k.c:430 elf32-mips.c:2621 #: elf32-arm.h:2125 elf32-m68k.c:430 elf32-mips.c:2620
#, c-format #, c-format
msgid "private flags = %lx:" msgid "private flags = %lx:"
msgstr "" msgstr ""
@ -753,124 +753,124 @@ msgstr ""
msgid "%s: Unknown relocation type %d\n" msgid "%s: Unknown relocation type %d\n"
msgstr "" msgstr ""
#: elf32-mips.c:1565 #: elf32-mips.c:1564
msgid "32bits gp relative relocation occurs for an external symbol" msgid "32bits gp relative relocation occurs for an external symbol"
msgstr "" msgstr ""
#: elf32-mips.c:1714 #: elf32-mips.c:1713
#, c-format #, c-format
msgid "Linking mips16 objects into %s format is not supported" msgid "Linking mips16 objects into %s format is not supported"
msgstr "" msgstr ""
#: elf32-mips.c:2507 #: elf32-mips.c:2506
#, c-format #, c-format
msgid "%s: linking PIC files with non-PIC files" msgid "%s: linking PIC files with non-PIC files"
msgstr "" msgstr ""
#: elf32-mips.c:2517 #: elf32-mips.c:2516
#, c-format #, c-format
msgid "%s: linking abicalls files with non-abicalls files" msgid "%s: linking abicalls files with non-abicalls files"
msgstr "" msgstr ""
#: elf32-mips.c:2547 #: elf32-mips.c:2546
#, c-format #, c-format
msgid "%s: ISA mismatch (-mips%d) with previous modules (-mips%d)" msgid "%s: ISA mismatch (-mips%d) with previous modules (-mips%d)"
msgstr "" msgstr ""
#: elf32-mips.c:2556 #: elf32-mips.c:2555
#, c-format #, c-format
msgid "%s: ISA mismatch (%d) with previous modules (%d)" msgid "%s: ISA mismatch (%d) with previous modules (%d)"
msgstr "" msgstr ""
#: elf32-mips.c:2579 #: elf32-mips.c:2578
#, c-format #, c-format
msgid "%s: ABI mismatch: linking %s module with previous %s modules" msgid "%s: ABI mismatch: linking %s module with previous %s modules"
msgstr "" msgstr ""
#: elf32-mips.c:2593 elf32-ppc.c:1464 elf64-sparc.c:2957 #: elf32-mips.c:2592 elf32-ppc.c:1464 elf64-sparc.c:2957
#, c-format #, c-format
msgid "%s: uses different e_flags (0x%lx) fields than previous modules (0x%lx)" msgid "%s: uses different e_flags (0x%lx) fields than previous modules (0x%lx)"
msgstr "" msgstr ""
#: elf32-mips.c:2624 #: elf32-mips.c:2623
msgid " [abi=O32]" msgid " [abi=O32]"
msgstr "" msgstr ""
#: elf32-mips.c:2626 #: elf32-mips.c:2625
msgid " [abi=O64]" msgid " [abi=O64]"
msgstr "" msgstr ""
#: elf32-mips.c:2628 #: elf32-mips.c:2627
msgid " [abi=EABI32]" msgid " [abi=EABI32]"
msgstr "" msgstr ""
#: elf32-mips.c:2630 #: elf32-mips.c:2629
msgid " [abi=EABI64]" msgid " [abi=EABI64]"
msgstr "" msgstr ""
#: elf32-mips.c:2632 #: elf32-mips.c:2631
msgid " [abi unknown]" msgid " [abi unknown]"
msgstr "" msgstr ""
#: elf32-mips.c:2634 #: elf32-mips.c:2633
msgid " [abi=N32]" msgid " [abi=N32]"
msgstr "" msgstr ""
#: elf32-mips.c:2636 #: elf32-mips.c:2635
msgid " [abi=64]" msgid " [abi=64]"
msgstr "" msgstr ""
#: elf32-mips.c:2638 #: elf32-mips.c:2637
msgid " [no abi set]" msgid " [no abi set]"
msgstr "" msgstr ""
#: elf32-mips.c:2641 #: elf32-mips.c:2640
msgid " [mips1]" msgid " [mips1]"
msgstr "" msgstr ""
#: elf32-mips.c:2643 #: elf32-mips.c:2642
msgid " [mips2]" msgid " [mips2]"
msgstr "" msgstr ""
#: elf32-mips.c:2645 #: elf32-mips.c:2644
msgid " [mips3]" msgid " [mips3]"
msgstr "" msgstr ""
#: elf32-mips.c:2647 #: elf32-mips.c:2646
msgid " [mips4]" msgid " [mips4]"
msgstr "" msgstr ""
#: elf32-mips.c:2649 #: elf32-mips.c:2648
msgid " [unknown ISA]" msgid " [unknown ISA]"
msgstr "" msgstr ""
#: elf32-mips.c:2652 #: elf32-mips.c:2651
msgid " [32bitmode]" msgid " [32bitmode]"
msgstr "" msgstr ""
#: elf32-mips.c:2654 #: elf32-mips.c:2653
msgid " [not 32bitmode]" msgid " [not 32bitmode]"
msgstr "" msgstr ""
#: elf32-mips.c:4257 #: elf32-mips.c:4295
msgid "static procedure (no name)" msgid "static procedure (no name)"
msgstr "" msgstr ""
#: elf32-mips.c:4874 elf64-alpha.c:4367 #: elf32-mips.c:4912 elf64-alpha.c:4367
#, c-format #, c-format
msgid "%s: illegal section name `%s'" msgid "%s: illegal section name `%s'"
msgstr "" msgstr ""
#: elf32-mips.c:5401 #: elf32-mips.c:5457
msgid "not enough GOT space for local GOT entries" msgid "not enough GOT space for local GOT entries"
msgstr "" msgstr ""
#: elf32-mips.c:6495 #: elf32-mips.c:6571
#, c-format #, c-format
msgid "%s: %s+0x%lx: jump to stub routine which is not jal" msgid "%s: %s+0x%lx: jump to stub routine which is not jal"
msgstr "" msgstr ""
#: elf32-mips.c:7523 #: elf32-mips.c:7600
#, c-format #, c-format
msgid "%s: CALL16 reloc at 0x%lx not against global symbol" msgid "%s: CALL16 reloc at 0x%lx not against global symbol"
msgstr "" msgstr ""
@ -1244,37 +1244,37 @@ msgstr ""
msgid "%s: Section %s is already to large to put hole of %ld bytes in" msgid "%s: Section %s is already to large to put hole of %ld bytes in"
msgstr "" msgstr ""
#: elflink.h:1387 #: elflink.h:1443
#, c-format #, c-format
msgid "%s: %s: invalid version %u (max %d)" msgid "%s: %s: invalid version %u (max %d)"
msgstr "" msgstr ""
#: elflink.h:1428 #: elflink.h:1484
#, c-format #, c-format
msgid "%s: %s: invalid needed version %d" msgid "%s: %s: invalid needed version %d"
msgstr "" msgstr ""
#: elflink.h:1545 #: elflink.h:1601
#, c-format #, c-format
msgid "Warning: size of symbol `%s' changed from %lu to %lu in %s" msgid "Warning: size of symbol `%s' changed from %lu to %lu in %s"
msgstr "" msgstr ""
#: elflink.h:1789 #: elflink.h:1845
#, c-format #, c-format
msgid "%s: warning: unexpected redefinition of `%s'" msgid "%s: warning: unexpected redefinition of `%s'"
msgstr "" msgstr ""
#: elflink.h:3496 #: elflink.h:3552
#, c-format #, c-format
msgid "warning: type and size of dynamic symbol `%s' are not defined" msgid "warning: type and size of dynamic symbol `%s' are not defined"
msgstr "" msgstr ""
#: elflink.h:3768 #: elflink.h:3824
#, c-format #, c-format
msgid "%s: undefined versioned symbol name %s" msgid "%s: undefined versioned symbol name %s"
msgstr "" msgstr ""
#: elflink.h:5012 #: elflink.h:5068
#, c-format #, c-format
msgid "%s: could not find output section %s for input section %s" msgid "%s: could not find output section %s for input section %s"
msgstr "" msgstr ""