bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21705] ld disappears up own butt never to return (a curious case


From: amodra at gmail dot com
Subject: [Bug ld/21705] ld disappears up own butt never to return (a curious case?)
Date: Tue, 04 Jul 2017 08:48:36 +0000

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

--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
With regard to Y_UP, you may be in trouble due to compiling without
optimization.  
See https://sourceware.org/ml/binutils/2012-12/msg00088.html for example, where
I'm being schooled about this.  (I only pretend to be a C++ programmer.)

You also might not understand the way archives behave with GNU ld and other
unix linkers.  Object files are only extracted to satisfy undefined references
at the point the archive is searched.  A reference from a later object file,
perhaps from another archive, won't cause the earlier object to be extracted. 
You can change that by enclosing archives on the command line with
--start-group --end-group.  See the ld documentation.

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