This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Fix split stab section handling
On Fri, Sep 19, 2003 at 11:18:18AM +0100, Nathan Sidwell wrote:
> Ian Lance Taylor wrote:
> >Nathan Sidwell <nathan@codesourcery.com> writes:
>
> >The reason a split section uses only the first five character of the
> >original name is that in general COFF targets have a strict limit on
> >the length of a section name--usually 8 characters. And COFF targets
> >are the main ones which need split sections--other object file formats
> >generally have a sufficiently large field for the number of relocation
> >entries. Using a longer name is OK if bfd_coff_long_filenames() is
> ok. I couldn't figure how to make bfd_coff_long_filename visible in the
> linker, without #including libcoff.h, which seemed bad. As you can see
> I just predicate the truncation check on bfd_family_coff.
>
> >true for the backend, or if it is ELF. (Is there any reason you are
> >using --split-* for ELF?)
> Users have been customed to having --split-by-reloc in their make
> files. We should either disable the option for elf, or make it work.
Or ignore it? Maybe that's what you meant by disable. I don't think
it makes sense to use with ELF.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer