diff options
| author | Alan Modra <amodra@gmail.com> | 2026-01-03 13:56:01 +1030 |
|---|---|---|
| committer | Alan Modra <amodra@gmail.com> | 2026-01-04 19:30:16 +1030 |
| commit | ff31f2e09db972e27e5460307318dae3e529d41d (patch) | |
| tree | dc6f90772423ef3b3e6dd6fd3bd3f7ce8df0f8d9 /gdb/python/python.c | |
| parent | ef6aff2be44b172a874df036c7d270301b47005a (diff) | |
| download | binutils-ff31f2e09db972e27e5460307318dae3e529d41d.zip binutils-ff31f2e09db972e27e5460307318dae3e529d41d.tar.gz binutils-ff31f2e09db972e27e5460307318dae3e529d41d.tar.bz2 | |
Set ELF_OSABI for x86 and sparc
The idea of this patch is to match the solaris target over other
targets if e_ident contains ELFOSABI_SOLARIS. The solaris target will
continue to recognise ELFOSABI_NONE objects.
This has the side effect of disabling gnu features that require
ELFOSABI_GNU, such as ifuncs. I think that is correct, so I've made
the required testsuite changes to fix the resulting regressions:
FAIL: nm --ifunc-chars (assembly)
FAIL: mbind sections without SHF_ALLOC
The patch also sets ELF_OSABI for the gnu x86 and sparc targets,
for the same reason as the solaris targets. This doesn't mean object
files will automatically be marked ELFOSABI_GNU/LINUX. As before that
will only happen when certain GNU extensions are present.
bfd/
* elf32-i386.c: Define ELF_OSABI for solaris and gnu targets.
* elf32-sparc.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* format.c (bfd_check_format_matches): Bump match_priority
for matching e_ident EI_OSABI.
binutils/
* testsuite/binutils-all/nm.exp: Use !supports_gnu_osabi to
disable ifunc test.
gas/
* testsuite/gas/elf/section13.d: Only run on supports_gnu_osabi
targets. Remove xfails.
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions
