hi,
there is know issue with some gcc version and the bb handling of globals.
example this construct from httpd.c: (it is used to support non-mmu systems).
#define INIT_G() do { \
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
USE_FEATURE_HTTPD_BASIC_AUTH(g_realm = "Web Server Authentication";) \
bind_addr_or_port = "80"; \
index_page = "index.html"; \
file_size = -1; \
} while (0)
you may try a version before this type of changes (1.7 ?) to make sure.
please post you solution to this list.
re,
wh
EXTERNAL Tetz Torsten (Praktikant; ST-FIR/ENG1) wrote:
> Hello,
>
> I try to use Busybox version 1.10.0 on a sh3 based board under Linux and
> always get "Segmentation fault" when I call "/bin/busybox" or any link
> to it.
>
> I am working with a cross compiler toolchain build with crosstool. I
> already
> used this toolchain to build other programms for the board including a
> "Hello World"
> Programm and a bash.
>
> I was able to build a working Busybox version 1.1.3 for my target and
> I get no warnings during the build of the 1.10.0 version.
>
> Any Ideas where I could look for the cause of those segfaults
> with the 1.10.0 version or was something similar already
> discussed somewhere and I was just unable to find it.
>
> Regards,
> Torsten
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> busybox mailing list
> [email protected]
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox