| To: | zhuzhenhua <zzh.hust@gmail.com> |
|---|---|
| Subject: | Re: "relocation truncated to fit: R_MIPS_CALL16" |
| From: | Nigel Stephens <nigel@mips.com> |
| Date: | Mon, 24 Apr 2006 09:45:35 +0100 |
| Cc: | linux-mips <linux-mips@linux-mips.org> |
| In-reply-to: | <50c9a2250604222002x37b949fbi585ed5fb31087d5@mail.gmail.com> |
| Organization: | MIPS Technologies |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <50c9a2250604222002x37b949fbi585ed5fb31087d5@mail.gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mail/News 1.5 (X11/20060318) |
zhuzhenhua wrote: i want to write a mini bootloader for my board, so i need jump to c code from asm code but when i compile and ld, i get "relocation truncated to fit: R_MIPS_CALL16" messages for every function call.. i have try the mips_4KCle-gcc(worked for u-boot), mips_fp_le-gcc(worked for mvita linux), and also a mipsel-linux-gcc(worked for my linux 2.6 kernel), but they all failed, even i add -G0 to gcc. and i only compile success by using mips-elf-gcc under cygwin. does it be caused by binutils version? or gcc compile CFLAGS? thanks for any hints This is probably because the mips-linux configuration of gcc is generating position-independent code by default, whereas the mips-elf version doesn't. Try adding the options "-mno-abicalls -fno-pic" to your mips-liinux-gcc options. HTH Nigel |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: "relocation truncated to fit: R_MIPS_CALL16", Niklaus |
|---|---|
| Next by Date: | RE: Reading an entire cacheline, Kim, Jong-Sung |
| Previous by Thread: | Re: "relocation truncated to fit: R_MIPS_CALL16", Niklaus |
| Next by Thread: | Re: "relocation truncated to fit: R_MIPS_CALL16", Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |