From: Kazu Hirata Date: Tue, 7 Nov 2000 19:11:31 +0000 (+0000) Subject: 2000-11-07 Kazu Hirata X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ef5a5bdcbddae6d04247a3e261843edfa68a60f;p=binutils-gdb.git 2000-11-07 Kazu Hirata * aix386-core.c: Fix formatting. * aoutf1.h: Likewise. * aoutx.h: Likewise. * archures.c: Likewise. * armnetbsd.c: Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index be2098e234d..06e5fab5252 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2000-11-07 Kazu Hirata + + * aix386-core.c: Fix formatting. + * aoutf1.h: Likewise. + * aoutx.h: Likewise. + * archures.c: Likewise. + * armnetbsd.c: Likewise. + 2000-11-07 Alan Modra * coff-h8300.c (special): Adjust reloc address. diff --git a/bfd/aix386-core.c b/bfd/aix386-core.c index fb67b17081f..6dc5cef59f5 100644 --- a/bfd/aix386-core.c +++ b/bfd/aix386-core.c @@ -280,6 +280,6 @@ const bfd_target aix386_core_vec = BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), NULL, - + (PTR) 0 }; diff --git a/bfd/aoutf1.h b/bfd/aoutf1.h index fdf95b5b117..3e611e83cf8 100644 --- a/bfd/aoutf1.h +++ b/bfd/aoutf1.h @@ -33,7 +33,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* This is needed to reject a NewsOS file, e.g. in gdb/testsuite/gdb.t10/crossload.exp. I needed to add M_UNKNOWN to recognize a 68000 object, so this will - probably no longer reject a NewsOS object. . */ + probably no longer reject a NewsOS object. . */ #ifndef MACHTYPE_OK #define MACHTYPE_OK(mtype) \ (((mtype) == M_SPARC && bfd_lookup_arch (bfd_arch_sparc, 0) != NULL) \ @@ -123,7 +123,7 @@ sunos_set_arch_mach (abfd, machtype) case M_UNKNOWN: /* Some Sun3s make magic numbers without cpu types in them, so - we'll default to the 68000. */ + we'll default to the 68000. */ arch = bfd_arch_m68k; machine = bfd_mach_m68000; break; @@ -275,11 +275,11 @@ sunos_write_object_contents (abfd) Unfortunately, they don't document the FPA structure, or at least I can't find it easily. Fortunately the core header contains its own length. So this shouldn't cause problems, except for c_ucode, which - so far we don't use but is easy to find with a little arithmetic. */ + so far we don't use but is easy to find with a little arithmetic. */ /* But the reg structure can be gotten from the SPARC processor handbook. This really should be in a GNU include file though so that gdb can use - the same info. */ + the same info. */ struct regs { int r_psr; @@ -439,7 +439,7 @@ swapcore_sun3 (abfd, ext, intcore) intcore->c_ssize = bfd_h_get_32 (abfd, (unsigned char *) &extcore->c_ssize); memcpy (intcore->c_cmdname, extcore->c_cmdname, sizeof (intcore->c_cmdname)); intcore->fp_stuff_pos = (long) (((struct external_sun3_core *) 0)->fp_stuff); - /* FP stuff takes up whole rest of struct, except c_ucode. */ + /* FP stuff takes up whole rest of struct, except c_ucode. */ intcore->fp_stuff_size = intcore->c_len - (sizeof extcore->c_ucode) - (file_ptr) (((struct external_sun3_core *) 0)->fp_stuff); /* Ucode is the last thing in the struct -- just before the end */ @@ -449,7 +449,6 @@ swapcore_sun3 (abfd, ext, intcore) intcore->c_stacktop = 0x0E000000; /* By experimentation */ } - /* byte-swap in the Sparc core structure */ static void swapcore_sparc (abfd, ext, intcore) @@ -476,7 +475,7 @@ swapcore_sparc (abfd, ext, intcore) intcore->c_ssize = bfd_h_get_32 (abfd, (unsigned char *) &extcore->c_ssize); memcpy (intcore->c_cmdname, extcore->c_cmdname, sizeof (intcore->c_cmdname)); intcore->fp_stuff_pos = (long) (((struct external_sparc_core *) 0)->fp_stuff); - /* FP stuff takes up whole rest of struct, except c_ucode. */ + /* FP stuff takes up whole rest of struct, except c_ucode. */ intcore->fp_stuff_size = intcore->c_len - (sizeof extcore->c_ucode) - (file_ptr) (((struct external_sparc_core *) 0)->fp_stuff); /* Ucode is the last thing in the struct -- just before the end */ @@ -544,7 +543,7 @@ swapcore_solaris_bcp (abfd, ext, intcore) memcpy (intcore->c_cmdname, extcore->c_cmdname, sizeof (intcore->c_cmdname)); intcore->fp_stuff_pos = (long) (((struct external_solaris_bcp_core *) 0)->fp_stuff); - /* FP stuff takes up whole rest of struct, except c_ucode. */ + /* FP stuff takes up whole rest of struct, except c_ucode. */ intcore->fp_stuff_size = intcore->c_len - (sizeof extcore->c_ucode) - (file_ptr) (((struct external_solaris_bcp_core *) 0)->fp_stuff); /* Ucode is the last thing in the struct -- just before the end */ @@ -764,7 +763,7 @@ sunos4_core_file_matches_executable_p (core_bfd, exec_bfd) return false; } - /* Solaris core files do not include an aouthdr. */ + /* Solaris core files do not include an aouthdr. */ if ((core_hdr (core_bfd)->hdr)->c_len == SOLARIS_BCP_CORE_LEN) return true; diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 24903034540..a42bf6c3e98 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -23,7 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ SECTION a.out backends - DESCRIPTION BFD supports a number of different flavours of a.out format, @@ -363,7 +362,7 @@ NAME(aout,swap_exec_header_in) (abfd, raw_bytes, execp) /* The internal_exec structure has some fields that are unused in this configuration (IE for i960), so ensure that all such uninitialized fields are zero'd out. There are places where two of these structs - are memcmp'd, and thus the contents do matter. */ + are memcmp'd, and thus the contents do matter. */ memset ((PTR) execp, 0, sizeof (struct internal_exec)); /* Now fill in fields in the execp, from the bytes in the raw data. */ execp->a_info = bfd_h_get_32 (abfd, bytes->e_info); @@ -400,7 +399,7 @@ NAME(aout,swap_exec_header_out) (abfd, execp, raw_bytes) { struct external_exec *bytes = (struct external_exec *)raw_bytes; - /* Now fill in fields in the raw data, from the fields in the exec struct. */ + /* Now fill in fields in the raw data, from the fields in the exec struct. */ bfd_h_put_32 (abfd, execp->a_info , bytes->e_info); PUT_WORD (abfd, execp->a_text , bytes->e_text); PUT_WORD (abfd, execp->a_data , bytes->e_data); @@ -517,7 +516,7 @@ NAME(aout,some_aout_object_p) (abfd, execp, callback_to_real_object_p) /* The default relocation entry size is that of traditional V7 Unix. */ obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; - /* The default symbol entry size is that of traditional Unix. */ + /* The default symbol entry size is that of traditional Unix. */ obj_symbol_entry_size (abfd) = EXTERNAL_NLIST_SIZE; #ifdef USE_MMAP @@ -616,7 +615,7 @@ NAME(aout,some_aout_object_p) (abfd, execp, callback_to_real_object_p) To fix this, we now accept any non-zero entry point as an indication of executability. This will work most of the time, since only the linker - sets the entry point, and that is likely to be non-zero for most systems. */ + sets the entry point, and that is likely to be non-zero for most systems. */ if (execp->a_entry != 0 || (execp->a_entry >= obj_textsec(abfd)->vma @@ -693,7 +692,6 @@ NAME(aout,mkobject) (abfd) return true; } - /* FUNCTION aout_@var{size}_machine_type @@ -757,7 +755,7 @@ NAME(aout,machine_type) (arch, machine, unknown) case bfd_arch_arm: if (machine == 0) arch_flags = M_ARM; break; - + case bfd_arch_mips: switch (machine) { case 0: @@ -814,7 +812,6 @@ NAME(aout,machine_type) (arch, machine, unknown) return arch_flags; } - /* FUNCTION aout_@var{size}_set_arch_mach @@ -941,7 +938,7 @@ adjust_z_magic (abfd, execp) file_ptr text_end; CONST struct aout_backend_data *abdp; int ztih; /* Nonzero if text includes exec header. */ - + abdp = aout_backend_info (abfd); /* Text. */ @@ -1009,7 +1006,7 @@ adjust_z_magic (abfd, execp) } obj_datasec(abfd)->filepos = (obj_textsec(abfd)->filepos + obj_textsec(abfd)->_raw_size); - + /* Fix up exec header while we're at it. */ execp->a_text = obj_textsec(abfd)->_raw_size; if (ztih && (!abdp || (abdp && !abdp->exec_header_not_counted))) @@ -1054,7 +1051,7 @@ adjust_n_magic (abfd, execp) file_ptr pos = adata(abfd).exec_bytes_size; bfd_vma vma = 0; int pad; - + /* Text. */ obj_textsec(abfd)->filepos = pos; if (!obj_textsec(abfd)->user_set_vma) @@ -1069,7 +1066,7 @@ adjust_n_magic (abfd, execp) if (!obj_datasec(abfd)->user_set_vma) obj_datasec(abfd)->vma = BFD_ALIGN (vma, adata(abfd).segment_size); vma = obj_datasec(abfd)->vma; - + /* Since BSS follows data immediately, see if it needs alignment. */ vma += obj_datasec(abfd)->_raw_size; pad = align_power (vma, obj_bsssec(abfd)->alignment_power) - vma; @@ -1114,7 +1111,7 @@ NAME(aout,adjust_sizes_and_vmas) (abfd, text_size, text_end) (TARGET_PAGE_SIZE). However, newer versions of SUNOS start the text segment right after the exec header; the latter is counted in the text segment size, and is paged in by the kernel with the rest of - the text. */ + the text. */ /* This perhaps isn't the right way to do this, but made it simpler for me to understand enough to implement it. Better would probably be to go @@ -1201,7 +1198,6 @@ NAME(aout,new_section_hook) (abfd, newsect) /* align to double at least */ newsect->alignment_power = bfd_get_arch_info(abfd)->section_align_power; - if (bfd_get_format (abfd) == bfd_object) { if (obj_textsec(abfd) == NULL && !strcmp(newsect->name, ".text")) { @@ -1311,7 +1307,7 @@ aout_get_external_symbols (abfd) obj_aout_external_syms (abfd) = syms; obj_aout_external_sym_count (abfd) = count; } - + if (obj_aout_external_strings (abfd) == NULL && exec_hdr (abfd)->a_syms != 0) { @@ -1640,7 +1636,7 @@ translate_to_native_sym_flags (abfd, cache_ptr, sym_pointer) file. */ (*_bfd_error_handler) (_("%s: can not represent section for symbol `%s' in a.out object file format"), - bfd_get_filename (abfd), + bfd_get_filename (abfd), cache_ptr->name != NULL ? cache_ptr->name : _("*unknown*")); bfd_set_error (bfd_error_nonrepresentable_section); return false; @@ -1722,7 +1718,7 @@ translate_to_native_sym_flags (abfd, cache_ptr, sym_pointer) return true; } -/* Native-level interface to symbols. */ +/* Native-level interface to symbols. */ asymbol * NAME(aout,make_empty_symbol) (abfd) @@ -1789,7 +1785,7 @@ NAME(aout,translate_symbol_table) (abfd, in, ext, count, str, strsize, dynamic) /* We read the symbols into a buffer, which is discarded when this function exits. We read the strings into a buffer large enough to - hold them all plus all the cached symbol entries. */ + hold them all plus all the cached symbol entries. */ boolean NAME(aout,slurp_symbol_table) (abfd) @@ -1997,7 +1993,7 @@ NAME(aout,get_symtab) (abfd, location) /* Standard reloc stuff */ -/* Output standard relocation information to a file in target byte order. */ +/* Output standard relocation information to a file in target byte order. */ extern void NAME(aout,swap_std_reloc_out) PARAMS ((bfd *, arelent *, struct reloc_std_external *)); @@ -2040,7 +2036,6 @@ NAME(aout,swap_std_reloc_out) (abfd, g, natptr) check for that here */ - if (bfd_is_com_section (output_section) || bfd_is_abs_section (output_section) || bfd_is_und_section (output_section)) @@ -2093,9 +2088,8 @@ NAME(aout,swap_std_reloc_out) (abfd, g, natptr) } } - /* Extended stuff */ -/* Output extended relocation information to a file in target byte order. */ +/* Output extended relocation information to a file in target byte order. */ extern void NAME(aout,swap_ext_reloc_out) PARAMS ((bfd *, arelent *, struct reloc_ext_external *)); @@ -2177,7 +2171,6 @@ NAME(aout,swap_ext_reloc_out) (abfd, g, natptr) contain 60. This macro subs the base of each section from the value to give the true offset from the section */ - #define MOVE_ADDRESS(ad) \ if (r_extern) { \ /* undefined symbol */ \ @@ -2552,7 +2545,6 @@ NAME(aout,get_symtab_upper_bound) (abfd) return (bfd_get_symcount (abfd)+1) * (sizeof (aout_symbol_type *)); } -/*ARGSUSED*/ alent * NAME(aout,get_lineno) (ignore_abfd, ignore_symbol) bfd *ignore_abfd ATTRIBUTE_UNUSED; @@ -2561,7 +2553,6 @@ NAME(aout,get_lineno) (ignore_abfd, ignore_symbol) return (alent *)NULL; } -/*ARGSUSED*/ void NAME(aout,get_symbol_info) (ignore_abfd, symbol, ret) bfd *ignore_abfd ATTRIBUTE_UNUSED; @@ -2589,7 +2580,6 @@ NAME(aout,get_symbol_info) (ignore_abfd, symbol, ret) } } -/*ARGSUSED*/ void NAME(aout,print_symbol) (ignore_abfd, afile, symbol, how) bfd *ignore_abfd ATTRIBUTE_UNUSED; @@ -2613,7 +2603,6 @@ NAME(aout,print_symbol) (ignore_abfd, afile, symbol, how) { CONST char *section_name = symbol->section->name; - bfd_print_symbol_vandf((PTR)file,symbol); fprintf(file," %-5s %04x %02x %02x", @@ -2722,8 +2711,8 @@ NAME(aout,find_nearest_line) CONST char *directory_name = NULL; CONST char *main_file_name = NULL; CONST char *current_file_name = NULL; - CONST char *line_file_name = NULL; /* Value of current_file_name at line number. */ - CONST char *line_directory_name = NULL; /* Value of directory_name at line number. */ + CONST char *line_file_name = NULL; /* Value of current_file_name at line number. */ + CONST char *line_directory_name = NULL; /* Value of directory_name at line number. */ bfd_vma low_line_vma = 0; bfd_vma low_func_vma = 0; asymbol *func = 0; @@ -2782,7 +2771,7 @@ NAME(aout,find_nearest_line) } main_file_name = current_file_name = q->symbol.name; - /* Look ahead to next symbol to check if that too is an N_SO. */ + /* Look ahead to next symbol to check if that too is an N_SO. */ p++; if (*p == NULL) break; @@ -2790,7 +2779,7 @@ NAME(aout,find_nearest_line) if (q->type != (int)N_SO) goto next; - /* Found a second N_SO First is directory; second is filename. */ + /* Found a second N_SO First is directory; second is filename. */ directory_name = current_file_name; main_file_name = current_file_name = q->symbol.name; if (obj_textsec(abfd) != section) @@ -2898,7 +2887,6 @@ NAME(aout,find_nearest_line) return true; } -/*ARGSUSED*/ int NAME(aout,sizeof_headers) (abfd, execable) bfd *abfd; @@ -4142,7 +4130,7 @@ aout_link_write_symbols (finfo, input_bfd) /* We have saved the hash table entry for this symbol, if there is one. Note that we could just look it up again in the hash table, provided we first check that it is an - external symbol. */ + external symbol. */ h = *sym_hash; /* Use the name from the hash table, in case the symbol was @@ -4806,7 +4794,7 @@ aout_link_input_section_std (finfo, input_bfd, input_section, relocs, #ifdef MY_reloc_howto howto = MY_reloc_howto(input_bfd, rel, r_index, r_extern, r_pcrel); -#else +#else { int r_jmptable; int r_relative; diff --git a/bfd/archures.c b/bfd/archures.c index dc3ee7c3840..8cb66e61ef3 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -31,7 +31,7 @@ SECTION BFD keeps one atom in a BFD describing the architecture of the data attached to the BFD: a pointer to a - <>. + <>. Pointers to structures can be requested independently of a BFD so that an architecture's information can be interrogated @@ -41,13 +41,13 @@ SECTION The set of default architectures is selected by the macro <>. This is normally set up in the @file{config/@var{target}.mt} file of your choice. If the name is not - defined, then all the architectures supported are included. + defined, then all the architectures supported are included. When BFD starts up, all the architectures are called with an initialize method. It is up to the architecture back end to insert as many items into the list of architectures as it wants to; generally this would be one for each machine and one for the - default case (an item with a machine field of 0). + default case (an item with a machine field of 0). BFD's idea of an architecture is implemented in @file{archures.c}. */ @@ -64,9 +64,9 @@ DESCRIPTION the family is in use. The machine gives a number which distinguishes different versions of the architecture, containing, for example, 2 and 3 for Intel i960 KA and i960 KB, - and 68020 and 68030 for Motorola 68020 and 68030. + and 68020 and 68030 for Motorola 68020 and 68030. -.enum bfd_architecture +.enum bfd_architecture .{ . bfd_arch_unknown, {* File arch not known *} . bfd_arch_obscure, {* Arch known, not one of these *} @@ -79,14 +79,14 @@ DESCRIPTION .#define bfd_mach_m68040 6 .#define bfd_mach_m68060 7 .#define bfd_mach_cpu32 8 -. bfd_arch_vax, {* DEC Vax *} +. bfd_arch_vax, {* DEC Vax *} . bfd_arch_i960, {* Intel 960 *} . {* The order of the following is important. -. lower number indicates a machine type that +. lower number indicates a machine type that . only accepts a subset of the instructions . available to machines with higher numbers. . The exception is the "ca", which is -. incompatible with all other machines except +. incompatible with all other machines except . "core". *} . .#define bfd_mach_i960_core 1 @@ -240,7 +240,6 @@ DESCRIPTION . bfd_arch_last . }; - */ /* @@ -253,7 +252,7 @@ DESCRIPTION within BFD. . -.typedef struct bfd_arch_info +.typedef struct bfd_arch_info .{ . int bits_per_word; . int bits_per_address; @@ -264,7 +263,7 @@ DESCRIPTION . const char *printable_name; . unsigned int section_align_power; . {* True if this is the default machine for the architecture. *} -. boolean the_default; +. boolean the_default; . const struct bfd_arch_info * (*compatible) . PARAMS ((const struct bfd_arch_info *a, . const struct bfd_arch_info *b)); @@ -384,8 +383,6 @@ bfd_printable_name (abfd) return abfd->arch_info->printable_name; } - - /* FUNCTION bfd_scan_arch @@ -419,8 +416,6 @@ bfd_scan_arch (string) return NULL; } - - /* FUNCTION bfd_arch_list @@ -474,8 +469,6 @@ bfd_arch_list () return name_list; } - - /* FUNCTION bfd_arch_get_compatible @@ -509,7 +502,6 @@ bfd_arch_get_compatible (abfd, bbfd) return abfd->arch_info->compatible (abfd->arch_info, bbfd->arch_info); } - /* INTERNAL_DEFINITION bfd_default_arch_struct @@ -529,7 +521,7 @@ const bfd_arch_info_type bfd_default_arch_struct = { 32,32,8,bfd_arch_unknown,0,"unknown","unknown",2,true, bfd_default_compatible, - bfd_default_scan, + bfd_default_scan, 0, }; @@ -565,7 +557,7 @@ DESCRIPTION Set the architecture and machine type in BFD @var{abfd} to @var{arch} and @var{mach}. Find the correct pointer to a structure and insert it into the <> - pointer. + pointer. */ boolean @@ -595,7 +587,6 @@ bfd_default_set_arch_mach (abfd, arch, mach) return false; } - /* FUNCTION bfd_get_arch @@ -628,7 +619,7 @@ DESCRIPTION machine. */ -unsigned long +unsigned long bfd_get_mach (abfd) bfd *abfd; { @@ -674,9 +665,8 @@ bfd_arch_bits_per_address (abfd) return abfd->arch_info->bits_per_address; } - /* -INTERNAL_FUNCTION +INTERNAL_FUNCTION bfd_default_compatible SYNOPSIS @@ -705,7 +695,6 @@ bfd_default_compatible (a,b) return a; } - /* INTERNAL_FUNCTION bfd_default_scan @@ -718,7 +707,7 @@ DESCRIPTION architecture hit and a machine hit. */ -boolean +boolean bfd_default_scan (info, string) const struct bfd_arch_info *info; const char *string; @@ -738,7 +727,7 @@ bfd_default_scan (info, string) /* Exact match of the machine name (PRINTABLE_NAME)? */ if (strcasecmp (string, info->printable_name) == 0) return true; - + /* Given that printable_name contains no colon, attempt to match: ARCH_NAME [ ":" ] PRINTABLE_NAME? */ printable_name_colon = strchr (info->printable_name, ':'); @@ -775,7 +764,7 @@ bfd_default_scan (info, string) /* Given that PRINTABLE_NAME has the form: ":" ; Do not attempt to match just , it could be ambigious. This test - is left until later. */ + is left until later. */ /* NOTE: The below is retained for compatibility only. Please do not add to this code */ @@ -784,9 +773,9 @@ bfd_default_scan (info, string) architecture, eg the string m68k:68020 would match the 68k entry up to the :, then we get left with the machine number */ - for (ptr_src = string, ptr_tst = info->arch_name; + for (ptr_src = string, ptr_tst = info->arch_name; *ptr_src && *ptr_tst; - ptr_src++, ptr_tst++) + ptr_src++, ptr_tst++) { if (*ptr_src != *ptr_tst) break; } @@ -795,7 +784,7 @@ bfd_default_scan (info, string) colons */ if (*ptr_src == ':') ptr_src++; - + if (*ptr_src == 0) { /* nothing more, then only keep this one if it is the default @@ -811,9 +800,9 @@ bfd_default_scan (info, string) } /* NOTE: The below is retained for compatibility only. - PLEASE DO NOT ADD TO THIS CODE. */ + PLEASE DO NOT ADD TO THIS CODE. */ - switch (number) + switch (number) { /* FIXME: These are needed to parse IEEE objects. */ /* The following seven case's are here only for compatibility with @@ -828,7 +817,7 @@ bfd_default_scan (info, string) case bfd_mach_cpu32: arch = bfd_arch_m68k; break; - case 68000: + case 68000: arch = bfd_arch_m68k; number = bfd_mach_m68000; break; @@ -895,11 +884,11 @@ bfd_default_scan (info, string) number = bfd_mach_sh4; break; - default: + default: return false; } - if (arch != info->arch) + if (arch != info->arch) return false; if (number != info->mach) @@ -908,7 +897,6 @@ bfd_default_scan (info, string) return true; } - /* FUNCTION bfd_get_arch_info @@ -927,7 +915,6 @@ bfd_get_arch_info (abfd) return abfd->arch_info; } - /* FUNCTION bfd_lookup_arch @@ -945,7 +932,7 @@ DESCRIPTION default. */ -const bfd_arch_info_type * +const bfd_arch_info_type * bfd_lookup_arch (arch, machine) enum bfd_architecture arch; unsigned long machine; @@ -966,7 +953,6 @@ bfd_lookup_arch (arch, machine) return NULL; } - /* FUNCTION bfd_printable_arch_mach @@ -977,7 +963,7 @@ SYNOPSIS DESCRIPTION Return a printable string representing the architecture and - machine type. + machine type. This routine is depreciated. */ @@ -1012,7 +998,7 @@ unsigned int bfd_octets_per_byte (abfd) bfd * abfd; { - return bfd_arch_mach_octets_per_byte (bfd_get_arch (abfd), + return bfd_arch_mach_octets_per_byte (bfd_get_arch (abfd), bfd_get_mach (abfd)); } @@ -1026,7 +1012,7 @@ SYNOPSIS DESCRIPTION See bfd_octets_per_byte. - + This routine is provided for those cases where a bfd * is not available */ @@ -1037,7 +1023,7 @@ bfd_arch_mach_octets_per_byte (arch, mach) unsigned long mach; { const bfd_arch_info_type * ap = bfd_lookup_arch (arch, mach); - + if (ap) return ap->bits_per_byte / 8; return 1; diff --git a/bfd/armnetbsd.c b/bfd/armnetbsd.c index 3e6ee470708..05d8ad0f8a6 100644 --- a/bfd/armnetbsd.c +++ b/bfd/armnetbsd.c @@ -15,7 +15,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License 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. */ #define BYTES_IN_WORD 4 #undef TARGET_IS_BIG_ENDIAN_P