summaryrefslogtreecommitdiff
path: root/gnu/dist/bfd/binary.c
diff options
context:
space:
mode:
authortv <tv@NetBSD.org>1999-02-02 19:51:16 +0000
committertv <tv@NetBSD.org>1999-02-02 19:51:16 +0000
commit2e8b57510c512922b01977bf9c07cb986ddbaa67 (patch)
tree99f0ff2ba55134ad127492d887b5b6567773ef25 /gnu/dist/bfd/binary.c
parent269cb58003ce63bbb1763517287a25b909583ae4 (diff)
By popular demand, import binutils 2.9.1.
Diffstat (limited to 'gnu/dist/bfd/binary.c')
-rw-r--r--gnu/dist/bfd/binary.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/dist/bfd/binary.c b/gnu/dist/bfd/binary.c
index c42f1434718..8fcbadcf958 100644
--- a/gnu/dist/bfd/binary.c
+++ b/gnu/dist/bfd/binary.c
@@ -1,5 +1,5 @@
/* BFD back-end for binary objects.
- Copyright 1994, 95, 96, 1997 Free Software Foundation, Inc.
+ Copyright 1994, 95, 96, 97, 1998 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support, <ian@cygnus.com>
This file is part of BFD, the Binary File Descriptor library.
@@ -155,7 +155,7 @@ mangle_name (abfd, suffix)
/* Change any non-alphanumeric characters to underscores. */
for (p = buf; *p; p++)
- if (! isalnum (*p))
+ if (! isalnum ((unsigned char) *p))
*p = '_';
return buf;
@@ -260,6 +260,8 @@ binary_set_section_contents (abfd, sec, data, offset, size)
meaningful in the binary format. */
if ((sec->flags & (SEC_LOAD | SEC_ALLOC)) == 0)
return true;
+ if ((sec->flags & SEC_NEVER_LOAD) != 0)
+ return true;
if (! abfd->output_has_begun)
{