[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-se
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections |
Date: |
Fri, 09 Jun 2017 19:11:04 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21562
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
_bfd_elf_gc_mark_rsec has
if (start_stop != NULL)
{
/* To work around a glibc bug, mark all XXX input sections
when there is an as yet undefined reference to __start_XXX
or __stop_XXX symbols. The linker will later define such
symbols for orphan input sections that have a name
representable as a C identifier. */
asection *s = _bfd_elf_is_start_stop (info, h);
if (s != NULL)
{
*start_stop = !s->gc_mark;
return s;
}
}
The question is if ELF linker automatically creates a definition when
there is a reference, regardless if the input section is orphan or not.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/21562] New: Refs to __start_SCN of non-orphan sections affect --gc-sections, amonakov at gmail dot com, 2017/06/09
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections,
hjl.tools at gmail dot com <=
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections, hjl.tools at gmail dot com, 2017/06/09
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections, hjl.tools at gmail dot com, 2017/06/09
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections, hjl.tools at gmail dot com, 2017/06/09
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections, hjl.tools at gmail dot com, 2017/06/09
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections, hjl.tools at gmail dot com, 2017/06/10
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections, hjl.tools at gmail dot com, 2017/06/10
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections, hjl.tools at gmail dot com, 2017/06/10
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections, amonakov at gmail dot com, 2017/06/10
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections, hjl.tools at gmail dot com, 2017/06/10
- [Bug ld/21562] Refs to __start_SCN of non-orphan sections affect --gc-sections, amonakov at gmail dot com, 2017/06/11