source:
rtems/contrib/crossrpms/patches/binutils-2.16.1-rtems-20050708.diff
@
15e12bf6
Last change on this file since 15e12bf6 was 72f8c0c6, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/05/06 at 14:22:52 | |
---|---|
|
|
File size: 3.6 KB |
-
binutils-2.16.1/bfd/config.bfd
369 369 targ_selvecs=bfd_elf32_frv_vec 370 370 ;; 371 371 372 h8300*-*-elf) 372 h8300*-*-rtemscoff*) 373 targ_defvec=h8300coff_vec 374 targ_underscore=yes 375 ;; 376 377 h8300*-*-elf | h8300*-*-rtems*) 373 378 targ_defvec=bfd_elf32_h8300_vec 374 379 targ_underscore=yes 375 380 ;; -
binutils-2.16.1/gas/configure.tgt
163 163 hppa-*-bsd*) fmt=som em=hppa ;; 164 164 hppa-*-hiux*) fmt=som em=hppa ;; 165 165 166 h8300-*-rtems *) fmt=coff ;;166 h8300-*-rtemscoff*) fmt=coff ;; 167 167 h8300-*-coff) fmt=coff ;; 168 h8300-*-elf )fmt=elf ;;168 h8300-*-elf | h8300-*-rtems*) fmt=elf ;; 169 169 h8500-*-rtems*) fmt=coff ;; 170 170 h8500-*-coff) fmt=coff ;; 171 171 -
binutils-2.16.1/ld/configure.tgt
280 280 targ_extra_ofiles="deffilep.o pe-dll.o" ;; 281 281 xscale-*-coff) targ_emul=armcoff ;; 282 282 xscale-*-elf) targ_emul=armelf ;; 283 h8300-*-hms* | h8300-*-coff* | h8300-*-rtems *)283 h8300-*-hms* | h8300-*-coff* | h8300-*-rtemscoff*) 284 284 targ_emul=h8300; targ_extra_emuls="h8300h h8300s h8300hn h8300sn h8300sx h8300sxn" 285 285 ;; 286 h8300-*-elf* )286 h8300-*-elf* | h8300-*-rtems*) 287 287 targ_emul=h8300elf; 288 288 targ_extra_emuls="h8300helf h8300self h8300hnelf h8300snelf h8300sxelf h8300sxnelf" 289 289 ;; -
binutils-2.16.1/bfd/archive.c
1308 1308 #define getgid() 0 1309 1309 #endif 1310 1310 1311 static 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 1311 1318 /* Takes a filename, returns an arelt_data for it, or NULL if it can't 1312 1319 make one. The filename must refer to a filename in the filesystem. 1313 1320 The filename field of the ar_hdr will NOT be initialized. If member … … 1368 1375 #endif 1369 1376 sprintf ((hdr->ar_gid), "%ld", (long) status.st_gid); 1370 1377 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); 1372 1379 /* Correct for a lossage in sprintf whereby it null-terminates. I cannot 1373 1380 understand how these C losers could design such a ramshackle bunch of 1374 1381 IO operations. */ … … 1660 1667 memset (&hdr, 0, sizeof (struct ar_hdr)); 1661 1668 strcpy (hdr.ar_name, ename); 1662 1669 /* Round size up to even number in archive header. */ 1663 sprintf (&(hdr.ar_size[0]), "%-10d",1670 print_ar_size(&hdr, 1664 1671 (int) ((elength + 1) & ~(bfd_size_type) 1)); 1665 1672 strncpy (hdr.ar_fmag, ARFMAG, 2); 1666 1673 for (i = 0; i < sizeof (struct ar_hdr); i++) … … 1913 1920 sprintf (hdr.ar_date, "%ld", bfd_ardata (arch)->armap_timestamp); 1914 1921 sprintf (hdr.ar_uid, "%ld", (long) getuid ()); 1915 1922 sprintf (hdr.ar_gid, "%ld", (long) getgid ()); 1916 sprintf (hdr.ar_size, "%-10d", (int) mapsize);1923 print_ar_size(&hdr, (int) mapsize); 1917 1924 strncpy (hdr.ar_fmag, ARFMAG, 2); 1918 1925 for (i = 0; i < sizeof (struct ar_hdr); i++) 1919 1926 if (((char *) (&hdr))[i] == '\0') … … 2068 2075 2069 2076 memset (&hdr, 0, sizeof (struct ar_hdr)); 2070 2077 hdr.ar_name[0] = '/'; 2071 sprintf (hdr.ar_size, "%-10d", (int) mapsize);2078 print_ar_size (&hdr, (int) mapsize); 2072 2079 sprintf (hdr.ar_date, "%ld", (long) time (NULL)); 2073 2080 /* This, at least, is what Intel coff sets the values to. */ 2074 2081 sprintf ((hdr.ar_uid), "%d", 0);
Note: See TracBrowser
for help on using the repository browser.