bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG: bfd/elf allows only 2 PT_LOAD phdrs


From: Nick Clifton
Subject: Re: BUG: bfd/elf allows only 2 PT_LOAD phdrs
Date: 10 Dec 2002 18:28:52 +0000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

Hi Bhavesh,

> IMHO, the following is too restrictive in bfd/elf.c:

>   /* Assume we will need exactly two PT_LOAD segments: one for text
>      and one for data.  */
>   segs = 2;

> I tried allowing 3 PT_LOAD segments, and it works for both the normal 2
> PT_LOAD segments case and the 3 PT_LOAD segments case.
> 
> The final ELF executable produced with this change was identical to that
> produced without this change for the normal case.

Do you have a small test case which needs 3 PT_LOAD segments, which
we could incorporate into the linker testsuite ?

Cheers
        Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]