diff options
Diffstat (limited to 'ld/emultempl/m68kelf.em')
-rw-r--r-- | ld/emultempl/m68kelf.em | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/emultempl/m68kelf.em b/ld/emultempl/m68kelf.em index 64d4aa85fc1..31db20bcafe 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)); |