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: relocation truncated to fit errors


Niklaus <niklaus@gmail.com> writes:
>> > mips-deb-linux-gcc  -msoft-float -mgp32 -g -O2 -mips3 -G 0  -DGDB_STUB
>> > -I. -I./include  -I./config/mips3/vr4131 -I./config/mips3 -nostdlib
>> > -T ./config/mips3/vr4131/vr4131_elf_gdb.ld -o jsp \
>> >                        exception_vector.o  sample1.o     timer.o
>> > serial.o logtask.o log_output.o vasyslog.o t_perror.o strerror.o
>> > kernel_cfg.o   libkernel.a   -lgcc
>>
>> (in particular the vr4131_elf_gdb.ld bit) suggests that you're trying
>> to use a *-elf (bare-metal) linker script with a GNU/Linux compiler,
>> so I wasn't sure whether your target really was GNU/Linux or not.
>>
> I am using a crosscompiler to build the toppers jsp kernel
> http://www.toppers.jp/download.cgi/jsp-1.4.2.tar.gz
> The kernel is to be used on vr4131 system.
> The target system is vr4131 .I build the cross toolchain with target
> mips-deb-linux.
> Is there anything wrong or that is to be modified.

It sounds like you should be using either mips-elf or mips64-elf,
depending on whether you want 32-bit or 64-bit code.  From the
options quoted above (particularly -mgp32), I'm assuming you
actually want 32-bit code, so it should be mips-elf.

Note that modern versions of gcc support -march=vr4130.  It's
probably worth using that instead of -mips3: it should produce
significantly better code.  Indeed, if you configure gcc using
--with-arch=vr4130, -march=vr4130 will actually be the default,
and all the gcc target libraries will take advantage of the
VR4130 extensions.

Richard

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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