From: davek Date: Fri, 3 Jul 2009 16:07:38 +0000 (+0000) Subject: 2009-07-03 Dave Korn X-Git-Tag: cgen-snapshot-20091101~1788 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5cdc7b27bfbc4f4f071b4873da81724faecee499;p=pf3gnuchains%2Fpf3gnuchains4x.git 2009-07-03 Dave Korn * coffcode.h (sec_to_styp_flags): Partially revert (functional changes only) earlier patch:- 2009-06-25 Kai Tietz * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1c0a571695..cbaee4ec43 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,15 @@ +2009-07-03 Dave Korn + + * coffcode.h (sec_to_styp_flags): Partially revert (functional + changes only) earlier patch:- + + 2009-06-25 Kai Tietz + + * 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 * aoutx.h (aout_get_external_symbols): Declare 'amt' locally. diff --git a/bfd/coffcode.h b/bfd/coffcode.h index d66d98aa89..4b748b4fab 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 */