bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Nick Clifton
Subject: Re: GNU strip fails to set sh_link and sh_info on Solaris SPARC64
Date: Mon, 1 Mar 2021 15:00:48 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]