summaryrefslogtreecommitdiff
path: root/bfd/trad-core.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-01-26 23:11:48 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-01-26 23:11:48 +0000
commitc43ee1e6bcff1c0d44e8d6f9f1fdc75129fbc148 (patch)
tree7d6644ef22379b28b482ca99f919b7959012c203 /bfd/trad-core.c
parent32fee2a0e2873c01bfbea820b8538d50fe5b166e (diff)
downloadbinutils-redhat-c43ee1e6bcff1c0d44e8d6f9f1fdc75129fbc148.tar.gz
Most of these changes are really only cosmetic. The readelf.c patch
fixes a thinko in get_dynamic_flags. I found at least one message string that included a `%' being passed to printf in the format argument.
Diffstat (limited to 'bfd/trad-core.c')
-rw-r--r--bfd/trad-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/trad-core.c b/bfd/trad-core.c
index 2a6f69bcfd..92c5b6324e 100644
--- a/bfd/trad-core.c
+++ b/bfd/trad-core.c
@@ -1,5 +1,5 @@
/* BFD back end for traditional Unix core files (U-area and raw sections)
- Copyright 1988, 89, 91, 92, 93, 94, 95, 96, 98, 1999
+ Copyright 1988, 89, 91, 92, 93, 94, 95, 96, 98, 99, 2000
Free Software Foundation, Inc.
Written by John Gilmore of Cygnus Support.
@@ -202,7 +202,7 @@ trad_unix_core_file_p (abfd)
0 is at the place pointed to by u_ar0 (by setting the vma of the start
of the section to -u_ar0). GDB uses this info to locate the regs,
using minor trickery to get around the offset-or-absolute-addr problem. */
- core_regsec (abfd)->vma = 0 - (bfd_vma) u.u_ar0;
+ core_regsec (abfd)->vma = (asection *) (0 - (bfd_vma) u.u_ar0);
core_datasec (abfd)->filepos = NBPG * UPAGES;
core_stacksec (abfd)->filepos = (NBPG * UPAGES) + NBPG * u.u_dsize