aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-03-16 22:22:17 +0000
committerIan Lance Taylor <ian@airs.com>1994-03-16 22:22:17 +0000
commitd6e6bc1c529056b022926c1831123774f5862be6 (patch)
tree6ed867fd9f32be23cde7acc57ef058f92c174a6d /gas/config
parent23dc1ae33dffbd85d5f11a2b5ca9400ffd760963 (diff)
downloadgdb-d6e6bc1c529056b022926c1831123774f5862be6.zip
gdb-d6e6bc1c529056b022926c1831123774f5862be6.tar.gz
gdb-d6e6bc1c529056b022926c1831123774f5862be6.tar.bz2
* config/obj-coffbfd.c (adjust_stab_section): Initialize
stabstrseg to SEG_UNKNOWN, not -1. After loop, check whether it is not SEG_UNKNOWN rather than checking whether it is >= 0.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-coffbfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c
index 494de22..b09368c 100644
--- a/gas/config/obj-coffbfd.c
+++ b/gas/config/obj-coffbfd.c
@@ -2680,7 +2680,7 @@ adjust_stab_section(abfd, seg)
bfd *abfd;
segT seg;
{
- segT stabstrseg = -1;
+ segT stabstrseg = SEG_UNKNOWN;
char *secname, *name, *name2;
char *p = NULL;
int i, strsz = 0, nsyms;
@@ -2704,7 +2704,7 @@ adjust_stab_section(abfd, seg)
}
/* If we found the section, get its size. */
- if (stabstrseg >= 0)
+ if (stabstrseg != SEG_UNKNOWN)
strsz = size_section (abfd, stabstrseg);
nsyms = size_section (abfd, seg) / 12 - 1;