Well... or better apply this patch:

http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/include/platform.h?rev=14654&view=diff&r1=14654&r2=14653&p1=trunk/busybox/include/platform.h&p2=/trunk/busybox/include/platform.h

-Andrea

Andrea Righi wrote:
> OK, I understand BB_LITTLE_ENDIAN is never defined so ELFDATAM is always
> ELFDATA2MSB = 2, right?
> 
> With 2.6 kernels it works because it never executes obj_load() and uses
> insmod_ng_main() instead:
> 
> #ifdef CONFIG_FEATURE_2_6_MODULES
>         if (k_version > 4)
>         {
>                 optind--;
>                 argv[optind + 1] = m_filename;
>                 return insmod_ng_main(argc - optind, argv + optind);
>         }
> #endif
> 
>         if ((f = obj_load(fp, LOADBITS)) == NULL)
>                 bb_perror_msg_and_die("Could not load the module");
> 
> So I think we can replace the check:
> 
> #if BB_LITTLE_ENDIAN
> # define ELFDATAM       ELFDATA2LSB
> #else
> # define ELFDATAM       ELFDATA2LSB
> #endif
> 
> into:
> 
> #if __BYTE_ORDER == __LITTLE_ENDIAN
> # define ELFDATAM       ELFDATA2LSB
> #else
> # define ELFDATAM       ELFDATA2LSB
> #endif
> 
> This should fix, then when we'll move to the next busybox version the
> problem will be automatically fixed. What do you think?
> 
> -Andrea
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to