Strip broke for me in 2.15...

David Daney ddaney@avtrex.com
Mon May 24 22:34:00 GMT 2004


Nick Clifton wrote:

> Hi David,
>
>
>> 1) ld-2.2.5.so is bug free and strip-2.15 is generating an illegally 
>> formed executable image.
>
>
> This would appear to be the case.
>
>
>> Program Headers:
>>  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
>>  LOAD           0x000000 0x00400000 0x00400000 0x177584 0x177584 R E 
>> 0x1000
>>  LOAD           0x178000 0x10000000 0x10000000 0x1f718 0x20e60 RW  
>> 0x1000
>
>
>> Program Headers:
>>  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
>>  LOAD           0x000000 0x00400000 0x00400000 0x177584 0x177584 R E 
>> 0x10
>>  LOAD           0x177590 0x10000000 0x10000000 0x1f718 0x20e60 RW  0x10
>
>
> Do you have a *small* test case that can reproduce this problem ?
>
> Cheers
>   Nick

I just tried it with a simple "Hello world" program written in C and 
could not get the failure.

The file that fails is about 30MB.  So my naive guess is that something 
is overflowing somewhere when stripping large files.  I am not sure that 
it would be the most productive use of my time to try to find the 
smallest case that makes it fail.

I would gladly make the offending file available to anyone that wants to 
try to fix the problem.

Alternatively I would be happy to try to fix it.  But would appreciate 
some pointers about where to look.

David Daney.




More information about the Binutils mailing list