From: Mark Wielaard <mark@klomp.org>
To: elfutils-devel@sourceware.org
Subject: Re: [PATCH] libdw: Skip zero entries in aranges
Date: Mon, 09 Oct 2023 18:10:39 +0200 [thread overview]
Message-ID: <c83cf93f28d91f3da78994fb6ba3529aaaa4237b.camel@klomp.org> (raw)
In-Reply-To: <20231006120329.340788-1-mark@klomp.org>
Hi,
On Fri, 2023-10-06 at 14:03 +0200, Mark Wielaard wrote:
> An address/length entry of two zeros is supposed to mark the end of a
> table. But in some cases a producer might leave zero entries in the
> table (for example when using gcc -ffunction-sections -gc-sections).
>
> Since we know the lenght of the table we can just skip such entries
> and continue to the end.
>
> * libdw/dwarf_getaranges.c (dwarf_getaranges): Calculate endp.
> When seeing two zero values, check we are at endp.
Pushed.
Cheers,
Mark
prev parent reply other threads:[~2023-10-09 16:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-06 12:03 Mark Wielaard
2023-10-09 16:10 ` Mark Wielaard [this message]
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=c83cf93f28d91f3da78994fb6ba3529aaaa4237b.camel@klomp.org \
--to=mark@klomp.org \
--cc=elfutils-devel@sourceware.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).