Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* HPPA multiarching plan
@ 2002-11-25 16:48 Joel Brobecker
  2002-11-25 16:58 ` Daniel Jacobowitz
  2002-11-25 17:04 ` Jason R Thorpe
  0 siblings, 2 replies; 7+ messages in thread
From: Joel Brobecker @ 2002-11-25 16:48 UTC (permalink / raw)
  To: gdb-patches

[This plan assumes that the ports to bsd/osf/pro are either obsoleted, or
taken care of by somebody else]

today I have tried to get a bigger picture of what to do to get the hppa
ports (partially) multi-arched. The targets that I will be converting
are:
	hppa*64*-*-hpux11*
	hppa*-*-hpux*
	hppa*-*-hiux*

I am assuming hiux is just a synonym of hpux?

The first thing I wasn't sure was to build an os_abi sniffer. So far,
given the short lists of targets, I suggest the following:

  - Add 2 new OSABI enums: HPPA_HPUX and HPPA64_HPUX.
    (it seems important to me to keep the OS name in the enum, to
    differentiate with HPPA_LINUX for instance)

  - The sniffer would then guess the correct value based like so:

    1. If object format is ELF
       -> OSABI = HPPA64_HPUX

    2. If object format is SOM
       -> OSABI = HPPA_HPUX
      
    Later on, when we want to add support for hppa-linux, the sniffer will
    need to be refined. I assume hppa-linux uses ELF? In which case we
    will probably have to dig into the ELF header to search for the clue
    that will reveal either hpux or linux.

What do you think?

-- 
Joel


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

end of thread, other threads:[~2002-11-26 15:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-25 16:48 HPPA multiarching plan Joel Brobecker
2002-11-25 16:58 ` Daniel Jacobowitz
2002-11-25 17:04 ` Jason R Thorpe
2002-11-25 17:24   ` Joel Brobecker
2002-11-25 17:47     ` Jason R Thorpe
2002-11-26  7:26   ` Andrew Cagney
2002-11-26  7:56     ` Jason R Thorpe

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