This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: arm-elf-gcc shared flat support
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: "vivek tyagi" <vivek dot list at gmail dot com>, gcc at gnu dot org, gcc-help at gcc dot gnu dot org
- Date: Fri, 30 Mar 2007 15:18:29 +0100
- Subject: Re: arm-elf-gcc shared flat support
- References: <be163d940703300527q53011ae5kdd751e7e3e4cf4e8@mail.gmail.com>
> I am working on Shared flat file support for uClinux (No MMU ARM ).The
> gcc version
> I am using is 2.95 and 3.4.0.Theory of operation is similar to that
You really need to be using the latest gcc (ie. svn trunk, aka 4.3) before we
can help you.
gcc also has a uclinux target. You should be using that rather than the
generic ELF one.
> implemented for m68k.One of the major requirement is to call functions
> is to be called as
>
> ****compiler output***********
>
> ldr r3, .L4
> mov lr,pc
> ldr pc[sl,r3]
>
> .L4:
> .word foo(GOT)
>
> ******************************
>
> as opposed to
> bl foo(PLT)
>
> where sl holds the address of GOT.(binfmt_flat loader ensures that
> before the program start)
Why on earth do you need to do this? Can't you get the linker to generate PLT
sequences like we do for normal shared libraries?
Paul