bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/20022] --gc-sections is broken with __start_ and shared library


From: hjl.tools at gmail dot com
Subject: [Bug ld/20022] --gc-sections is broken with __start_ and shared library
Date: Wed, 18 May 2016 11:45:06 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20022

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Nick Clifton from comment #9)
> Created attachment 9274 [details]
> Revised patch
> 
> Hi H.J.
> 
>   Of course, you are right.  Plus the error message was wrong - it is not
> undefined orphan section  symbols that are the problem, it is defined ones. 
> Plus, really this ought to be a warning, not an error, since garbage
> collection will work if the orphan section is referred to by non start/stop
> symbols.
> 
>   So here is a revised patch.  What do you think ?
> 

_bfd_elf_is_start_stop is called only with --gc-sections.  There is
no need to check info->gc_sections.  Also the defined __start_foo
isn't a problem.  The problem happens only when __start_foo is
defined in a shared object.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]