This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: NOLOAD problem with binutils 2.16.92


On Mon, Jul 31, 2006 at 06:51:17PM +0530, Ashutosh Yeole wrote:
> Hi,
> I have tried this problem using the latest snapshot of binutils dated
> 30th July 2006, however the same problem still exists. With this 
> snapshot, I tested for SH as well as H8 targets.
> 
> http://lists.gnu.org/archive/html/bug-binutils/2006-07/msg00041.html
> (Link to the actual problem)

Please open a bug report at:

http://www.sourceware.org/bugzilla/

>    /* If the section type is unspecified, we set it based on
>       asect->flags.  */
> -  if (this_hdr->sh_type == SHT_NULL)
> +  if ((this_hdr->sh_type == SHT_NULL) || (this_hdr->sh_type ==
> SHT_PROGBITS))
>      {
>        if ((asect->flags & SEC_GROUP) != 0)
>         this_hdr->sh_type = SHT_GROUP;

It doesn't look right.

> 
> However I am not very sure about the patch and I understand it may be
> fixed somewhere else. I would like to know your comments on the same.
> 

You need to find where and why this_hdr->sh_type is set to
SHT_PROGBITS in the first place.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]