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, 11 May 2016 13:55:43 +0000

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

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Nick Clifton from comment #5)
> (In reply to H.J. Lu from comment #4)
> 
> > Somewhere in _bfd_elf_is_start_stop?
> 
> I don't think that will work.  We only want to trigger if an orphan section
> is being referenced solely via its start/stop symbols, and I don't think that
> we can determine this in _bfd_elf_is_start_stop.
> 
> Still if you have a potential patch to suggest I would be happy to take a
> look.

I don't have a real patch.  This patch:

https://sourceware.org/ml/binutils/2016-04/msg00449.html

contains changes to _bfd_elf_is_start_stop to detect such
case.  It may be used to issue an error.

> I think that the patch should produce a warning/error message, rather than an
> abort however, since the user is not doing anything wrong.

An error is better.

-- 
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]