Hi Libor,
I noticed that GNU strip produced invalid binaries on SPARC 64, the reason is
that bfd/elf64-sparc.c was not updated in
https://sourceware.org/bugzilla/show_bug.cgi?id=19938 issue.
The attached patch just follows Nick Clifton's changes for other architectures.
Patch approved - please apply.
Note that .SUNW_symtabsort, .SUNW_symtabnsort, and .SUNW_symtlssort sections
refer to .symtab section, therefore, if .symtab is removed, theses sections
should be skipped in copy as well. However, I am not sure how to properly
implement it, maybe use handle_remove_section_option if the number of symbols
is zero?
That should probably work. If you have the time, please could you give it a
try.
Cheers
Nick