* Richard W. M. Jones:

> Thinking about this a bit more, the implementation of this feature
> simply seems to be wrong.  RPM already has a final stage where it
> strips ELF files and builds debuginfo.  Why wasn't the addition of
> package notes done there?

The package notes are in an allocatable section, to be mapped at run
time, so that they end up in core files.  As far as I know, it's not
reliably possible to add such data to an ELF file after the final
(non-relocatable) link.

We would have to pre-allocate some fixed space and fill it in later.

Cleaner approaches are possible if we teach the core dumper how to copy
select data from non-allocated sections.  I think we would then need
just a placeholder program header.

Thanks,
Florian
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to