public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "Wangbing(wangbing,RTOS/Poincare Lab)" <wangbing6@huawei.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: "libc-alpha@sourceware.org" <libc-alpha@sourceware.org>,
	"szabolcs.nagy@arm.com" <szabolcs.nagy@arm.com>,
	Nixiaoming <nixiaoming@huawei.com>,
	zhongjubin <zhongjubin@huawei.com>,
	"Yanhuijun (DOPRA SSP)" <yanhuijun@huawei.com>
Subject: Re: [PATCH] dlsym: Add RTLD_PROBE to dlsym only probe symbol without add dependency.
Date: Wed, 23 Nov 2022 02:05:50 +0000	[thread overview]
Message-ID: <6b260d0416794a4e8a4c072db9be26d3@huawei.com> (raw)

>On Mon, Nov 21, 2022 at 6:36 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>>
>> On Mon, Nov 21, 2022 at 6:31 PM Wang Bing via Libc-alpha
>> <libc-alpha@sourceware.org> wrote:
>> >
>> > Signed-off-by: Wang Bing <wangbing6@huawei.com>
>> > ---
>> >  dlfcn/dlfcn.h              |  4 ++++
...
>> > +
>> > +  if (handle == RTLD_DEFAULT || handle == RTLD_PROBE)
>> >      {
>> >        match = _dl_sym_find_caller_link_map (caller);
>> >
>> > +      def_flags = flags
>> > +      if (def_flags == RTLD_DEFAULT) {
>> > +          def_flags != DL_LOOKUP_ADD_DEPENDENCY;
>>
>> What does it do?
>
>Did you mean
>
>def_flags |= DL_LOOKUP_ADD_DEPENDENCY;
>

Thanks, apologize for my mistake, I will fix it soon.

Thanks
Wangbing 

             reply	other threads:[~2022-11-23  2:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-23  2:05 Wangbing(wangbing,RTOS/Poincare Lab) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-11-22  2:30 Wang Bing
2022-11-22  2:36 ` H.J. Lu
2022-11-22 16:35   ` H.J. Lu

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=6b260d0416794a4e8a4c072db9be26d3@huawei.com \
    --to=wangbing6@huawei.com \
    --cc=hjl.tools@gmail.com \
    --cc=libc-alpha@sourceware.org \
    --cc=nixiaoming@huawei.com \
    --cc=szabolcs.nagy@arm.com \
    --cc=yanhuijun@huawei.com \
    --cc=zhongjubin@huawei.com \
    /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).