AW: AW: AW: AW: AW: segfaults with ver 1.10.0 on sh3 based board

EXTERNAL Tetz Torsten (Praktikant; ST-FIR/ENG1) external.Torsten.Tetz at de.bosch.com
Wed Apr 2 14:30:53 UTC 2008


Denys Vlasenko wrote:
> On Wednesday 02 April 2008 14:31, EXTERNAL Tetz Torsten (Praktikant;
> ST-FIR/ENG1) wrote: 
>> Hello,
>> 
>> it is this change that makes a segfaulting version out of 1.2.1.
>> 
>> --- busybox-1.2.1/Rules.mak	Sat Jul 29 00:55:51 2006
>> +++ busybox-1.2.2/Rules.mak	Tue Oct 24 22:22:03 2006 (...)
>> @@ -265,7 +265,7 @@
>> (...)
>> -    CHECKED_LDFLAGS += $(call check_ld,--gc-sections,)
>> +    CHECKED_LDFLAGS += $(call check_ld,$(LD),--gc-sections,) (...)
>> 
>> 
>> I made a test by removing "$(LD)," from the 1.2.2. version
>> and it worked (produced no segfault).
> 
> Ok. Now we need to figure out how to fix that in 1.10.0.
> 1.10.0 build system is very different, so you
> will have to find how the change above affect link command line
> (how "good" and "bad" ones differ).
> 
> Please make two 1.2.2 trees which have only the aboce difference
> and build both with "make V=1". The output will end with something
> like:
 
> that last gcc command calls the linker,
> and I bet it will be slightly different.
> What exactly will be the difference?

Hello,

I attached the output of the last gcc command of builds with and
without the change.

I kompared them and only found one difference in the commands.
The option "-Wl,--gc-sections " is only used in the segfaulting build.

The following messages only present in the segfaulting build 
(also included in the attached "V-1.2.2_segfaults" file)
and not to be seen without the "V=1" make option seem to 
indicate that some needed sections have been removed.

Regards,
Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: V-1.2.2_working
Type: application/octet-stream
Size: 1308 bytes
Desc: V-1.2.2_working
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080402/f461468e/attachment-0004.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: V-1.2.2_segfaults
Type: application/octet-stream
Size: 12184 bytes
Desc: V-1.2.2_segfaults
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080402/f461468e/attachment-0005.obj 


More information about the busybox mailing list