diff options
author | Alan Modra <amodra@gmail.com> | 2003-06-28 05:28:54 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-06-28 05:28:54 +0000 |
commit | 1579bae1cd094ed9b986d2128997953600ca910d (patch) | |
tree | 17d62b19ecb6002f3c0982a8a13011ce3f83aa8a /ld/emultempl | |
parent | b9ae04920ab4f0d0c10fad9dff55c4ca3e2d2251 (diff) | |
download | gdb-1579bae1cd094ed9b986d2128997953600ca910d.zip gdb-1579bae1cd094ed9b986d2128997953600ca910d.tar.gz gdb-1579bae1cd094ed9b986d2128997953600ca910d.tar.bz2 |
Convert to C90
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/m68kcoff.em | 2 | ||||
-rw-r--r-- | ld/emultempl/m68kelf.em | 6 | ||||
-rw-r--r-- | ld/emultempl/ticoff.em | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/ld/emultempl/m68kcoff.em b/ld/emultempl/m68kcoff.em index 3b92d17..eefa327 100644 --- a/ld/emultempl/m68kcoff.em +++ b/ld/emultempl/m68kcoff.em @@ -99,7 +99,7 @@ gld${EMULATION_NAME}_after_open (void) /* Double check that all other data sections are empty, as is required for embedded PIC code. */ - bfd_map_over_sections (abfd, check_sections, (PTR) datasec); + bfd_map_over_sections (abfd, check_sections, datasec); } } diff --git a/ld/emultempl/m68kelf.em b/ld/emultempl/m68kelf.em index 64d4aa8..31db20b 100644 --- a/ld/emultempl/m68kelf.em +++ b/ld/emultempl/m68kelf.em @@ -93,7 +93,7 @@ m68k_elf_after_open (void) /* Double check that all other data sections are empty, as is required for embedded PIC code. */ - bfd_map_over_sections (abfd, check_sections, (PTR) datasec); + bfd_map_over_sections (abfd, check_sections, datasec); } } #endif /* SUPPORT_EMBEDDED_RELOCS */ @@ -104,10 +104,10 @@ m68k_elf_after_open (void) relocs. This is called via bfd_map_over_sections. */ static void -check_sections (bfd *abfd, asection *sec, PTR datasec) +check_sections (bfd *abfd, asection *sec, void *datasec) { if ((bfd_get_section_flags (abfd, sec) & SEC_DATA) - && sec != (asection *) datasec + && sec != datasec && sec->reloc_count != 0) einfo ("%B%X: section %s has relocs; can not use --embedded-relocs\n", abfd, bfd_get_section_name (abfd, sec)); diff --git a/ld/emultempl/ticoff.em b/ld/emultempl/ticoff.em index 448fea8..ce9f739 100644 --- a/ld/emultempl/ticoff.em +++ b/ld/emultempl/ticoff.em @@ -77,8 +77,6 @@ gld${EMULATION_NAME}_handle_option (int optc) if ((*optarg == '0' || *optarg == '1' || *optarg == '2') && optarg[1] == '\0') { - extern void lang_add_output_format - PARAMS ((const char *, const char *, const char *, int)); static char buf[] = "coffX-${OUTPUT_FORMAT_TEMPLATE}"; coff_version = *optarg - '0'; buf[4] = *optarg; |