aboutsummaryrefslogtreecommitdiff
path: root/bfd/trad-core.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-02-21 12:01:27 +0000
committerAlan Modra <amodra@gmail.com>2000-02-21 12:01:27 +0000
commitf6af82bd4470673eef9562d4ed3a2717c1d749ab (patch)
tree049fedd33d8bf74259017f441ef55ee8920b9cc2 /bfd/trad-core.c
parent2403ff6fdb9d23ee79863d2b2aacac46a2d8283d (diff)
downloadfsf-binutils-gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.zip
fsf-binutils-gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.gz
fsf-binutils-gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.bz2
This lot mainly cleans up `comparison between signed and unsigned' gcc
warnings. One usused var, and a macro parenthesis fix too. Also check input sections are elf when doing gc in elflink.h.
Diffstat (limited to 'bfd/trad-core.c')
-rw-r--r--bfd/trad-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/trad-core.c b/bfd/trad-core.c
index 92c5b63..633c53d 100644
--- a/bfd/trad-core.c
+++ b/bfd/trad-core.c
@@ -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 = (asection *) (0 - (bfd_vma) u.u_ar0);
+ core_regsec (abfd)->vma = - (bfd_vma) u.u_ar0;
core_datasec (abfd)->filepos = NBPG * UPAGES;
core_stacksec (abfd)->filepos = (NBPG * UPAGES) + NBPG * u.u_dsize