This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Patch for 64-bit change address in 32-bit environment
- To: Alan Modra <alan at linuxcare dot com dot au>
- Subject: Re: Patch for 64-bit change address in 32-bit environment
- From: Andreas Jaeger <aj at suse dot de>
- Date: 03 May 2000 12:53:24 +0200
- Cc: ulfc at calypso dot engr dot sgi dot com, binutils at sourceware dot cygnus dot com
- References: <Pine.LNX.4.21.0005032022500.10857-100000@front.linuxcare.com.au>
>>>>> Alan Modra writes:
Alan> On 3 May 2000, Andreas Jaeger wrote:
>> Like this?
Alan> Not quite. Better make val a bfd_vma.
Yes, that's better. Here's a patch.
Andreas
2000-05-03 Andreas Jaeger <aj@suse.de>
* lexsup.c (set_section_start): Use bfd_scan_vma instead of
strtoul, adjust type of val.
Index: ld/lexsup.c
===================================================================
RCS file: /cvs/src/src/ld/lexsup.c,v
retrieving revision 1.9
diff -u -r1.9 lexsup.c
--- lexsup.c 2000/04/04 14:32:33 1.9
+++ lexsup.c 2000/05/03 10:53:03
@@ -1051,7 +1051,7 @@
char *sect, *valstr;
{
char *end;
- unsigned long val = strtoul (valstr, &end, 16);
+ bfd_vma val = bfd_scan_vma (valstr, (CONST char **)&end, 16);
if (*end)
einfo (_("%P%F: invalid hex number `%s'\n"), valstr);
lang_section_start (sect, exp_intop (val));
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de