This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

M*Core endianness change


Hi Guys,

  At the request of Motorola I have changed the default endian-ness of
  the M*Core tools.  This should not affect anybody since the correrct
  endianness should still be selected automatically by the tools, and
  since the compiler has not been contributed yet I doubt if anyone is
  making any binaries... :-)

Cheers
	Nick

1999-11-03  Nick Clifton  <nickc@cygnus.com>

	* dlltool.c: Change default mcore machine name to 'mcore-le'
	and rename big-endian version to 'mcore-be'.

Index: binutils/dlltool.c
===================================================================
RCS file: /cvs/binutils/binutils/binutils/dlltool.c,v
retrieving revision 1.15
diff -p -r1.15 dlltool.c
*** dlltool.c	1999/11/03 10:56:31	1.15
--- dlltool.c	1999/11/03 18:08:04
*************** static const char *mname = "ppc";
*** 391,397 ****
  #endif
  
  #ifdef DLLTOOL_MCORE
! static const char * mname = "mcore";
  #endif
  
  #ifdef DLLTOOL_MCORE_ELF
--- 391,397 ----
  #endif
  
  #ifdef DLLTOOL_MCORE
! static const char * mname = "mcore-le";
  #endif
  
  #ifdef DLLTOOL_MCORE_ELF
*************** mtable[] =
*** 553,559 ****
    ,
    {
  #define MMCORE_BE 5
!     "mcore", ".byte", ".short", ".long", ".asciz", "//",
      "jmpi\t1\n\tnop\n\t.long",
      ".global", ".space", ".align\t2",".align\t4", "",
      "pe-mcore-big", bfd_arch_mcore,
--- 553,559 ----
    ,
    {
  #define MMCORE_BE 5
!     "mcore-be", ".byte", ".short", ".long", ".asciz", "//",
      "jmpi\t1\n\tnop\n\t.long",
      ".global", ".space", ".align\t2",".align\t4", "",
      "pe-mcore-big", bfd_arch_mcore,
*************** mtable[] =
*** 571,577 ****
    ,
    {
  #define MMCORE_ELF 7
!     "mcore-elf", ".byte", ".short", ".long", ".asciz", "//",
      "jmpi\t1\n\tnop\n\t.long",
      ".global", ".space", ".align\t2",".align\t4", "",
      "elf32-mcore-big", bfd_arch_mcore,
--- 571,577 ----
    ,
    {
  #define MMCORE_ELF 7
!     "mcore-elf-be", ".byte", ".short", ".long", ".asciz", "//",
      "jmpi\t1\n\tnop\n\t.long",
      ".global", ".space", ".align\t2",".align\t4", "",
      "elf32-mcore-big", bfd_arch_mcore,
*************** usage (file, status)
*** 3093,3099 ****
    fprintf (file, _("Usage %s <options> <object-files>\n"), program_name);
    /* xgetext:c-format */
    fprintf (file, _("   -m --machine <machine>    Create as DLL for <machine>.  [default: %s]\n"), mname);
!   fprintf (file, _("        possible <machine>: arm[_interwork], i386, mcore[-elf][-le], ppc, thumb\n"));
    fprintf (file, _("   -e --output-exp <outname> Generate an export file.\n"));
    fprintf (file, _("   -l --output-lib <outname> Generate an interface library.\n"));
    fprintf (file, _("   -a --add-indirect         Add dll indirects to export file.\n"));
--- 3093,3099 ----
    fprintf (file, _("Usage %s <options> <object-files>\n"), program_name);
    /* xgetext:c-format */
    fprintf (file, _("   -m --machine <machine>    Create as DLL for <machine>.  [default: %s]\n"), mname);
!   fprintf (file, _("        possible <machine>: arm[_interwork], i386, mcore[-elf]{-le|-be}, ppc, thumb\n"));
    fprintf (file, _("   -e --output-exp <outname> Generate an export file.\n"));
    fprintf (file, _("   -l --output-lib <outname> Generate an interface library.\n"));
    fprintf (file, _("   -a --add-indirect         Add dll indirects to export file.\n"));



1999-11-03  Nick Clifton  <nickc@cygnus.com>

	* config/tc-mcore.h (TARGET_BYTES_BIG_ENDIAN): Change to false.

Index: gas/config/tc-mcore.h
===================================================================
RCS file: /cvs/binutils/binutils/gas/config/tc-mcore.h,v
retrieving revision 1.3
diff -p -r1.3 tc-mcore.h
*** tc-mcore.h	1999/08/31 15:10:47	1.3
--- tc-mcore.h	1999/11/03 18:08:04
***************
*** 27,33 ****
  #endif
  
  #define TARGET_ARCH	bfd_arch_mcore
! #define TARGET_BYTES_BIG_ENDIAN 1
  
  /* Don't write out relocs for pcrel stuff.  */
  #define TC_COUNT_RELOC(x) (((x)->fx_addsy || (x)->fx_subsy) && \
--- 27,34 ----
  #endif
  
  #define TARGET_ARCH	bfd_arch_mcore
! /* Used to initialise target_big_endian.  */
! #define TARGET_BYTES_BIG_ENDIAN 0
  
  /* Don't write out relocs for pcrel stuff.  */
  #define TC_COUNT_RELOC(x) (((x)->fx_addsy || (x)->fx_subsy) && \



1999-11-03  Nick Clifton  <nickc@cygnus.com>

	* emulparams/elf32mcore.sh (OUTPUT_FORMAT): Change to little endian.
	* emulparams/mcorepe.sh (OUTPUT_FORMAT): Change to little endian.

Index: ld/emulparams/elf32mcore.sh
===================================================================
RCS file: /cvs/binutils/binutils/ld/emulparams/elf32mcore.sh,v
retrieving revision 1.6
diff -p -r1.6 elf32mcore.sh
*** elf32mcore.sh	1999/08/23 09:13:56	1.6
--- elf32mcore.sh	1999/11/03 18:08:04
***************
*** 1,5 ****
  SCRIPT_NAME=elf
! OUTPUT_FORMAT="elf32-mcore-big"
  BIG_OUTPUT_FORMAT="elf32-mcore-big"
  LITTLE_OUTPUT_FORMAT="elf32-mcore-little"
  PAGE_SIZE=0x1000
--- 1,5 ----
  SCRIPT_NAME=elf
! OUTPUT_FORMAT="elf32-mcore-little"
  BIG_OUTPUT_FORMAT="elf32-mcore-big"
  LITTLE_OUTPUT_FORMAT="elf32-mcore-little"
  PAGE_SIZE=0x1000

Index: ld/emulparams/mcorepe.sh
===================================================================
RCS file: /cvs/binutils/binutils/ld/emulparams/mcorepe.sh,v
retrieving revision 1.6
diff -p -r1.6 mcorepe.sh
*** mcorepe.sh	1999/09/12 16:45:16	1.6
--- mcorepe.sh	1999/11/03 18:08:04
***************
*** 1,6 ****
  ARCH=mcore
  SCRIPT_NAME=mcorepe
! OUTPUT_FORMAT="pei-mcore-big"
  LITTLE_OUTPUT_FORMAT="pei-mcore-little"
  BIG_OUTPUT_FORMAT="pei-mcore-big"
  TEMPLATE_NAME=pe
--- 1,6 ----
  ARCH=mcore
  SCRIPT_NAME=mcorepe
! OUTPUT_FORMAT="pei-mcore-little"
  LITTLE_OUTPUT_FORMAT="pei-mcore-little"
  BIG_OUTPUT_FORMAT="pei-mcore-big"
  TEMPLATE_NAME=pe

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]