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

Reply via email to