[lldb-dev] [PATCH] Don't calculate whole file crc for ELF core file.

Ed Maste emaste at freebsd.org
Mon Mar 24 10:52:54 PDT 2014


On 23 March 2014 14:28, Piotr Rak <piotr.rak at gmail.com> wrote:
>
> If I understand correctly the main purpose of UUID's for ObjectFileELF is
> aiding gnu_debuglink which is used to locate debug info. The other one is
> related to ModuleSpec and ModuleList where it is used for identification.
>
> First in case of modules doesn't make much sense, it won't be correct, or
> have even possibility to work, while second turns out to be useful, anyway.

gnu_debuglink uses the CRC to confirm that a standalone debug file
(e.g. library.so.debug) matches the binary or library, and needs to be
calculated only for those debug files.  In fact, prior to the
gnu_debuglink support I think ELF files all ended up with an all-0s
UUID.  I think your change is a reasonable first step.

-Ed



More information about the lldb-dev mailing list