Re: Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64

2021-03-05 Thread Libor Bukata
Hi Nick, On 3/5/21 12:11 PM, Nick Clifton wrote: Hi Libor, thank you for ideas. Obviously, the biggest problem is that we know too late whether the symbol section is empty and it is difficult to remove already created output sections (requires hacks). In that case, a safer and cleaner soluti

Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64

2021-03-05 Thread Nick Clifton
Hi Libor, thank you for ideas. Obviously, the biggest problem is that we know too late whether the symbol section is empty and it is difficult to remove already created output sections (requires hacks). In that case, a safer and cleaner solution (but slow) is to call strip in two phases> Not

Re: Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64

2021-03-03 Thread Libor Bukata
Hi Nick, On 3/2/21 5:36 PM, Nick Clifton wrote: Hi Libor, Unfortunately the above code does not work for the following reasons: - sections are already created in that point of code - symbol filtering requires output sections to be created - cannot find bfd_remove_section function that could h

Re: [External] : Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64

2021-03-03 Thread Libor Bukata
Hi Nick, On 3/2/21 5:21 PM, Nick Clifton wrote: Hi Libor, Patch approved - please apply. thank you for your approval. How can I obtain a write permission to binutils repository? Ah right.  First of all do you have a FSF Copyright assignment for the binutils ? I assume, based upon your emai

Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64

2021-03-02 Thread Nick Clifton
Hi Libor, Unfortunately the above code does not work for the following reasons: - sections are already created in that point of code - symbol filtering requires output sections to be created - cannot find bfd_remove_section function that could handle it However, this code removes the section

Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64

2021-03-02 Thread Nick Clifton
Hi Libor, Patch approved - please apply. thank you for your approval. How can I obtain a write permission to binutils repository? Ah right. First of all do you have a FSF Copyright assignment for the binutils ? I assume, based upon your email address, that you are working for Oracle and t

Re: Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64

2021-03-01 Thread Libor Bukata
Hi Nick, On 3/1/21 4:00 PM, Nick Clifton wrote: 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://urldefense.com/v3/__https://sourceware.org/bugzilla/show_bug.cgi?id=19938__;!!GqivPVa7Brio!LHjGCJnVDPytceZx

Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64

2021-03-01 Thread Nick Clifton
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 - ple

GNU strip fails to set sh_link and sh_info on Solaris SPARC64

2021-03-01 Thread Libor Bukata
rt -R .SUNW_symtabnsort hello Regards, LiborFrom 123ae61a418614cf00f3cfb46d0a01df42309dea Mon Sep 17 00:00:00 2001 From: Libor Bukata Date: Mon, 1 Mar 2021 12:08:31 +0100 Subject: [PATCH] GNU strip fails to set sh_link and sh_info on Solaris SPARC64 The patch adds a mi