public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* LD linker map, get absolute path of referenced files
@ 2020-12-30 22:17 Hugo A
  2021-01-13 11:08 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Hugo A @ 2020-12-30 22:17 UTC (permalink / raw)
  To: binutils

Hi, and thanks for your work. I have trouble parsing linker maps generated
by ld 2.28, where examples over the internet seem to get absolute path
right away. Here is the SO link to a more detailed/formated question:
https://stackoverflow.com/questions/65514075/force-absolute-path-in-linker-maps
.

I would  also be really interested on how to access the same kind of
information over the dynamic linking step. Is there really no way to get
more inside on what ld does during symbol resolution?

Best regard

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LD linker map, get absolute path of referenced files
  2020-12-30 22:17 LD linker map, get absolute path of referenced files Hugo A
@ 2021-01-13 11:08 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2021-01-13 11:08 UTC (permalink / raw)
  To: Hugo A, binutils

Hi Hugo,

> I have trouble parsing linker maps generated
> by ld 2.28, where examples over the internet seem to get absolute path
> right away. Here is the SO link to a more detailed/formated question:
> https://stackoverflow.com/questions/65514075/force-absolute-path-in-linker-maps

Currently linker maps always report the paths as they were provided on
the command line (or via library resolution and linker script parsing).
In order to report absolute paths it would be necessary to add code to
the linker to do this.  If this is a feature that you feel is important
then please file an enhancement request here:

   https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils

If you would like to have a go at creating a patch to implement the feature
and submitting it along with the PR request that would be fantastic.  The
code you will want to edit is in ld/ldlang.c.


> I would  also be really interested on how to access the same kind of
> information over the dynamic linking step. Is there really no way to get
> more inside on what ld does during symbol resolution?

The dynamic linker is actually part of the glibc project, not the binutils
so you will probably be able to get more information by asking over there.
If you read the ld.so manual page you will see that there is an environment
variable LD_DEBUG which you can set in order to gain more information about
the dynamic linking process.

Cheers
   Nick



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-13 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-30 22:17 LD linker map, get absolute path of referenced files Hugo A
2021-01-13 11:08 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).