linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* objdump on libgcc
@ 2010-04-01  7:37 Fabio Giovagnini
  2010-04-01  7:59 ` Andrew Stubbs
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Giovagnini @ 2010-04-01  7:37 UTC (permalink / raw)
  To: linux-sh

Hi Andrew,
in my crosstool dir I have only one libgcc.a

If on it I do

fgiovagnini@aurio01:~/sh7203/sh7203-uclinux-4.4-143/build/target/lib/gcc/sh-
uclinux/4.4.1$ sh-uclinux-objdump -a libgcc.a | more
In archive libgcc.a:

_ashiftrt.o:     file format elf32-shbig-fdpic
rw-r--r-- 2012/0   1604 Mar 18 22:26 2010 _ashiftrt.o


_ashiftrt_n.o:     file format elf32-shbig-fdpic
rw-r--r-- 2012/0    595 Mar 18 22:26 2010 _ashiftrt_n.o


_ashiftlt.o:     file format elf32-shbig-fdpic
rw-r--r-- 2012/0    603 Mar 18 22:26 2010 _ashiftlt.o


_lshiftrt.o:     file format elf32-shbig-fdpic
rw-r--r-- 2012/0    603 Mar 18 22:26 2010 _lshiftrt.o


_movmem.o:     file format elf32-shbig-fdpic
rw-r--r-- 2012/0   1535 Mar 18 22:26 2010 _movmem.o


_movmem_i4.o:     file format elf32-shbig-fdpic
rw-r--r-- 2012/0    844 Mar 18 22:26 2010 _movmem_i4.o


_mulsi3.o:     file format elf32-shbig-fdpic
rw-r--r-- 2012/0    524 Mar 18 22:26 2010 _mulsi3.o


_sdivsi3.o:     file format elf32-shbig-fdpic
rw-r--r-- 2012/0    648 Mar 18 22:26 2010 _sdivsi3.o


_sdivsi3_i4.o:     file format elf32-shbig-fdpic
rw-r--r-- 2012/0    441 Mar 18 22:26 2010 _sdivsi3_i4.o

This is the result,
so I think libgcc is only for fdpic target, so if I need it for building 
kernel (and for making zImage it seems to be essential) I can link only a 
wrong libgcc.

What can I test more?

Cheers


-- 
Fabio Giovagnini

Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: objdump on libgcc
  2010-04-01  7:37 objdump on libgcc Fabio Giovagnini
@ 2010-04-01  7:59 ` Andrew Stubbs
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Stubbs @ 2010-04-01  7:59 UTC (permalink / raw)
  To: linux-sh

On 01/04/10 08:37, Fabio Giovagnini wrote:
> This is the result,
> so I think libgcc is only for fdpic target, so if I need it for building
> kernel (and for making zImage it seems to be essential) I can link only a
> wrong libgcc.

Absolutely, there is only FDPIC libgcc in the release I sent to you.

The kernel has not needed glibc for a while now. The relevant routines 
were copied/rewritten to arch/sh/lib.

I expect that all the routines you need are present, so it should just 
be makefile adjustments. If it does need something extra (that somehow 
the whole of the rest of the kernel can do without) then I expect it can 
be extracted from the compiler sources (gcc/config/sh/lib1funcs.asm). 
The linker should have already told you this list of routines it needs.

Andrew

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-01  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-01  7:37 objdump on libgcc Fabio Giovagnini
2010-04-01  7:59 ` Andrew Stubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).