public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Luis Machado via Libc-alpha <libc-alpha@sourceware.org>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>,
	 Luis Machado <luis.machado@linaro.org>,
	 doko@debian.org
Subject: Re: GDB shared library tracking with stap probes x _dl_debug_state
Date: Fri, 07 May 2021 22:44:16 +0200	[thread overview]
Message-ID: <878s4qb7fj.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <b0b35028-2463-dd00-14af-22be2e7b6ff6@linaro.org> (Luis Machado via Libc-alpha's message of "Fri, 7 May 2021 16:42:03 -0300")

* Luis Machado via Libc-alpha:

> That's all fine, but there is one small detail that doesn't work for
> armhf, and that is discovering if we're dealing with a PC that is arm 
> mode or thumb mode.

Is it possible to recognize Arm mode vs thumb mode based on the NOP
encoding at the probe address?

> 2 - Not stripping ld.so/glibc. I can't determine the impact of this
> choice, but distros strip binaries for a reason. Having to carry all 
> symbols for a particular library may not be desirable.

We are switching Fedora to not strip ld.so, primarily for introspection
purposes in Systemtap.

(In Fedora, we've preserved the symbol table for ages, to make valgrind
work.)

Thanks,
Florian


  reply	other threads:[~2021-05-07 20:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-07 19:42 Luis Machado
2021-05-07 20:44 ` Florian Weimer [this message]
2021-05-07 21:44   ` Luis Machado
2021-05-07 21:56     ` Sergio Durigan Junior
2021-05-08 10:55       ` Florian Weimer
2021-05-10 14:16         ` Luis Machado
2021-05-11  8:00           ` Ulrich Weigand
2021-05-24 14:22           ` Luis Machado

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878s4qb7fj.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=doko@debian.org \
    --cc=gdb@sourceware.org \
    --cc=libc-alpha@sourceware.org \
    --cc=luis.machado@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).