Move bfd *_pointer_linker_section into elf32-ppc.c
Ian Lance Taylor
ian@airs.com
Mon Jul 7 18:45:00 GMT 2003
Alan Modra <amodra@bigpond.net.au> writes:
> One thing of note is that I've removed a hack Ian added here:
>
> Mon Sep 23 13:33:00 1996 Ian Lance Taylor <ian@cygnus.com>
>
> * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section
> by hand, rather than by calling bfd_make_section.
>
> Why this was needed, I don't know. The idea seemed to be to create a
> section that wasn't found when traversing a bfd's sections, and plunk
> the small common syms in the specially unhooked section. The syms don't
> _stay_ in the section, since when _bfd_generic_link_add_one_symbol is
> called a few microseconds after add_symbol_hook returns, case COM checks
> that the common section belongs to the bfd, and if not, creates a section
> anyway.
I think my idea here was that I didn't want to create a common section
which was attached to dynobj, because dynobj is a real BFD which might
have its own local .sbss symbols, and using that section for common
symbols would confuse something. Or something.
Perhaps someone with access to the Red Hat internal tree could look at
the CVS log entry for that change. Since it doesn't appear to be part
of any other work I was doing, I wouldn't be surprised if there is a
PR number attached to it.
Ian
More information about the Binutils
mailing list