public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [commit] Fix magic number passed to bfd_set_section_flags
@ 2005-02-23 17:35 Andrew Cagney
  0 siblings, 0 replies; only message in thread
From: Andrew Cagney @ 2005-02-23 17:35 UTC (permalink / raw)
  To: gdb-patches; +Cc: binutils

[-- Attachment #1: Type: text/plain, Size: 99 bytes --]

This explains the `wierd' GDB failures that fell out of H.J.s SEC_XXX 
cleanup.

committed,
Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 856 bytes --]

2005-02-23  Andrew Cagney  <cagney@gnu.org>

	* cli/cli-dump.c (dump_bfd_file): Replace magic constant with
	SEC_XXX flags.

Index: cli/cli-dump.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-dump.c,v
retrieving revision 1.20
diff -p -u -r1.20 cli-dump.c
--- cli/cli-dump.c	21 Feb 2005 07:15:49 -0000	1.20
+++ cli/cli-dump.c	23 Feb 2005 15:23:24 -0000
@@ -218,7 +218,9 @@ dump_bfd_file (const char *filename, con
   bfd_set_section_size (obfd, osection, len);
   bfd_set_section_vma (obfd, osection, vaddr);
   bfd_set_section_alignment (obfd, osection, 0);
-  bfd_set_section_flags (obfd, osection, 0x203);
+  bfd_set_section_flags (obfd, osection, (SEC_HAS_CONTENTS
+					  | SEC_ALLOC
+					  | SEC_LOAD));
   osection->entsize = 0;
   bfd_set_section_contents (obfd, osection, buf, 0, len);
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-23 15:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-23 17:35 [commit] Fix magic number passed to bfd_set_section_flags Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).