aboutsummaryrefslogtreecommitdiff
path: root/binutils/resres.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-07-07 00:44:41 +0000
committerAlan Modra <amodra@gmail.com>2008-07-07 00:44:41 +0000
commit0eb80fd3e5ec31277b9df363ae066233783e4cbb (patch)
tree49cd1d51c8d938bb7899fcc4321b6ffb8c211768 /binutils/resres.c
parent0bcce8fccda1855ef118a620da622192e3e4a069 (diff)
downloadgdb-0eb80fd3e5ec31277b9df363ae066233783e4cbb.zip
gdb-0eb80fd3e5ec31277b9df363ae066233783e4cbb.tar.gz
gdb-0eb80fd3e5ec31277b9df363ae066233783e4cbb.tar.bz2
* ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
* nlmconv.c (main, powerpc_build_stubs): Likewise. * rescoff.c (write_coff_file): Likewise. * resres.c (write_res_file): Likewise. * windmc.c (windmc_write_bin): Likewise.
Diffstat (limited to 'binutils/resres.c')
-rw-r--r--binutils/resres.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/binutils/resres.c b/binutils/resres.c
index 49fb3fd..0ae5694 100644
--- a/binutils/resres.c
+++ b/binutils/resres.c
@@ -1,5 +1,5 @@
/* resres.c: read_res_file and write_res_file implementation for windres.
- Copyright 1998, 1999, 2001, 2002, 2007
+ Copyright 1998, 1999, 2001, 2002, 2007, 2008
Free Software Foundation, Inc.
Written by Anders Norlander <anorland@hem2.passagen.se>.
Rewritten by Kai Tietz, Onevision.
@@ -128,13 +128,11 @@ write_res_file (const char *fn,const rc_res_directory *resdir)
filename = fn;
abfd = windres_open_as_binary (filename, 0);
- sec = bfd_make_section (abfd, ".data");
+ sec = bfd_make_section_with_flags (abfd, ".data",
+ (SEC_HAS_CONTENTS | SEC_ALLOC
+ | SEC_LOAD | SEC_DATA));
if (sec == NULL)
bfd_fatal ("bfd_make_section");
- if (! bfd_set_section_flags (abfd, sec,
- (SEC_HAS_CONTENTS | SEC_ALLOC
- | SEC_LOAD | SEC_DATA)))
- bfd_fatal ("bfd_set_section_flags");
/* Requiring this is probably a bug in BFD. */
sec->output_section = sec;