Lines Matching +full:g +full:- +full:link
1 --warn-backrefs
4 ``--warn-backrefs`` gives a warning when an undefined symbol reference is
10 ``--start-lib`` and ``--end-lib`` that archive will be searched for resolving
21 backward references. If there are cyclic references then the ``--start-group``
22 and ``--end-group`` options can be used, or the same archive can be placed on
29 ``--start-group`` and ``--end-group`` options are redundant.
32 linker command line can result in different outcomes. A link may succeed with
37 The ``warn-backrefs`` option provides information that helps identify cases
40 | % ld.lld --warn-backrefs ... -lB -lA
43 | % ld.lld --warn-backrefs ... --start-lib B/b.o --end-lib --start-lib A/a.o --end-lib
46 …# To suppress the warning, you can specify --warn-backrefs-exclude=<glob> to match B/b.o or B.a(b.…
48 The ``--warn-backrefs`` option can also provide a check to enforce a
56 ``B``, your link may fail surprisingly with ``undefined symbol:
60 * If adding the dependency forms a cycle, e.g. ``B->C->A ~> B``. ``A``
62 highest level. When you are developing ``C_test`` testing ``C``, your link may
66 ``C_test``) will link against every library. This breaks the motivation
68 unnecessarily large. Moreover, the layering violation makes lower-level
69 libraries (e.g. ``A``) vulnerable to changes to higher-level libraries (e.g.
78 surrounding it with ``--whole-archive`` and ``--no-whole-archive``.
84 * ``A.a B A2.so``: ``A.a`` may be used as an interceptor (e.g. it provides some
86 about ``A.a``, and ``A.a`` may be pulled into the link by other part of the
87 program. For linker portability, consider ``--whole-archive`` and
88 ``--no-whole-archive``.
90 * ``A.a B A2.a``: similar to the above case but ``--warn-backrefs`` does not
93 a pair of ``--start-group`` and ``--end-group``. This is especially common
94 among system libraries (e.g. ``-lc __isnanl references -lm``, ``-lc
95 _IO_funlockfile references -lpthread``, ``-lc __gcc_personality_v0 references
96 -lgcc_eh``, and ``-lpthread _Unwind_GetCFA references -lunwind``).