bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22843] Provide dependency information from the linker similar to


From: nickc at redhat dot com
Subject: [Bug ld/22843] Provide dependency information from the linker similar to the compiler
Date: Tue, 20 Feb 2018 08:32:53 +0000

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

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi Jpakkane,

  Actually you can already do this using the linker's -Map option.

  For example:

    % gcc -c -Wl,-Map,fred.map source.o -L/path1 -L.path2 -lmydep

    % grep LOAD fred.map
    LOAD /path2/libmydep.a

  It might take a bit of munging to convert the data in the linker's
  map file into a dependency file, but I am sure that you could write
  a script to do it.

Cheers
  Nick

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