From: Alan Modra Date: Wed, 3 May 2000 11:25:00 +0000 (+0000) Subject: Fix 64 bit target section start on 32 bit machine. X-Git-Tag: binutils-2_10~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9bdbac4d7f7f5f64840618ad02421c1fd553019c;p=thirdparty%2Fbinutils-gdb.git Fix 64 bit target section start on 32 bit machine. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index d5bc4ccd638..62357d9cd4c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2000-05-03 Alan Modra + + From Ulf Carlsson and Andreas Jaeger + * lexsup.c (set_section_start): Use bfd_scan_vma rather than + strtoul. + 2000-04-29 Andreas Jaeger * ld.h: Correctly check GCC version. diff --git a/ld/lexsup.c b/ld/lexsup.c index 49e8749be65..7b5e89c1373 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -1,5 +1,5 @@ /* Parse options for the GNU linker. - Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 1999 + Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This file is part of GLD, the Gnu Linker. @@ -1050,8 +1050,8 @@ static void set_section_start (sect, valstr) char *sect, *valstr; { - char *end; - unsigned long val = strtoul (valstr, &end, 16); + const char *end; + bfd_vma val = bfd_scan_vma (valstr, &end, 16); if (*end) einfo (_("%P%F: invalid hex number `%s'\n"), valstr); lang_section_start (sect, exp_intop (val));