This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: bfd: patch for missing strtoull
- From: Ian Lance Taylor <ian at airs dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: binutils at sources dot redhat dot com, nickc at redhat dot com
- Date: 04 Jan 2002 10:47:18 -0800
- Subject: Re: bfd: patch for missing strtoull
- References: <20020104183959.GA10928@redhat.com>
Aldy Hernandez <aldyh@redhat.com> writes:
> hi guys!
>
> MacOS X does not have strtoull so bfd doesn't build. *sigh*
>
> here is a patch to add configury magic to check for strtoull, and if not
> available, use our own version of strtoull (stolen from newlib).
>
> is this the right approach?
No. The right approach is to add strtoull to newlib. (As far as I
can see, newlib has strtoul, but not 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.
Ian