diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-07-12 07:35:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-07-12 07:35:20 +0000 |
commit | e049a0de5aa29277c6e42046a9fc960cce1ff6ed (patch) | |
tree | f864ee52079ac788bb502a42e361f8794a51aa13 /bfd/coff-arm.c | |
parent | 5d341b0e2a8e31c93bc32ce3d4ed447fcfb34c6f (diff) | |
download | gdb-e049a0de5aa29277c6e42046a9fc960cce1ff6ed.zip gdb-e049a0de5aa29277c6e42046a9fc960cce1ff6ed.tar.gz gdb-e049a0de5aa29277c6e42046a9fc960cce1ff6ed.tar.bz2 |
* Many files: Changes to avoid gcc warnings: Remove unused local
variables. Add default case to enum switches.
* coff-arm.c (bfd_arm_allocate_interworking_sections): Only
compile if not COFF_IMAGE_WITH_PE.
(record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise.
(bfd_arm_get_bfd_for_interworking): Likewise.
(bfd_arm_process_before_allocation): Likewise.
* epoc-pei-arm.c: Don't rename bfd_arm functions.
* pei-arm.c: Likewise.
* elf32-mips.c (mips_elf_link_hash_table_create): Don't declare.
(MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change.
(mips_elf_got16_entry): Put parens around & in body of ==.
(mips_elf_calculate_relocation): Correct test for empty string.
* vms-gsd.c: Use _bfd_error_handler rather than fprintf to
stderr.
* vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf
format.
Diffstat (limited to 'bfd/coff-arm.c')
-rw-r--r-- | bfd/coff-arm.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c index adc57fd..f5ecf95 100644 --- a/bfd/coff-arm.c +++ b/bfd/coff-arm.c @@ -89,10 +89,12 @@ static struct coff_link_hash_entry * find_thumb_glue PARAMS ((struct bfd_link_info *, CONST char *, bfd *)); static struct coff_link_hash_entry * find_arm_glue PARAMS ((struct bfd_link_info *, CONST char *, bfd *)); +#ifndef COFF_IMAGE_WITH_PE static void record_arm_to_thumb_glue PARAMS ((struct bfd_link_info *, struct coff_link_hash_entry *)); static void record_thumb_to_arm_glue PARAMS ((struct bfd_link_info *, struct coff_link_hash_entry *)); +#endif static boolean coff_arm_merge_private_bfd_data PARAMS ((bfd *, bfd *)); static boolean coff_arm_print_private_bfd_data @@ -1604,9 +1606,8 @@ coff_arm_relocate_section (output_bfd, info, input_bfd, input_section, return true; } -#ifdef COFF_IMAGE_WITH_PE -static -#endif +#ifndef COFF_IMAGE_WITH_PE + boolean bfd_arm_allocate_interworking_sections (info) struct bfd_link_info * info; @@ -1793,9 +1794,7 @@ record_thumb_to_arm_glue (info, h) /* Select a BFD to be used to hold the sections used by the glue code. This function is called from the linker scripts in ld/emultempl/ {armcoff/pe}.em */ -#ifdef COFF_IMAGE_WITH_PE -static -#endif + boolean bfd_arm_get_bfd_for_interworking (abfd, info) bfd * abfd; @@ -1851,9 +1850,6 @@ bfd_arm_get_bfd_for_interworking (abfd, info) return true; } -#ifdef COFF_IMAGE_WITH_PE -static -#endif boolean bfd_arm_process_before_allocation (abfd, info, support_old_code) bfd * abfd; @@ -1961,6 +1957,8 @@ bfd_arm_process_before_allocation (abfd, info, support_old_code) return true; } +#endif /* ! defined (COFF_IMAGE_WITH_PE) */ + #define coff_bfd_reloc_type_lookup coff_arm_reloc_type_lookup #define coff_relocate_section coff_arm_relocate_section #define coff_bfd_is_local_label_name coff_arm_is_local_label_name |