projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa396c6
)
--set-section-flags patch from dje.
author
Ian Lance Taylor
<ian@airs.com>
Fri, 17 Feb 1995 20:42:22 +0000
(20:42 +0000)
committer
Ian Lance Taylor
<ian@airs.com>
Fri, 17 Feb 1995 20:42:22 +0000
(20:42 +0000)
binutils/objcopy.c
patch
|
blob
|
history
diff --git
a/binutils/objcopy.c
b/binutils/objcopy.c
index
7596154
..
86232ad
100644
(file)
--- a/
binutils/objcopy.c
+++ b/
binutils/objcopy.c
@@
-1029,10
+1029,9
@@
setup_section (ibfd, isection, obfdarg)
goto loser;
}
+ flags = bfd_get_section_flags (ibfd, isection);
if (p != NULL && p->set_flags)
- flags = p->flags;
- else
- flags = bfd_get_section_flags (ibfd, isection);
+ flags = p->flags | (flags & SEC_HAS_CONTENTS);
if (!bfd_set_section_flags (obfd, osection, flags))
{
err = "flags";