]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Move BFD_FAKE_SECTION to libbfd.h
authorAlan Modra <amodra@gmail.com>
Mon, 24 Feb 2025 06:27:53 +0000 (16:57 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 3 Mar 2025 21:53:16 +0000 (08:23 +1030)
commit43baf926acfa6b244f7c4243d0d75c75dec545f1
tree856cf02b1f54d6f500d116796160ae6301a9b137
parent268c8bda250f0b282d1fa9bdf7e5959cba018eeb
Move BFD_FAKE_SECTION to libbfd.h

BFD_FAKE_SECTION and its sidekick GLOBAL_SYM_INIT don't need to be
cluttering bfd.h, and probably shouldn't be used outside bfd/.  To
make them internal to bfd, make the bfd ecoff small common section
declaration global so it can be used instead of a duplicate in
gas/ecoff.c.  Oddly this needs to go in bfd/ecofflink.c rather than
bfd/ecoff.c as the former is compiled for all targets needing the
ecoff small common section (some via a call in gas/config/obj-elf.c to
a function in gas/ecoff.c) while the latter is not.

While doing this rename ecoff_scom_section to _bfd_ecoff_scom_section
and remove support for traditional C from GLOBAL_SYM_INIT.
bfd/bfd-in2.h
bfd/ecoff-bfd.h
bfd/ecoff.c
bfd/ecofflink.c
bfd/libbfd.h
bfd/section.c
gas/ecoff.c