summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/bfd/binary.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/bfd/binary.c')
-rw-r--r--contrib/binutils/bfd/binary.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/binutils/bfd/binary.c b/contrib/binutils/bfd/binary.c
index c42f143..8fcbadc 100644
--- a/contrib/binutils/bfd/binary.c
+++ b/contrib/binutils/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)
{
OpenPOWER on IntegriCloud