PR5900

H.J. Lu hjl.tools@gmail.com
Wed Mar 12 22:35:00 GMT 2008


On Wed, Mar 12, 2008 at 3:21 PM, Alan Modra <amodra@bigpond.net.au> wrote:
> On Wed, Mar 12, 2008 at 02:13:02PM -0700, H.J. Lu wrote:
>  >       * elf.c (assign_section_numbers): Check if number of sections
>  >       >= SHN_LORESERVE.
>
>  Hmm, ld will have attempted to use at least 5 terabytes of memory
>  before we hit this error.  Do you really think it is worth adding this
>  check?
>
>  >       * elfcode.h (elf_object_p): Likewise.
>
>  Error messages are not appropriate for got_wrong_format_error where
>  you might try multiple targets and get the same error multiple times.
>

I don't think we will hit this limit. But you never know how people will use it.
Here is an updated patch using abort () in elf_object_p.

H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd-64k-2.patch
Type: text/x-patch
Size: 1322 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20080312/0d0631a5/attachment.bin>


More information about the Binutils mailing list