]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: conditionally hide object-format-specific functions
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Nov 2023 10:20:49 +0000 (11:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Nov 2023 10:20:49 +0000 (11:20 +0100)
commit071c5d81c7681fd92189c380e14266054f0c6c41
tree054e176f0538107e76446c28a5d78500cd100cde
parentd9a1b71137d206f1ff73eee25423cf6d22814495
x86: conditionally hide object-format-specific functions

ELF-only functions don't need to be built when dealing with a non-ELF
target. md_section_align() also doesn't need to be a function when
dealing with non-AOUT targets. Similarly tc_fix_adjustable() can be a
simple macro when building non-ELF targets.

Furthermore x86_elf_abi is already used in ELF-only code sections, with
one exception. By adjusting that, the otherwise bogusly named variable
can also be confined to just ELF builds.
gas/config/tc-i386.c
gas/config/tc-i386.h