This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: crosstool bloat




Dave Korn wrote:
----Original Message----

From: David Karlton
Sent: 19 September 2005 21:37


I was able to build, but alas, anything I compile is still 70k...

******************************************

dkarlton@fox:~/test> ll hello.3.3.4
-rwxr-xr-x  1 dkarlton users 70871 2005-09-19 16:33 hello.3.3.4
dkarlton@fox:~/test> objdump -x hello.3.3.4

hello.3.3.4:     file format elf32-little
hello.3.3.4
architecture: UNKNOWN!, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x00400600

Program Header:
    PHDR off    0x00000034 vaddr 0x00400034 paddr 0x00400034 align 2**2
         filesz 0x000000e0 memsz 0x000000e0 flags r-x
  INTERP off    0x00000114 vaddr 0x00400114 paddr 0x00400114 align 2**0
         filesz 0x0000000d memsz 0x0000000d flags r--
0x70000000 off    0x00000144 vaddr 0x00400144 paddr 0x00400144 align 2**2
         filesz 0x00000018 memsz 0x00000018 flags r--
    LOAD off    0x00000000 vaddr 0x00400000 paddr 0x00400000 align 2**16
         filesz 0x00000ac4 memsz 0x00000ac4 flags r-x
    LOAD off    0x00010000 vaddr 0x10000000 paddr 0x10000000 align 2**16
         filesz 0x000000a0 memsz 0x000000b0 flags rw-


For the exact same reason.

  Ok, first thing you need to do is verify that the patch did indeed get
applied to the source and that the compiler build with crosstool did come
from that source, just to be sure nothing went wrong in the build process.
Then, if that all checks out, which I expect it will, you'd better have a go
with the gas patch:


I'm very sure I used 2.16.1 with the patch to linux.h.


(build/mipsel-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/gcc-3.3.4/gcc/config/mips/linux.h)


and considering the possible gas-patch at

http://sources.redhat.com/ml/binutils/2005-02/msg00648.html


Sigh... tried this as well (binutils/gas/config/tc-mips.[ch]). Same thing, still bloated:


hello.3.3.4:     file format elf32-little
hello.3.3.4
architecture: UNKNOWN!, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x00400600

Program Header:
    PHDR off    0x00000034 vaddr 0x00400034 paddr 0x00400034 align 2**2
         filesz 0x000000e0 memsz 0x000000e0 flags r-x
  INTERP off    0x00000114 vaddr 0x00400114 paddr 0x00400114 align 2**0
         filesz 0x0000000d memsz 0x0000000d flags r--
0x70000000 off    0x00000144 vaddr 0x00400144 paddr 0x00400144 align 2**2
         filesz 0x00000018 memsz 0x00000018 flags r--
    LOAD off    0x00000000 vaddr 0x00400000 paddr 0x00400000 align 2**16
         filesz 0x00000ac4 memsz 0x00000ac4 flags r-x
    LOAD off    0x00010000 vaddr 0x10000000 paddr 0x10000000 align 2**16
         filesz 0x000000a0 memsz 0x000000b0 flags rw-
 DYNAMIC off    0x0000015c vaddr 0x0040015c paddr 0x0040015c align 2**2
         filesz 0x000003a6 memsz 0x000003a6 flags rwx
    NOTE off    0x00000124 vaddr 0x00400124 paddr 0x00400124 align 2**2
         filesz 0x00000020 memsz 0x00000020 flags r--

...

Any other ideas?

(On a bright note, this was built now on Fedora Core 2, which was using gcc 4.0.0, which required me to modify glibc-2.3.2/configure to allow compilers above major number 3.) :-)


cheers, DaveK

cheers,


dk


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]