Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/external/gpl3/binutils.old/dist/ld/emultempl/m68kelf.em,v rcsdiff: /ftp/cvs/cvsroot/src/external/gpl3/binutils.old/dist/ld/emultempl/m68kelf.em,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.6 retrieving revision 1.7 diff -u -p -r1.6 -r1.7 --- src/external/gpl3/binutils.old/dist/ld/emultempl/m68kelf.em 2020/04/03 17:51:15 1.6 +++ src/external/gpl3/binutils.old/dist/ld/emultempl/m68kelf.em 2022/12/23 17:09:26 1.7 @@ -1,5 +1,5 @@ # This shell script emits a C file. -*- C -*- -# Copyright (C) 2000-2018 Free Software Foundation, Inc. +# Copyright (C) 2000-2020 Free Software Foundation, Inc. # Written by Michael Sokolov , based on armelf.em # # This file is part of the GNU Binutils. @@ -20,9 +20,9 @@ # MA 02110-1301, USA. -# This file is sourced from elf32.em, and defines some extra routines for m68k +# This file is sourced from elf.em, and defines some extra routines for m68k # embedded systems using ELF and for some other systems using m68k ELF. While -# it is sourced from elf32.em for all m68k ELF configurations, here we include +# it is sourced from elf.em for all m68k ELF configurations, here we include # only the features we want depending on the configuration. case ${target} in @@ -45,6 +45,8 @@ esac fragment <reloc_count * 12)) + || !bfd_set_section_alignment (relsec, 2) + || !bfd_set_section_size (relsec, datasec->reloc_count * 12)) einfo (_("%F%P: %pB: can not create .emreloc section: %E\n")); } @@ -123,11 +124,11 @@ m68k_elf_after_open (void) static void check_sections (bfd *abfd, asection *sec, void *datasec) { - if ((bfd_get_section_flags (abfd, sec) & SEC_DATA) + if ((bfd_section_flags (sec) & SEC_DATA) && sec != datasec && sec->reloc_count != 0) einfo (_("%X%P: %pB: section %s has relocs; can not use --embedded-relocs\n"), - abfd, bfd_get_section_name (abfd, sec)); + abfd, bfd_section_name (sec)); } #endif /* SUPPORT_EMBEDDED_RELOCS */