diff options
author | Alan Modra <amodra@gmail.com> | 2008-07-07 00:44:41 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-07-07 00:44:41 +0000 |
commit | 0eb80fd3e5ec31277b9df363ae066233783e4cbb (patch) | |
tree | 49cd1d51c8d938bb7899fcc4321b6ffb8c211768 /binutils/rescoff.c | |
parent | 0bcce8fccda1855ef118a620da622192e3e4a069 (diff) | |
download | gdb-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/rescoff.c')
-rw-r--r-- | binutils/rescoff.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/binutils/rescoff.c b/binutils/rescoff.c index e19f58a..6fc63dc 100644 --- a/binutils/rescoff.c +++ b/binutils/rescoff.c @@ -1,5 +1,5 @@ /* rescoff.c -- read and write resources in Windows COFF files. - Copyright 1997, 1998, 1999, 2000, 2003, 2007 + Copyright 1997, 1998, 1999, 2000, 2003, 2007, 2008 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support. Rewritten by Kai Tietz, Onevision. @@ -455,15 +455,12 @@ write_coff_file (const char *filename, const char *target, if (! bfd_set_file_flags (abfd, HAS_SYMS | HAS_RELOC)) bfd_fatal ("bfd_set_file_flags"); - sec = bfd_make_section (abfd, ".rsrc"); + sec = bfd_make_section_with_flags (abfd, ".rsrc", + (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"); - if (! bfd_set_symtab (abfd, sec->symbol_ptr_ptr, 1)) bfd_fatal ("bfd_set_symtab"); |