mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
* ecoff.c (ecoff_mkobject_hook): Don't set SEC_SHARED_LIBRARY flag
for .reginfo section here. (ecoff_new_section_hook): Set it here instead.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Fri Jan 7 15:40:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
* ecoff.c (ecoff_mkobject_hook): Don't set SEC_SHARED_LIBRARY flag
|
||||||
|
for .reginfo section here.
|
||||||
|
(ecoff_new_section_hook): Set it here instead.
|
||||||
|
|
||||||
Fri Jan 7 10:29:27 1994 Stan Shebs (shebs@andros.cygnus.com)
|
Fri Jan 7 10:29:27 1994 Stan Shebs (shebs@andros.cygnus.com)
|
||||||
|
|
||||||
* bfd-in.h: (bfd_boolean): Add workaround for systems that also
|
* bfd-in.h: (bfd_boolean): Add workaround for systems that also
|
||||||
|
@ -113,8 +113,6 @@ ecoff_mkobject_hook (abfd, filehdr, aouthdr)
|
|||||||
regsec = bfd_make_section (abfd, REGINFO);
|
regsec = bfd_make_section (abfd, REGINFO);
|
||||||
if (regsec == NULL)
|
if (regsec == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
/* Tell the linker to leave this section completely alone. */
|
|
||||||
regsec->flags = SEC_SHARED_LIBRARY;
|
|
||||||
|
|
||||||
if (internal_a != (struct internal_aouthdr *) NULL)
|
if (internal_a != (struct internal_aouthdr *) NULL)
|
||||||
{
|
{
|
||||||
@ -174,7 +172,11 @@ ecoff_new_section_hook (abfd, section)
|
|||||||
section->flags |= SEC_ALLOC;
|
section->flags |= SEC_ALLOC;
|
||||||
else if (strcmp (section->name, REGINFO) == 0)
|
else if (strcmp (section->name, REGINFO) == 0)
|
||||||
{
|
{
|
||||||
section->flags |= SEC_HAS_CONTENTS | SEC_NEVER_LOAD;
|
/* Setting SEC_SHARED_LIBRARY should make the linker leave the
|
||||||
|
section completely alone. */
|
||||||
|
section->flags |= (SEC_SHARED_LIBRARY
|
||||||
|
| SEC_HAS_CONTENTS
|
||||||
|
| SEC_NEVER_LOAD);
|
||||||
section->_raw_size = sizeof (struct ecoff_reginfo);
|
section->_raw_size = sizeof (struct ecoff_reginfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user