Change to the default behaviour of ld
Change DSO-linking semantics of the gcc compiler. Previously calls to the linker (ld) from gcc would result in dangerous default behaviour where ld would attempt to implicitly satisfy link requirements. The proposed change will prevent ld from automatically searching in the dependencies of linked objects.
- Name: Charley Wang
- E-mail: firstname.lastname@example.org
- Targeted release: Fedora 13
- Last updated: 2009-11-25
- Percentage of completion: 50%
- Mass builds: Completed one mass-build of Fedora-13 packages -- a list of packages that were broken at the time of the mass-build can be found at DSOLinkBugs
Change the default behaviour of ld. Previously the ld command would default to --add-needed, the change would cause ld to default to --no-add-needed. This will prevent ld from automatically searching in the dependencies of linked objects.
Benefit to Fedora
As described in UnderstandingDSOLinkChange, the new default behaviour will help address potential problems further down the line if shared objects ever change their dependencies.
Changes the default behaviour of ld, which will affect compilation.
- Run mass mock builds, notify owners of packages that have problems under the new ld.
Some packages and users writing programs may need to explicitly link shared objects if they have neglected to do so.
- Continue without such capability.
Description and example is up in UnderstandingDSOLinkChange
In Fedora 13, the the default behaviour of
ld changed. Previously the
ld command would default to
ld to defaults to