From Fedora Project Wiki

< It IT‎ | Releases

Revision as of 09:50, 9 February 2010 by Lewis41 (talk | contribs) (Created page with '= Change to the default behaviour of ld = == Sommario == Change DSO-linking semantics of the gcc compiler. Previously calls to the linker (ld) from gcc would result in dangerous...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Change to the default behaviour of ld

Sommario

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.

Progettista

Stato corrente

Per informazioni aggiornate sullo stato corrente di ChangeInImplicitDSOLinking, visitare la pagina originale.

Descrizione dettagliata

Change the default behaviour of ld. The current default behaviour causes DT_NEEDED tags to be automatically emitted for all dependencies of linked libraries. Effectively this means that if you link to lib1 and lib1 depends on lib2, then your program will automatically get lib2 regardless of whether lib2 is used in your program itself. There are some problems with this approach. For example, if your program requires symbols from lib2 but relies on the implicit link via lib1, then your program is vulnerable to changes to lib1's dependencies. For more information, please see UnderstandingDSOLinkChange. There has also been some discussion of this and other related issues on the mailing list: http://www.opensubscriber.com/message/devel@lists.fedoraproject.org/13259010.html

Vantaggi per 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.

Documentazione

Description and example is up in UnderstandingDSOLinkChange

Note di rilascio

In Fedora 13, the the default behaviour of ld changed. The new linker behaviour will no longer automatically link dependencies of the specified libraries.

Altre informazioni

Per:

  • Obbiettivi
  • Test Plan
  • Esperienza Utente
  • Dipendenze
  • Progetto corrente
  • Commenti e Discussioni

consultare la pagina originale di questo documento.