From: Florian Weimer <fweimer@redhat.com>
To: Fangrui Song <maskray@google.com>
Cc: Fangrui Song via Libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [PATCH] elf: Remove fallback to the start of DT_STRTAB for dladdr
Date: Mon, 02 May 2022 10:26:18 +0200 [thread overview]
Message-ID: <87fsls8hn9.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <20220502073034.tnhl25h43me2oggu@google.com> (Fangrui Song's message of "Mon, 2 May 2022 00:30:34 -0700")
* Fangrui Song:
> If we argue that DT_HASH is mandatory, then --hash-style=gnu breaks the ELF
> specification as well.
For the GNU ABI, one of them must be available for dynamic linking.
> My point is that a normal dynamic linking object always has either
> .hash or .gnu.hash . If neither is present, it seems pretty fair for
> dladdr to not give a symbol, just like symbol search (including
> relocation resolving and dl(v)sym) won't give any result.
Okay, let me have another look at the patch then.
Thanks,
Florian
next prev parent reply other threads:[~2022-05-02 8:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-01 21:50 Fangrui Song
2022-05-02 6:56 ` Florian Weimer
2022-05-02 7:04 ` Fangrui Song
2022-05-02 7:21 ` Florian Weimer
2022-05-02 7:30 ` Fangrui Song
2022-05-02 8:26 ` Florian Weimer [this message]
2022-05-02 8:34 ` Florian Weimer
2022-05-02 16:06 ` Fangrui Song
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=87fsls8hn9.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=maskray@google.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).