diff options
author | Steve Chamberlain <sac@cygnus> | 1995-10-03 23:44:34 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1995-10-03 23:44:34 +0000 |
commit | db344f829d3037e16a5246f17e85d42a06f8e518 (patch) | |
tree | fff9d0bacbd9a2de142f8a28be5d9725a2834290 /bfd/coffcode.h | |
parent | e635c16ecb4db12676e23009b5ab5dfa0053d571 (diff) | |
download | gdb-db344f829d3037e16a5246f17e85d42a06f8e518.zip gdb-db344f829d3037e16a5246f17e85d42a06f8e518.tar.gz gdb-db344f829d3037e16a5246f17e85d42a06f8e518.tar.bz2 |
Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
* coffcode.h (coff_bfd_copy_private_symbol_data,
coff_bfd_copy_private_section_data,
coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
* peicode.h (coff_bfd_copy_private_bfd_data): New
(pe_bfd_copy_private_bfd_data): New.
(coff_swap_scnhdr_in): Swap bss size into the right place.
(pe_print_private_bfd_data): Add some newlines.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index f636c09..d85ae0b 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -1078,8 +1078,18 @@ coff_set_arch_mach_hook (abfd, filehdr) case U802ROMAGIC: case U802WRMAGIC: case U802TOCMAGIC: +#ifdef POWERMAC + /* PowerPC Macs use the same magic numbers as RS/6000 (because + that's how they were bootstrapped originally), but they are + always PowerPC architecture. */ + arch = bfd_arch_powerpc; + machine = 601; +#else + /* FIXME The architecture and machine can now (as of AIX 4.1) be + identified by looking at fields in the a.out header. */ arch = bfd_arch_rs6000; machine = 6000; +#endif /* POWERMAC */ break; #endif @@ -2839,17 +2849,23 @@ static CONST bfd_coff_backend_data bfd_coff_std_swap_table = #define coff_bfd_free_cached_info _bfd_generic_bfd_free_cached_info #define coff_get_section_contents _bfd_generic_get_section_contents -#define coff_bfd_copy_private_symbol_data \ - _bfd_generic_bfd_copy_private_symbol_data -#define coff_bfd_copy_private_section_data \ - _bfd_generic_bfd_copy_private_section_data +#ifndef coff_bfd_copy_private_symbol_data +#define coff_bfd_copy_private_symbol_data _bfd_generic_bfd_copy_private_symbol_data +#endif + +#ifndef coff_bfd_copy_private_section_data +#define coff_bfd_copy_private_section_data _bfd_generic_bfd_copy_private_section_data +#endif + +#ifndef coff_bfd_copy_private_bfd_data #define coff_bfd_copy_private_bfd_data _bfd_generic_bfd_copy_private_bfd_data +#endif + #define coff_bfd_merge_private_bfd_data _bfd_generic_bfd_merge_private_bfd_data #define coff_bfd_set_private_flags _bfd_generic_bfd_set_private_flags #ifndef coff_bfd_print_private_bfd_data -#define coff_bfd_print_private_bfd_data \ - _bfd_generic_bfd_print_private_bfd_data +#define coff_bfd_print_private_bfd_data _bfd_generic_bfd_print_private_bfd_data #endif #ifndef coff_bfd_is_local_label |