<!DOCTYPE html>
<!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;opacity:0;overflow:hidden;">
On 7 Nov 2026, Kris Van Hees uttered the following: > On Fri, Nov 06, 2026 at 01: 13: 40PM +0000, Nick Alcock wrote: >> On 30 Oct 2026, Kris Van Hees said: >> >> > Keep independent symbol and address indices for SHT_SYMTAB</div>
<!-- Preheader Text : END -->

<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;opacity:0;overflow:hidden;"></div>
<!-- Email Banner : END -->

<!-- BaNnErBlUrFlE-BoDy-end -->
<html>
<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
  #pfptBanner12fqa9a { all: revert !important; display: block !important;
    visibility: visible !important; opacity: 1 !important;
    background-color: #c2d4d4 !important;
    max-width: none !important; max-height: none !important }
  .pfptPrimaryButton12fqa9a:hover, .pfptPrimaryButton12fqa9a:focus {
    background-color: #a2b1b1 !important; }
  .pfptPrimaryButton12fqa9a:active {
    background-color: #828e8e !important; }
  html:root, html:root>body { all: revert !important; display: block !important;
    visibility: visible !important; opacity: 1 !important; }
</style>

<!-- BaNnErBlUrFlE-HeAdEr-end -->
</head><body><pre style="font-family: sans-serif; font-size: 100%; white-space: pre-wrap; word-wrap: break-word">On 7 Nov 2026, Kris Van Hees uttered the following:

> On Fri, Nov 06, 2026 at 01:13:40PM +0000, Nick Alcock wrote:
>> On 30 Oct 2026, Kris Van Hees said:
>> 
>> > Keep independent symbol and address indices for SHT_SYMTAB and SHT_DYNSYM,
>> > loading strings through each table’s sh_link. Search .symtab before .dynsym
>> > and include dynamic-only names in module symbol iteration.
>> 
>> Yet noather place where one or the other strtab was overlooked. These
>> mistakes all date right back to Solaris...
>> 
>> > Preserve .symtab indices for CTF, place dynamic and external symbols in
>> > separate ID ranges, and use .dynsym for CTF when .symtab is absent. Allow
>> 
>> Except in old dicts (CTFv2, or v3 in the absence of the CTF_F_DYNSTR
>> dict flag), .dynsym should be searched unconditionally for CTF.
>> Preferring the symtab is wrong. (I suspect this code is basically never
>> run, since it's all symtypetab stuff, and the symtypetab isn't emitted
>> for kernel CTF.)
>
> So are you saying that this should be updated (and some other existing
> code) to give preference to .dynsym for lookups, and fallback to .symtab
> if the symbol is not found in .dynsym?

At the very least. libctf simply never looks in .symtab at all unless
the appropriate bug-compat flag is turned on. For you (without easy
access to info on whether that flag is set), it makes most sense to
check both as you suggest.

-- 
NULL && (void)
</pre></body></html>