Linux MIPS Architecture development
 help / color / mirror / Atom feed
* The difference between mips*-gnu and mips*-linux when configure tool-chain
@ 2006-12-03  9:15 Fu, He Wei PSE NKG
  2006-12-03  9:15 ` Fu, He Wei PSE NKG
  2006-12-03 17:05 ` Daniel Jacobowitz
  0 siblings, 2 replies; 6+ messages in thread
From: Fu, He Wei PSE NKG @ 2006-12-03  9:15 UTC (permalink / raw)
  To: linux-mips

Hello everyone.At the time of building tool-chain for mips machine,we
can choose mips*-gnu or mips*-linux, I want to know what's the
difference between them? The original idea is that mips*-gnu for
developing firmware which has not OS-surport, and mips*-linux for
developing software on Linux, but it is not suitable for firmware such
as bootloaders.But now I think I'm not right,it seems that configure
with mips*-linux suit for both linux and bootloader, and configure with
mips*-gnu means build for OS such as IRIX surport, I'm not very
clearly,can anybody help me figour out the difference between them?
Thanks

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

* The difference between mips*-gnu and mips*-linux when configure tool-chain
  2006-12-03  9:15 The difference between mips*-gnu and mips*-linux when configure tool-chain Fu, He Wei PSE NKG
@ 2006-12-03  9:15 ` Fu, He Wei PSE NKG
  2006-12-03 17:05 ` Daniel Jacobowitz
  1 sibling, 0 replies; 6+ messages in thread
From: Fu, He Wei PSE NKG @ 2006-12-03  9:15 UTC (permalink / raw)
  To: linux-mips

Hello everyone.At the time of building tool-chain for mips machine,we
can choose mips*-gnu or mips*-linux, I want to know what's the
difference between them? The original idea is that mips*-gnu for
developing firmware which has not OS-surport, and mips*-linux for
developing software on Linux, but it is not suitable for firmware such
as bootloaders.But now I think I'm not right,it seems that configure
with mips*-linux suit for both linux and bootloader, and configure with
mips*-gnu means build for OS such as IRIX surport, I'm not very
clearly,can anybody help me figour out the difference between them?
Thanks

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

* Re: The difference between mips*-gnu and mips*-linux when configure tool-chain
  2006-12-03  9:15 The difference between mips*-gnu and mips*-linux when configure tool-chain Fu, He Wei PSE NKG
  2006-12-03  9:15 ` Fu, He Wei PSE NKG
@ 2006-12-03 17:05 ` Daniel Jacobowitz
  2006-12-05  3:41   ` Fu, He Wei PSE NKG
  1 sibling, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2006-12-03 17:05 UTC (permalink / raw)
  To: Fu, He Wei PSE NKG; +Cc: linux-mips

On Sun, Dec 03, 2006 at 05:15:07PM +0800, Fu, He Wei PSE NKG wrote:
> Hello everyone.At the time of building tool-chain for mips machine,we
> can choose mips*-gnu or mips*-linux, I want to know what's the
> difference between them? The original idea is that mips*-gnu for
> developing firmware which has not OS-surport, and mips*-linux for
> developing software on Linux, but it is not suitable for firmware such
> as bootloaders.But now I think I'm not right,it seems that configure
> with mips*-linux suit for both linux and bootloader, and configure with
> mips*-gnu means build for OS such as IRIX surport, I'm not very
> clearly,can anybody help me figour out the difference between them?

mips-gnu is the GNU system (the Hurd kernel).  mips-linux is used for
the kernel and userspace of a Linux system.  mips-elf is used for bare
metal targets without an OS.

You should be able to build a Linux bootloader using a mips-linux
compiler.

-- 
Daniel Jacobowitz
CodeSourcery

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

* RE: The difference between mips*-gnu and mips*-linux when configure tool-chain
  2006-12-03 17:05 ` Daniel Jacobowitz
@ 2006-12-05  3:41   ` Fu, He Wei PSE NKG
  2006-12-05  3:41     ` Fu, He Wei PSE NKG
  2006-12-05 12:43     ` Thiemo Seufer
  0 siblings, 2 replies; 6+ messages in thread
From: Fu, He Wei PSE NKG @ 2006-12-05  3:41 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: linux-mips

Thanks, sorry for I missed the mips*-elf for mips*-gnu.

I think that for ld,the difference between mips*-elf and mips*-linux
produces only some minor impact on the default ld script, for the
behavior of ld itself, it has not serious impact.Is it my understanding
correct?

But for bfd, does the difference of these two config-choice have impact
on the behavior of two different bfd-target? . 

-----Original Message-----
From: Daniel Jacobowitz [mailto:dan@debian.org] 
Sent: Monday, December 04, 2006 1:05 AM
To: Fu, He Wei PSE NKG
Cc: linux-mips@linux-mips.org
Subject: Re: The difference between mips*-gnu and mips*-linux when
configure tool-chain

On Sun, Dec 03, 2006 at 05:15:07PM +0800, Fu, He Wei PSE NKG wrote:
> Hello everyone.At the time of building tool-chain for mips machine,we
> can choose mips*-gnu or mips*-linux, I want to know what's the
> difference between them? The original idea is that mips*-gnu for
> developing firmware which has not OS-surport, and mips*-linux for
> developing software on Linux, but it is not suitable for firmware such
> as bootloaders.But now I think I'm not right,it seems that configure
> with mips*-linux suit for both linux and bootloader, and configure
with
> mips*-gnu means build for OS such as IRIX surport, I'm not very
> clearly,can anybody help me figour out the difference between them?

mips-gnu is the GNU system (the Hurd kernel).  mips-linux is used for
the kernel and userspace of a Linux system.  mips-elf is used for bare
metal targets without an OS.

You should be able to build a Linux bootloader using a mips-linux
compiler.

-- 
Daniel Jacobowitz
CodeSourcery

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

* RE: The difference between mips*-gnu and mips*-linux when configure tool-chain
  2006-12-05  3:41   ` Fu, He Wei PSE NKG
@ 2006-12-05  3:41     ` Fu, He Wei PSE NKG
  2006-12-05 12:43     ` Thiemo Seufer
  1 sibling, 0 replies; 6+ messages in thread
From: Fu, He Wei PSE NKG @ 2006-12-05  3:41 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: linux-mips

Thanks, sorry for I missed the mips*-elf for mips*-gnu.

I think that for ld,the difference between mips*-elf and mips*-linux
produces only some minor impact on the default ld script, for the
behavior of ld itself, it has not serious impact.Is it my understanding
correct?

But for bfd, does the difference of these two config-choice have impact
on the behavior of two different bfd-target? . 

-----Original Message-----
From: Daniel Jacobowitz [mailto:dan@debian.org] 
Sent: Monday, December 04, 2006 1:05 AM
To: Fu, He Wei PSE NKG
Cc: linux-mips@linux-mips.org
Subject: Re: The difference between mips*-gnu and mips*-linux when
configure tool-chain

On Sun, Dec 03, 2006 at 05:15:07PM +0800, Fu, He Wei PSE NKG wrote:
> Hello everyone.At the time of building tool-chain for mips machine,we
> can choose mips*-gnu or mips*-linux, I want to know what's the
> difference between them? The original idea is that mips*-gnu for
> developing firmware which has not OS-surport, and mips*-linux for
> developing software on Linux, but it is not suitable for firmware such
> as bootloaders.But now I think I'm not right,it seems that configure
> with mips*-linux suit for both linux and bootloader, and configure
with
> mips*-gnu means build for OS such as IRIX surport, I'm not very
> clearly,can anybody help me figour out the difference between them?

mips-gnu is the GNU system (the Hurd kernel).  mips-linux is used for
the kernel and userspace of a Linux system.  mips-elf is used for bare
metal targets without an OS.

You should be able to build a Linux bootloader using a mips-linux
compiler.

-- 
Daniel Jacobowitz
CodeSourcery

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

* Re: The difference between mips*-gnu and mips*-linux when configure tool-chain
  2006-12-05  3:41   ` Fu, He Wei PSE NKG
  2006-12-05  3:41     ` Fu, He Wei PSE NKG
@ 2006-12-05 12:43     ` Thiemo Seufer
  1 sibling, 0 replies; 6+ messages in thread
From: Thiemo Seufer @ 2006-12-05 12:43 UTC (permalink / raw)
  To: Fu, He Wei PSE NKG; +Cc: Daniel Jacobowitz, linux-mips

Fu, He Wei PSE NKG wrote:
> Thanks, sorry for I missed the mips*-elf for mips*-gnu.
> 
> I think that for ld,the difference between mips*-elf and mips*-linux
> produces only some minor impact on the default ld script, for the
> behavior of ld itself, it has not serious impact.Is it my understanding
> correct?
> 
> But for bfd, does the difference of these two config-choice have impact
> on the behavior of two different bfd-target? . 

For both cases the resulting object file layout is different. mips*-elf
uses SGI-style, mips*-linux uses "traditional" style. I expect the
"traditional" format to get better long-term maintenance.

For a stand-alone bootloader both do for now, but I would prefer
mips*-linux since it eliminates the need for one extra compiler
when building a Linux environment.


Thiemo

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

end of thread, other threads:[~2006-12-05 12:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-03  9:15 The difference between mips*-gnu and mips*-linux when configure tool-chain Fu, He Wei PSE NKG
2006-12-03  9:15 ` Fu, He Wei PSE NKG
2006-12-03 17:05 ` Daniel Jacobowitz
2006-12-05  3:41   ` Fu, He Wei PSE NKG
2006-12-05  3:41     ` Fu, He Wei PSE NKG
2006-12-05 12:43     ` Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox