Bug 516

Summary: Change Dynamic Shared Object (DSO) linking to be explicit
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Joshua Lock - Disabled <josh>
Component: meta-yoctoAssignee: Nitin Kamble <nitin.a.kamble>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: ke.yu, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 1.0   
Target Milestone: 1.0 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Joshua Lock - Disabled 2010-11-01 08:03:35 UTC
By the default the gcc linker will automatically link any dependant objects/libraries.

"Inherited" linkages can cause issues, for example, where a shared object changes its dependencies but a program has come to rely on symbols from an implicitly linked library.

Fedora 13 adopted explicit link requirements and have some deeper explanation of the matter:
https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
https://fedoraproject.org/wiki/UnderstandingDSOLinkChange
Comment 1 Joshua Lock - Disabled 2010-11-01 08:17:43 UTC
Fedora use the following patch to gcc: http://pkgs.fedoraproject.org/gitweb/?p=gcc.git;a=blob_plain;f=gcc45-no-add-needed.patch;hb=HEAD

we may also need a slightly newer binutils
Comment 2 Nitin Kamble 2010-12-15 09:53:12 UTC
I will look into this.
Comment 3 Nitin Kamble 2011-01-07 10:10:55 UTC
(In reply to comment #1)
> 
> we may also need a slightly newer binutils

Josh,
 Why slightly newer binutils is needed ?
Comment 4 Nitin Kamble 2011-01-21 11:20:15 UTC
As of today the patch is in the master: http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=95fc6ae1649c86b5c2686385772cda35f5e7631f
Comment 5 Joshua Lock - Disabled 2011-01-28 03:43:34 UTC
Verify this as in master and working