Re: [U-Boot] [patch 1/1] Remove linking to libgcc while compiling U-boot

2008-11-02 Thread Wolfgang Denk
Dear Remy, In message <[EMAIL PROTECTED]> you wrote: > > >> What I now believe that should be done is to investigate (compile > >> time) what type of ABI is supported by the libgcc provided by the > >> compiler, and adjust the compile settings to that ABI. > > > > If such a thing needs to be done

Re: [U-Boot] [patch 1/1] Remove linking to libgcc while compiling U-boot

2008-11-02 Thread Remy Bohmer
Hello Wolfgang, >> libgcc could also expect the 'raise()' routine to pass divide-by-zero >> execeptions. (if __div0, (or __aeabi_ldiv0) is not overruled) > raise()? exceptions? In C? Please, do not get pikky about choice of words... You can call it an exception, signal, or whatever. (If I meant C

Re: [U-Boot] [patch 1/1] Remove linking to libgcc while compiling U-boot

2008-11-02 Thread Wolfgang Denk
Dear "Remy Bohmer", In message <[EMAIL PROTECTED]> you wrote: > > libgcc could also expect the 'raise()' routine to pass divide-by-zero > execeptions. (if __div0, (or __aeabi_ldiv0) is not overruled) raise()? exceptions? In C? > In the mean time things are getting more clear. In the ARM section

Re: [U-Boot] [patch 1/1] Remove linking to libgcc while compiling U-boot

2008-11-02 Thread Remy Bohmer
Hello Scott (and Wolfgang), > libgcc should *not* be expecting any OS interface. It may use a few > basic libc functions such as memcpy, that u-boot provides. libgcc could also expect the 'raise()' routine to pass divide-by-zero execeptions. (if __div0, (or __aeabi_ldiv0) is not overruled) If no

Re: [U-Boot] [patch 1/1] Remove linking to libgcc while compiling U-boot

2008-10-31 Thread Wolfgang Denk
Dear Remy, In message <[EMAIL PROTECTED]> you wrote: > Currently U-boot is linking against libgcc. This should not be needed because And where would the GCC compiler gets its builtin functions from, then? > the compiler toolchain is usually compiled with a certain OS interface in > mind, > and

Re: [U-Boot] [patch 1/1] Remove linking to libgcc while compiling U-boot

2008-10-31 Thread Scott Wood
On Fri, Oct 31, 2008 at 11:37:33PM +0100, Remy Bohmer wrote: > Currently U-boot is linking against libgcc. This should not be needed > because the compiler toolchain is usually compiled with a certain OS > interface in mind, and can even be configured for GNU-EABI interfaces. > This can cause linki

[U-Boot] [patch 1/1] Remove linking to libgcc while compiling U-boot

2008-10-31 Thread Remy Bohmer
Currently U-boot is linking against libgcc. This should not be needed because the compiler toolchain is usually compiled with a certain OS interface in mind, and can even be configured for GNU-EABI interfaces. This can cause linking conflicts in U-boot when linking to libgcc. It usually becomes re