source: rtems/contrib/crossrpms/patches/binutils-2.16.1-rtems-20050708.diff @ d8fce03

4.8
Last change on this file since d8fce03 was 72f8c0c6, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/05/06 at 14:22:52

New.

  • Property mode set to 100644
File size: 3.6 KB
  • binutils-2.16.1/bfd/config.bfd

     
    369369    targ_selvecs=bfd_elf32_frv_vec
    370370    ;;
    371371
    372   h8300*-*-elf)
     372  h8300*-*-rtemscoff*)
     373    targ_defvec=h8300coff_vec
     374    targ_underscore=yes
     375    ;;
     376
     377  h8300*-*-elf | h8300*-*-rtems*)
    373378    targ_defvec=bfd_elf32_h8300_vec
    374379    targ_underscore=yes
    375380    ;;
  • binutils-2.16.1/gas/configure.tgt

     
    163163  hppa-*-bsd*)                          fmt=som em=hppa ;;
    164164  hppa-*-hiux*)                         fmt=som em=hppa ;;
    165165
    166   h8300-*-rtems*)                       fmt=coff ;;
     166  h8300-*-rtemscoff*)                   fmt=coff ;;
    167167  h8300-*-coff)                         fmt=coff ;;
    168   h8300-*-elf)                          fmt=elf ;;
     168  h8300-*-elf | h8300-*-rtems*)         fmt=elf ;;
    169169  h8500-*-rtems*)                       fmt=coff ;;
    170170  h8500-*-coff)                         fmt=coff ;;
    171171
  • binutils-2.16.1/ld/configure.tgt

     
    280280                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
    281281xscale-*-coff)          targ_emul=armcoff ;;
    282282xscale-*-elf)           targ_emul=armelf ;;
    283 h8300-*-hms* | h8300-*-coff* | h8300-*-rtems*)
     283h8300-*-hms* | h8300-*-coff* | h8300-*-rtemscoff*)
    284284                        targ_emul=h8300; targ_extra_emuls="h8300h h8300s h8300hn h8300sn h8300sx h8300sxn"
    285285                        ;;
    286 h8300-*-elf*)
     286h8300-*-elf* | h8300-*-rtems*)
    287287                        targ_emul=h8300elf;
    288288                        targ_extra_emuls="h8300helf h8300self h8300hnelf h8300snelf h8300sxelf h8300sxnelf"
    289289                        ;;
  • binutils-2.16.1/bfd/archive.c

     
    13081308#define getgid() 0
    13091309#endif
    13101310
     1311static void print_ar_size( struct ar_hdr* hdr, int val )
     1312{
     1313  char buffer[sizeof(hdr->ar_size)+1];
     1314  sprintf(buffer,"%-10d", val);
     1315  memcpy(hdr->ar_size,buffer,sizeof(hdr->ar_size));
     1316}
     1317
    13111318/* Takes a filename, returns an arelt_data for it, or NULL if it can't
    13121319   make one.  The filename must refer to a filename in the filesystem.
    13131320   The filename field of the ar_hdr will NOT be initialized.  If member
     
    13681375#endif
    13691376  sprintf ((hdr->ar_gid), "%ld", (long) status.st_gid);
    13701377  sprintf ((hdr->ar_mode), "%-8o", (unsigned int) status.st_mode);
    1371   sprintf ((hdr->ar_size), "%-10ld", (long) status.st_size);
     1378  print_ar_size(hdr, (long) status.st_size);
    13721379  /* Correct for a lossage in sprintf whereby it null-terminates.  I cannot
    13731380     understand how these C losers could design such a ramshackle bunch of
    13741381     IO operations.  */
     
    16601667      memset (&hdr, 0, sizeof (struct ar_hdr));
    16611668      strcpy (hdr.ar_name, ename);
    16621669      /* Round size up to even number in archive header.  */
    1663       sprintf (&(hdr.ar_size[0]), "%-10d",
     1670      print_ar_size(&hdr,
    16641671               (int) ((elength + 1) & ~(bfd_size_type) 1));
    16651672      strncpy (hdr.ar_fmag, ARFMAG, 2);
    16661673      for (i = 0; i < sizeof (struct ar_hdr); i++)
     
    19131920  sprintf (hdr.ar_date, "%ld", bfd_ardata (arch)->armap_timestamp);
    19141921  sprintf (hdr.ar_uid, "%ld", (long) getuid ());
    19151922  sprintf (hdr.ar_gid, "%ld", (long) getgid ());
    1916   sprintf (hdr.ar_size, "%-10d", (int) mapsize);
     1923  print_ar_size(&hdr, (int) mapsize);
    19171924  strncpy (hdr.ar_fmag, ARFMAG, 2);
    19181925  for (i = 0; i < sizeof (struct ar_hdr); i++)
    19191926    if (((char *) (&hdr))[i] == '\0')
     
    20682075
    20692076  memset (&hdr, 0, sizeof (struct ar_hdr));
    20702077  hdr.ar_name[0] = '/';
    2071   sprintf (hdr.ar_size, "%-10d", (int) mapsize);
     2078  print_ar_size (&hdr, (int) mapsize);
    20722079  sprintf (hdr.ar_date, "%ld", (long) time (NULL));
    20732080  /* This, at least, is what Intel coff sets the values to.  */
    20742081  sprintf ((hdr.ar_uid), "%d", 0);
Note: See TracBrowser for help on using the repository browser.