[PATCH] strip: Remove SUNW_symtabsort and .SUNW_symtabnsort sections
Andreas Schwab
schwab@linux-m68k.org
Sun Sep 7 08:19:45 GMT 2025
On Sep 06 2025, H.J. Lu wrote:
> + /* On Solaris, .SUNW_symtabsort and .SUNW_symtabnsort sections are
> + linked with .symtab and .strtab sections. Since strip always
> + removes .symtab and .strtab sections, also removes .SUNW_symtabsort
also remove
> + and .SUNW_symtabnsort sections. */
> + if (abfd->elf_target_os == is_solaris
> + && (strcmp (sec->name, ".SUNW_symtabsort") == 0
> + || strcmp (sec->name, ".SUNW_symtabnsort") == 0))
> + return true;
> +
> if (find_section_list (bfd_section_name (sec), false, SECTION_CONTEXT_KEEP)
> != NULL)
> return false;
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Binutils
mailing list