diff options
author | Alan Modra <amodra@bigpond.net.au> | 2008-07-07 00:44:41 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2008-07-07 00:44:41 +0000 |
commit | 871fa8866882ba43825c5a7bbb2389f061055cde (patch) | |
tree | 7be9f201634ab7351c158c5d2e7ba4d29294c16a /binutils/windmc.c | |
parent | b86a8f55ac5083260316c2e1b5dcfc93a54fc67a (diff) | |
download | binutils-redhat-871fa8866882ba43825c5a7bbb2389f061055cde.tar.gz |
* 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/windmc.c')
-rw-r--r-- | binutils/windmc.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/binutils/windmc.c b/binutils/windmc.c index 2c6da4283d..70c9160aba 100644 --- a/binutils/windmc.c +++ b/binutils/windmc.c @@ -1,5 +1,5 @@ /* windmc.c -- a program to compile Windows message files. - Copyright 2007 + Copyright 2007, 2008 Free Software Foundation, Inc. Written by Kai Tietz, Onevision. @@ -707,13 +707,11 @@ windmc_write_bin (const char *filename, mc_node_lang **nl, int elems) if (elems <= 0) return; mc_bfd.abfd = windmc_open_as_binary (filename); - mc_bfd.sec = bfd_make_section (mc_bfd.abfd, ".data"); + mc_bfd.sec = bfd_make_section_with_flags (mc_bfd.abfd, ".data", + (SEC_HAS_CONTENTS | SEC_ALLOC + | SEC_LOAD | SEC_DATA)); if (mc_bfd.sec == NULL) bfd_fatal ("bfd_make_section"); - if (! bfd_set_section_flags (mc_bfd.abfd, mc_bfd.sec, - (SEC_HAS_CONTENTS | SEC_ALLOC - | SEC_LOAD | SEC_DATA))) - bfd_fatal ("bfd_set_section_flags"); /* Requiring this is probably a bug in BFD. */ mc_bfd.sec->output_section = mc_bfd.sec; |