All of lore.kernel.org
 help / color / mirror / Atom feed
From: C Michael Sundius <msundius@sundius.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools.
Date: Fri, 8 Oct 2004 11:26:38 -0700	[thread overview]
Message-ID: <200410081126.38970.msundius@sundius.com> (raw)
In-Reply-To: <E1CBqxq-0002xy-46@sc8-sf-list1.sourceforge.net>

Hi,

I am trying to port u-boot to a system w/ a mips 4kc little endian processor.

in looking at other cpu/boards to use as a starting point/template, I chose 
the tb0229 board as it looked to also be a 4kc little endian cpu.

when I build, I get the an undefined reference to _GLOBAL_OFFSET_TABLE_.

I did some fiddling aroud, and comparing to linker command files for other 
boards and I found that the line:

	OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips",\ 
				"elf32-tradlittlemips")

if changed to:

	OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradbigmips")

will allow me to compile and link fine...

my question is then:

1) what does this really do?
2) if I'm using a little endian cpu, do I really need it set to 
elf32-tradlittlemips?
3) if so how do I solve my problem?
4) if not why?

one more note the compiler/toolchain that I'm using is from montavista, the -v 
option displays the following:

======================================
 mips_fp_le-gcc -v
Reading specs from /opt/hardhat/devkit/mips/fp_le/lib/gcc-lib/
mipsel-hardhat-linux/3.2.1/specs
Configured with: ../configure --host=i686-pc-linux-gnu 
--target=mipsel-hardhat-linux --prefix=/opt/hardhat/devkit/mips/fp_le 
--exec-prefix=/opt/hardhat/devkit/mips/fp_le --bindir=/opt/hardhat/devkit/
mips/fp_le/bin --sbindir=/opt/hardhat/devkit/mips/fp_le/sbin --sysconfdir=/
opt/hardhat/devkit/mips/fp_le/etc --datadir=/opt/hardhat/devkit/mips/fp_le/
share --includedir=/opt/hardhat/devkit/mips/fp_le/include --libdir=/opt/
hardhat/devkit/mips/fp_le/lib --libexecdir=/opt/hardhat/devkit/mips/fp_le/
libexec --localstatedir=/opt/hardhat/devkit/mips/fp_le/var --sharedstatedir=/
opt/hardhat/devkit/mips/fp_le/share --mandir=/opt/hardhat/devkit/mips/fp_le/
man --infodir=/opt/hardhat/devkit/mips/fp_le/info 
--program-transform-name=s,^,mips_fp_le-, --enable-cross 
--with-gxx-include-dir=${prefix}/mipsel-hardhat-linux/include/g++-v3 
--enable-shared --enable-languages=c,c++ --enable-threads=posix 
--enable-__cxa_atexit --disable-multilib
Thread model: posix
gcc version 3.2.1 20020930 (MontaVista)
=======================================

thanks for any help you can offer...(sorry this is maybe more of a tool 
related question, but monta vista has not been much help as of yet).

Mike
~       

  parent reply	other threads:[~2004-10-08 18:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1CBqxq-0002xy-46@sc8-sf-list1.sourceforge.net>
2004-09-29 18:50 ` [U-Boot-Users] size of mips U-boot image C Michael Sundius
2004-09-29 19:42   ` Wolfgang Denk
2004-10-08 18:26 ` C Michael Sundius [this message]
2004-10-08 18:54   ` [U-Boot-Users] linking u-boot for mips little endian w/ hardhat tools Charles Eidsness
2004-10-08 20:28   ` Wolfgang Denk
2004-10-09  1:07   ` Masami Komiya
2004-10-11 22:53     ` Wolfgang Denk
2004-10-12  0:06       ` Masami Komiya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200410081126.38970.msundius@sundius.com \
    --to=msundius@sundius.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.