aboutsummaryrefslogtreecommitdiff
path: root/binutils/ieee.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/ieee.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/ieee.c')
-rw-r--r--binutils/ieee.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/binutils/ieee.c b/binutils/ieee.c
index 0645db9..9a61132 100644
--- a/binutils/ieee.c
+++ b/binutils/ieee.c
@@ -1,5 +1,5 @@
/* ieee.c -- Read and write IEEE-695 debugging information.
- Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2006, 2007
+ Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2006, 2007, 2008
Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>.
@@ -4676,16 +4676,12 @@ write_ieee_debugging_info (bfd *abfd, void *dhandle)
return TRUE;
}
err = NULL;
- s = bfd_make_section (abfd, ".debug");
+ s = bfd_make_section_with_flags (abfd, ".debug",
+ SEC_DEBUGGING | SEC_HAS_CONTENTS);
if (s == NULL)
err = "bfd_make_section";
if (err == NULL)
{
- if (! bfd_set_section_flags (abfd, s, SEC_DEBUGGING | SEC_HAS_CONTENTS))
- err = "bfd_set_section_flags";
- }
- if (err == NULL)
- {
bfd_size_type size;
size = 0;