mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 05:52:21 +08:00
Convert to C90
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user