URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 161 |
Rev 163 |
Line 668... |
Line 668... |
but there are more IMAGE_SCN_* flags. */
|
but there are more IMAGE_SCN_* flags. */
|
|
|
/* FIXME: There is no gas syntax to specify the debug section flag. */
|
/* FIXME: There is no gas syntax to specify the debug section flag. */
|
if (is_dbg)
|
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;
|
sec_flags |= SEC_DEBUGGING | SEC_READONLY;
|
}
|
}
|
|
|
/* skip LOAD */
|
/* skip LOAD */
|
/* READONLY later */
|
/* READONLY later */
|
Line 696... |
Line 698... |
styp_flags |= IMAGE_SCN_LNK_REMOVE;
|
styp_flags |= IMAGE_SCN_LNK_REMOVE;
|
/* skip IN_MEMORY */
|
/* skip IN_MEMORY */
|
/* skip SORT */
|
/* skip SORT */
|
if (sec_flags & SEC_LINK_ONCE)
|
if (sec_flags & SEC_LINK_ONCE)
|
styp_flags |= IMAGE_SCN_LNK_COMDAT;
|
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 */
|
/* skip LINKER_CREATED */
|
|
|
if ((sec_flags & SEC_COFF_NOREAD) == 0)
|
if ((sec_flags & SEC_COFF_NOREAD) == 0)
|
styp_flags |= IMAGE_SCN_MEM_READ; /* Invert NOREAD for read. */
|
styp_flags |= IMAGE_SCN_MEM_READ; /* Invert NOREAD for read. */
|
if ((sec_flags & SEC_READONLY) == 0)
|
if ((sec_flags & SEC_READONLY) == 0)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.