aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2009-07-03 16:07:38 +0000
committerDave Korn <dave.korn@artimi.com>2009-07-03 16:07:38 +0000
commit4a7688702f0c2beaa927b430cdb163b4ee7d594d (patch)
tree9563df671792162f27eaa97602bb887f56c0fb73 /bfd
parent5cd226f27555deecd8cb96019e0e915c7c7c2a3c (diff)
downloadgdb-4a7688702f0c2beaa927b430cdb163b4ee7d594d.zip
gdb-4a7688702f0c2beaa927b430cdb163b4ee7d594d.tar.gz
gdb-4a7688702f0c2beaa927b430cdb163b4ee7d594d.tar.bz2
2009-07-03 Dave Korn <dave.korn.cygwin@gmail.com>
* coffcode.h (sec_to_styp_flags): Partially revert (functional changes only) earlier patch:- 2009-06-25 Kai Tietz <kai.tietz@onevision.com> * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and give .debug and .reloc data characteristics. (DOT_RELOC): New define for .reloc section string. (coff_write_object_contents): Use DOT_RELOC instead of string.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog12
-rw-r--r--bfd/coffcode.h7
2 files changed, 13 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1c0a571..cbaee4e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,15 @@
+2009-07-03 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ * coffcode.h (sec_to_styp_flags): Partially revert (functional
+ changes only) earlier patch:-
+
+ 2009-06-25 Kai Tietz <kai.tietz@onevision.com>
+
+ * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
+ give .debug and .reloc data characteristics.
+ (DOT_RELOC): New define for .reloc section string.
+ (coff_write_object_contents): Use DOT_RELOC instead of string.
+
2009-07-02 Tom Tromey <tromey@redhat.com>
* aoutx.h (aout_get_external_symbols): Declare 'amt' locally.
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index d66d98a..4b748b4 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -646,12 +646,7 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags)
/* FIXME: There is no gas syntax to specify the debug section flag. */
if (CONST_STRNEQ (sec_name, DOT_DEBUG)
|| CONST_STRNEQ (sec_name, GNU_LINKONCE_WI))
- sec_flags = SEC_DATA | SEC_LOAD | SEC_ALLOC | SEC_DEBUGGING | SEC_READONLY;
- else if (CONST_STRNEQ (sec_name, DOT_RELOC))
- {
- sec_flags = SEC_DATA | SEC_LOAD | SEC_ALLOC | SEC_READONLY;
- styp_flags |= IMAGE_SCN_MEM_DISCARDABLE;
- }
+ sec_flags = SEC_DEBUGGING | SEC_READONLY;
/* skip LOAD */
/* READONLY later */