mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
`true' for SEC_EXCLUDE sections so that the generic code doesn't needlessly create an output_section_statement. Treat a correctly named output_section_statement with NULL bfd_section as compatible.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2001-08-13 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
|
||||||
|
`true' for SEC_EXCLUDE sections so that the generic code doesn't
|
||||||
|
needlessly create an output_section_statement. Treat a correctly
|
||||||
|
named output_section_statement with NULL bfd_section as compatible.
|
||||||
|
|
||||||
2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
|
2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
|
||||||
|
|
||||||
* emultempl/generic.em: Support EXTRA_EM_FILE.
|
* emultempl/generic.em: Support EXTRA_EM_FILE.
|
||||||
|
@ -1079,11 +1079,12 @@ gld${EMULATION_NAME}_place_orphan (file, s)
|
|||||||
os = lang_output_section_find (secname);
|
os = lang_output_section_find (secname);
|
||||||
|
|
||||||
if (os != NULL
|
if (os != NULL
|
||||||
&& os->bfd_section != NULL
|
&& (os->bfd_section == NULL
|
||||||
&& ((s->flags ^ os->bfd_section->flags)
|
|| ((s->flags ^ os->bfd_section->flags)
|
||||||
& (SEC_LOAD | SEC_ALLOC)) == 0)
|
& (SEC_LOAD | SEC_ALLOC)) == 0))
|
||||||
{
|
{
|
||||||
/* We have already placed a section with this name. */
|
/* We already have an output section statement with this
|
||||||
|
name, and its bfd section has compatible flags. */
|
||||||
wild_doit (&os->children, s, os, file);
|
wild_doit (&os->children, s, os, file);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1112,7 +1113,7 @@ gld${EMULATION_NAME}_place_orphan (file, s)
|
|||||||
(hold.os != NULL || (hold.os = lang_output_section_find (name)) != NULL)
|
(hold.os != NULL || (hold.os = lang_output_section_find (name)) != NULL)
|
||||||
|
|
||||||
if (s->flags & SEC_EXCLUDE)
|
if (s->flags & SEC_EXCLUDE)
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
place = NULL;
|
place = NULL;
|
||||||
if ((s->flags & SEC_ALLOC) == 0)
|
if ((s->flags & SEC_ALLOC) == 0)
|
||||||
|
Reference in New Issue
Block a user