aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-26 05:37:24 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-26 05:37:24 +0000
commit850584adbe22dbc786693b3c43c29517d6a5a15e (patch)
treed5ab37a67d51885c4472387bb577e8c6d0638911 /bfd
parent86dbb1303fc4eee91e89409f68fc05234f014977 (diff)
downloadgdb-850584adbe22dbc786693b3c43c29517d6a5a15e.zip
gdb-850584adbe22dbc786693b3c43c29517d6a5a15e.tar.gz
gdb-850584adbe22dbc786693b3c43c29517d6a5a15e.tar.bz2
* elfcode.h: Don't include assert.h.
(swap_out_syms): Use BFD_ASSERT rather than assert.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elfcode.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 8b84b1d..d01a2d6 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -59,7 +59,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
symbols.
*/
-#include <assert.h>
#include <string.h> /* For strrchr and friends */
#include "bfd.h"
#include "sysdep.h"
@@ -2207,9 +2206,9 @@ swap_out_syms (abfd)
section of a symbol to be a section that is actually in
the output file. */
sec2 = bfd_get_section_by_name (abfd, sec->name);
- assert (sec2 != 0);
+ BFD_ASSERT (sec2 != 0);
sym.st_shndx = shndx = elf_section_from_bfd_section (abfd, sec2);
- assert (shndx != -1);
+ BFD_ASSERT (shndx != -1);
}
}