mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
* emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
output_section is set non-NULL.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2001-08-13 Alan Modra <amodra@bigpond.net.au>
|
2001-08-13 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
|
||||||
|
output_section is set non-NULL.
|
||||||
|
|
||||||
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
|
||||||
`true' for SEC_EXCLUDE sections so that the generic code doesn't
|
`true' for SEC_EXCLUDE sections so that the generic code doesn't
|
||||||
needlessly create an output_section_statement. Treat a correctly
|
needlessly create an output_section_statement. Treat a correctly
|
||||||
@ -229,7 +232,7 @@
|
|||||||
|
|
||||||
2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
|
2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
|
||||||
|
|
||||||
* Makefile.am (em32relf.c): Chnage dependencu from generic.em to
|
* Makefile.am (em32relf.c): Change dependency from generic.em to
|
||||||
elf32.em.
|
elf32.em.
|
||||||
* Makefile.in: Regenerate.
|
* Makefile.in: Regenerate.
|
||||||
|
|
||||||
@ -346,7 +349,7 @@
|
|||||||
* ldlang.c (walk_wild): Only call walk_wild_file if
|
* ldlang.c (walk_wild): Only call walk_wild_file if
|
||||||
lookup_name returns something.
|
lookup_name returns something.
|
||||||
(lookup_name): If load_symbols fails, return NULL.
|
(lookup_name): If load_symbols fails, return NULL.
|
||||||
(load_symbols): Chnage to a boolean function.
|
(load_symbols): Change to a boolean function.
|
||||||
(open_input_bfds): If load_symbols fails then do not make the
|
(open_input_bfds): If load_symbols fails then do not make the
|
||||||
executable.
|
executable.
|
||||||
|
|
||||||
|
@ -1084,7 +1084,7 @@ gld${EMULATION_NAME}_place_orphan (file, s)
|
|||||||
& (SEC_LOAD | SEC_ALLOC)) == 0))
|
& (SEC_LOAD | SEC_ALLOC)) == 0))
|
||||||
{
|
{
|
||||||
/* We already have an output section statement with this
|
/* We already have an output section statement with this
|
||||||
name, and its bfd section has compatible flags. */
|
name, and its bfd section, if any, has compatible flags. */
|
||||||
wild_doit (&os->children, s, os, file);
|
wild_doit (&os->children, s, os, file);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1113,7 +1113,11 @@ 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 true;
|
{
|
||||||
|
if (s->output_section == NULL)
|
||||||
|
s->output_section = bfd_abs_section_ptr;
|
||||||
|
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