eu-strip on .rustc section produce error information
chenziyang (C)
chenziyang4@huawei.com
Thu Jul 20 13:14:02 GMT 2023
Hi elfutils maintainers
I am running 'rpmbuild -ba sysmaster.spec', and produce following error info:
eu-strip: Cannot remove symbol [742] from allocated symbol table [3]
This error is caused by strip_to_debug() function in /usr/bin/find-debuginfo.sh which is triggered by rpm-build
[cid:image003.png@01D9BB4F.19E5EE90]
Steps to Reproduce:
eu-strip -R .rustc libtarget_1.so
Actual result:
eu-strip: Cannot remove symbol [742] from allocated symbol table [3]
OR
eu-strip -remove-comment libtarget.so.debug1 libtarget_1.so
Actual result: eu-strip: Cannot remove symbol [742] from allocated symbol table [3]
Expected:
eu-strip runs without error info
I am wondering is this an error in strip.c? Because from 1380961<https://bugzilla.redhat.com/show_bug.cgi?id=1380961> Mark said 'The .rustc section is a non-allocated section' and the comment in strip.c said 'Removing a real symbol from an allocated symbol table is hard and probably a mistake'. There seems to be a conflict.
Please let me know if you need any further information or if there is anything else I can do to help. I appreciate your time and look forward to hearing back from you soon.
Best regards,
Ziyang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 60696 bytes
Desc: image003.png
URL: <https://sourceware.org/pipermail/elfutils-devel/attachments/20230720/21ad4d92/attachment-0001.png>
More information about the Elfutils-devel
mailing list