[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU strip fails to set sh_link and sh_info on Solaris SPARC64
From: |
Libor Bukata |
Subject: |
GNU strip fails to set sh_link and sh_info on Solaris SPARC64 |
Date: |
Mon, 1 Mar 2021 11:36:43 +0000 |
Hello,
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.
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?
$ gstrip ./hello
gstrip: ./stxsKVxc: failed to find link section for section 27
gstrip: ./stxsKVxc: failed to find link section for section 27
gstrip: ./stxsKVxc: failed to find link section for section 28
gstrip: ./stxsKVxc: failed to find link section for section 28
$ gstrip -R .SUNW_symtabsort -R .SUNW_symtabnsort hello
<empty>
Regards,
Libor
0001-GNU-strip-fails-to-set-sh_link-and-sh_info-on-Solari.patch
Description: 0001-GNU-strip-fails-to-set-sh_link-and-sh_info-on-Solari.patch
- GNU strip fails to set sh_link and sh_info on Solaris SPARC64,
Libor Bukata <=
- Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64, Nick Clifton, 2021/03/01
- Re: Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64, Libor Bukata, 2021/03/02
- Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64, Nick Clifton, 2021/03/02
- Re: Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64, Libor Bukata, 2021/03/03
- Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64, Nick Clifton, 2021/03/05
- Re: Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64, Libor Bukata, 2021/03/05