* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
SEC_EXCLUDE sections when doing a relocatable link.
This commit is contained in:
parent
dc156bc0bb
commit
1d475d825e
|
@ -1,3 +1,8 @@
|
|||
2002-06-05 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
|
||||
SEC_EXCLUDE sections when doing a relocatable link.
|
||||
|
||||
2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
|
||||
|
||||
* Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
|
||||
|
|
|
@ -1107,7 +1107,7 @@ gld${EMULATION_NAME}_place_orphan (file, s)
|
|||
#define HAVE_SECTION(hold, name) \
|
||||
(hold.os != NULL || (hold.os = lang_output_section_find (name)) != NULL)
|
||||
|
||||
if (s->flags & SEC_EXCLUDE)
|
||||
if ((s->flags & SEC_EXCLUDE) != 0 && !link_info.relocateable)
|
||||
{
|
||||
if (s->output_section == NULL)
|
||||
s->output_section = bfd_abs_section_ptr;
|
||||
|
|
Loading…
Reference in New Issue