* coffcode.h (sec_to_styp_flags): Handle
SEC_LINK_DUPLICATES_SAME_CONTENTS, and SEC_LINK_DUPLICATES_SAME_SIZE.
This commit is contained in:
parent
ebe9c501ff
commit
2b914c2b41
2 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-09-27 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
* coffcode.h (sec_to_styp_flags): Handle
|
||||
SEC_LINK_DUPLICATES_SAME_CONTENTS, and
|
||||
SEC_LINK_DUPLICATES_SAME_SIZE.
|
||||
|
||||
2011-09-22 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* configure.in: Bump version to 2.22.51
|
||||
|
|
|
@ -670,7 +670,9 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags)
|
|||
/* FIXME: There is no gas syntax to specify the debug section flag. */
|
||||
if (is_dbg)
|
||||
{
|
||||
sec_flags &= (SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD);
|
||||
sec_flags &= (SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD
|
||||
| SEC_LINK_DUPLICATES_SAME_CONTENTS
|
||||
| SEC_LINK_DUPLICATES_SAME_SIZE);
|
||||
sec_flags |= SEC_DEBUGGING | SEC_READONLY;
|
||||
}
|
||||
|
||||
|
@ -698,7 +700,11 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags)
|
|||
/* skip SORT */
|
||||
if (sec_flags & SEC_LINK_ONCE)
|
||||
styp_flags |= IMAGE_SCN_LNK_COMDAT;
|
||||
/* skip LINK_DUPLICATES */
|
||||
if ((sec_flags
|
||||
& (SEC_LINK_DUPLICATES_DISCARD | SEC_LINK_DUPLICATES_SAME_CONTENTS
|
||||
| SEC_LINK_DUPLICATES_SAME_SIZE)) != 0)
|
||||
styp_flags |= IMAGE_SCN_LNK_COMDAT;
|
||||
|
||||
/* skip LINKER_CREATED */
|
||||
|
||||
if ((sec_flags & SEC_COFF_NOREAD) == 0)
|
||||
|
|
Loading…
Reference in a new issue