This is the mail archive of the
mailing list for the elfutils project.
Re: Malformed phdrs in separated debuginfo
- From: Roland McGrath <roland at hack dot frob dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 28 Feb 2014 13:26:19 -0800
- Subject: Re: Malformed phdrs in separated debuginfo
A separate debuginfo file is a special animal and I don't think we should
expect that every random thing that handles fully-formed ELF files will
handle debuginfo files without being confused.
I think extra header bits and such are a rat-hole of effort, hassle, and
slow deployment, with very little payoff. I'm against that idea.
Heuristically, a separate debuginfo file with phdrs can be recognized by
there being SHT_NOBITS sections whose sh_addr places them in parts of
PT_LOAD segments that cannot be the bss-like case. If any section with
SHT_NOBITS,SHF_ALLOC has its sh_addr fall inside the range [p_vaddr,
p_vaddr+p_filesz) of a PT_LOAD segment, it's either a debuginfo file or a