On Monday 31 March 2008 11:23, walter harms wrote:
> 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.
> 
> 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.

Not every applet uses "globals" trick. If indeed every applet segfaults
(even simplest ones like "true" and "false"), it must be something different.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to