This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: ld/2411: ELF linker fails to create executable with more than 64k sections
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 3 Mar 2006 14:43:51 +1030
- Subject: Re: PATCH: ld/2411: ELF linker fails to create executable with more than 64k sections
- References: <20060302232125.GA31476@lucon.org>
On Thu, Mar 02, 2006 at 03:21:25PM -0800, H. J. Lu wrote:
> The ELF gABI doesn't support more than 64k sections in DSO and
> executable when there are dynamic symbols. This patch checks that.
I think you should put this check in bfd_elf_final_link rather than in
map_sections_to_segments, before the first call to
elf_link_output_extsym. That puts it close to the code that outputs
dynamic section syms.
> + (_("%B: Too many sections: %d (< %d)"),
> + abfd, bfd_count_sections (abfd), SHN_LORESERVE);
Typo.
--
Alan Modra
IBM OzLabs - Linux Technology Centre