diff options
| author | H.J. Lu <hjl.tools@gmail.com> | 2025-12-09 07:33:28 +0800 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2025-12-10 07:20:17 +0800 |
| commit | f5c3ce3687f7e1047c2f8a5c5dd9af2f36055663 (patch) | |
| tree | 6eb06aecd5ceca7c326254fbf8a360ac6983f9ff /gdb/contrib/check-whitespace-pre-commit.py | |
| parent | bfc430c99b66ab12643a65388c4ace925ebd68b2 (diff) | |
| download | binutils-f5c3ce3687f7e1047c2f8a5c5dd9af2f36055663.zip binutils-f5c3ce3687f7e1047c2f8a5c5dd9af2f36055663.tar.gz binutils-f5c3ce3687f7e1047c2f8a5c5dd9af2f36055663.tar.bz2 | |
x86: Add _bfd_elf_x86_copy_special_section_fields
When Linux/x86 objcopy is used on Solaris binary, it sets EI_OSABI to
ELFOSABI_SOLARIS, but it doesn't set the sh_info and sh_link fields of
Solaris specific sections.
Add _bfd_elf_x86_copy_special_section_fields to return false for Solaris
binary to properly set the sh_info and sh_link fields of Solaris specific
sections.
PR binutils/33705
* elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
Removed.
(elf_backend_copy_special_section_fields): Likewise.
* elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
Likewise.
(elf_backend_copy_special_section_fields): Likewise.
* elfxx-x86.c (_bfd_elf_x86_copy_special_section_fields): New.
* elfxx-x86.h (_bfd_elf_x86_copy_special_section_fields): Likewise.
(elf_backend_copy_special_section_fields): Likewise.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'gdb/contrib/check-whitespace-pre-commit.py')
0 files changed, 0 insertions, 0 deletions
