mips cross-compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've just built a MIPS cross-compiler, and all (nearly...) works fine,
but my new gcc makes huge executables.

- Example (it's a simple Hello World) :

$ mipsel-linux-gcc hello.c -o hello
$ ls -sh hello
2,3M hello
$ file hello
hello: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), for
GNU/Linux 2.4.0, dynamically linked (uses shared libs), for GNU/Linux
2.4.0, not stripped
$ size --format=SysV
section                  size        addr
.note.ABI-tag              32     4194484
.reginfo                   24     4194516
.init                     168     4194540
.text                  432048     4194720
__libc_freeres_fn        3316     4626768
.fini                      88     4630084
.rodata                 78178     4630176
.eh_frame                3664   268435456
.ctors                      8   268439120
.dtors                     12   268439128
.jcr                        4   268439140
.data.rel.ro             8896   268439144
.data                    3328   268448048
__libc_subfreeres          36   268451376
__libc_atexit               4   268451412
.got                     2848   268451424
.sbss                     176   268454272
.bss                     3356   268454448
__libc_freeres_ptrs        24   268457804
.comment                 5040           0
.debug_aranges           8568           0
.debug_pubnames         19335           0
.debug_info           1247289           0
.debug_abbrev          116623           0
.debug_line            218561           0
.debug_frame            26560           0
.debug_str              46594           0
.pdr                    23232           0
.mdebug.abi32               0           0
.debug_ranges           47360           0
Total                 2295372


- Some infos about my toolchain :

binutils-2.16.1
$ ./configure --target=$TARGET --prefix=$PREFIX --without-fp --enable-shared

gcc-3.4.6 (stage 1)
$ ./configure --target=$TARGET --prefix=$PREFIX --without-headers
--disable-threads --without-fp --enable-languages=c --disable-shared

glibc-2.3.6
$ CC=${TARGET}-gcc AS=${TARGET}-as ./configure --prefix=$PREFIX
--build=i686-pc-linux-gnu --host=$TARGET --enable-shared
--enable-add-ons=linuxthreads --with-headers=$PREFIX/include
--without-fp

gcc-3.4.6 (final stage)
$ ./configure --target=$TARGET --prefix=$PREFIX
--enable-languages=c,c++ --enable-threads=posix
--with-headers=$PREFIX/include --enable-shared --without-fp


What's the problem ?

Thanks.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux