aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-05-03 11:22:42 +0000
committerAlan Modra <amodra@gmail.com>2000-05-03 11:22:42 +0000
commit9369728402b129b7f3c839b6da7f3b88854b3630 (patch)
tree7c779427ad7def5d4956a7a5d9de547757e07ea0
parentba744a4f561ff799e88f31cdb2ad442bd8967ccc (diff)
downloadgdb-9369728402b129b7f3c839b6da7f3b88854b3630.zip
gdb-9369728402b129b7f3c839b6da7f3b88854b3630.tar.gz
gdb-9369728402b129b7f3c839b6da7f3b88854b3630.tar.bz2
Fix 64 bit target section start on 32 bit machine.
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/lexsup.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 5511f78..9ada466 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2000-05-03 Alan Modra <alan@linuxcare.com.au>
+
+ From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
+ * lexsup.c (set_section_start): Use bfd_scan_vma rather than
+ strtoul.
+
Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
* configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 49e8749..7b5e89c 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));