This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

Re: bfd: patch for missing strtoull


> 
> Or perhaps the code which uses strtoull should use bfd_scan_vma
> instead.  The value appears to being stored in a bfd_vma, not in a
> long long.

right... here's a patch that fixes my problem.

sigh... bootstraphood again.

ok?

2002-01-04  Aldy Hernandez  <aldyh@redhat.com>

        * bfd/coff-rs6000.c (READ20): Use bfd_scan_vma.

Index: coff-rs6000.c
===================================================================
RCS file: /cvs/uberbaum/bfd/coff-rs6000.c,v
retrieving revision 1.28
diff -c -p -r1.28 coff-rs6000.c
*** coff-rs6000.c	2001/12/31 04:08:23	1.28
--- coff-rs6000.c	2002/01/04 22:17:48
*************** static char buff20[XCOFFARMAGBIG_ELEMENT
*** 1555,1561 ****
  #define READ20(d, v) \
    buff20[20] = 0, \
    memcpy (buff20, (d), 20), \
!   (v) = strtoull (buff20, (char **) NULL, 10)
  
  static boolean
  xcoff_write_armap_big (abfd, elength, map, orl_count, stridx)
--- 1555,1561 ----
  #define READ20(d, v) \
    buff20[20] = 0, \
    memcpy (buff20, (d), 20), \
!   (v) = bfd_scan_vma (buff20, (const char **) NULL, 10)
  
  static boolean
  xcoff_write_armap_big (abfd, elength, map, orl_count, stridx)


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