Matt Thomas | 2 Oct 2003 21:45

HPPA toolchain.

I now have a working toolchain based on binutils-current and
gcc-current (3.4).  It uses the Linux ABI and assembly
conventions.  The good news is that it should be relatively
simple to backport the changes to GCC 3.3.1.

The bad news is that the assembly sources need to be updated
to be compatible with the assembler.
--

-- 
Matt Thomas                     email: matt <at> 3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this 
message. 

Jochen Kunz | 3 Oct 2003 00:09
Picon

Re: HPPA toolchain.

On 2003.10.02 21:45 Matt Thomas wrote:

> I now have a working toolchain based on binutils-current and
> gcc-current (3.4).  It uses the Linux ABI and assembly
> conventions.  The good news is that it should be relatively
> simple to backport the changes to GCC 3.3.1.
Is this toolchain available somewhere or will this work show up in
-current soon? 

> The bad news is that the assembly sources need to be updated
> to be compatible with the assembler.
I am still willing to help with (kernel) hacking... 
--

-- 

tschüß,
       Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/

Jason Thorpe | 3 Oct 2003 00:38

Re: HPPA toolchain.


On Thursday, October 2, 2003, at 12:45  PM, Matt Thomas wrote:

> I now have a working toolchain based on binutils-current and
> gcc-current (3.4).  It uses the Linux ABI and assembly
> conventions.  The good news is that it should be relatively
> simple to backport the changes to GCC 3.3.1.
>
> The bad news is that the assembly sources need to be updated
> to be compatible with the assembler.

Sounds like we should go with it.  I'm totally in favor of using the 
Linux ABI for HPPA ELF.

         -- Jason R. Thorpe <thorpej <at> wasabisystems.com>

Greywolf | 3 Oct 2003 00:55

Re: HPPA toolchain.

Thus spake Jason Thorpe ("JT> ") sometime Today...

JT> Sounds like we should go with it.  I'm totally in favor of using the
JT> Linux ABI for HPPA ELF.

Can I ask what the difference is between NetBSD ELF and Linux ELF?

JT>          -- Jason R. Thorpe <thorpej <at> wasabisystems.com>

				--*greywolf;
--
NetBSD:  Got source?

Matt Thomas | 3 Oct 2003 02:17

Re: HPPA toolchain.


On Thursday, October 2, 2003, at 03:55 PM, Greywolf wrote:

> Thus spake Jason Thorpe ("JT> ") sometime Today...
>
> JT> Sounds like we should go with it.  I'm totally in favor of using 
> the
> JT> Linux ABI for HPPA ELF.
>
> Can I ask what the difference is between NetBSD ELF and Linux ELF?

none now. :)

t4 (r19) is reserved for the PIC register.
labels must be followed by a ':'
all registers must be identified by prefixed (r0 = bad, %r0 = good)

I've already converted libc's .S files so they assemble now.

--

-- 
Matt Thomas                     email: matt <at> 3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this 
message.

Jason Thorpe | 3 Oct 2003 05:58

Re: HPPA toolchain.


On Thursday, October 2, 2003, at 03:55  PM, Greywolf wrote:

> Can I ask what the difference is between NetBSD ELF and Linux ELF?

ELF?  Nothing, really.  I just think we should use the Linux style 
relocs, etc. for HPPA rather than the HPUX style.

         -- Jason R. Thorpe <thorpej <at> wasabisystems.com>

ITOH Yasufumi | 3 Oct 2003 13:20
Picon

Re: HPPA toolchain.

matt <at> 3am-software.com writes:

> labels must be followed by a ':'

Is this an intended change?

The HP-UX assembler does not accept ':' after labels,
and it is rather boring for me to remove and add ':'s
on bringing assembly code to and from HP-UX. :|

% uname -sr
HP-UX B.10.20
% as foo.s
as: "foo.s", line 3: error 1051: Illegal symbol in opcode position - :
%

--

-- 
ITOH Yasufumi

Jason Thorpe | 3 Oct 2003 14:20

Re: HPPA toolchain.


On Friday, October 3, 2003, at 04:20  AM, ITOH Yasufumi wrote:

> Is this an intended change?
>
> The HP-UX assembler does not accept ':' after labels,
> and it is rather boring for me to remove and add ':'s
> on bringing assembly code to and from HP-UX. :|

Yes.  Linux uses : after labels in its HPPA assembler.

         -- Jason R. Thorpe <thorpej <at> wasabisystems.com>

Patrick Welche | 3 Oct 2003 19:33
Picon
Picon

gcc 3.3.1 broke exceptions

Is this already known?

quartz% cat throw.cc
#include <stdexcept>

using namespace std;

void func(void)
{
  throw runtime_error("in func()");
}
quartz% cat catch.cc
#include <iostream>
#include <stdexcept>

using namespace std;

void func(void);

int main()
{
  try {
    func();
    return 0;
  }
  catch(const runtime_error& e) {
    cerr<<"runtime error: "<<e.what()<<endl;
    return 1;
  }
}
(Continue reading)

Bill Studenmund | 4 Oct 2003 05:38
Picon

HPPA toolchain

I mentioned this to Matt & Matt on icb, but wanted to ask it here. Sorry I 
already deleted the message for the thread...

Would it be reasonable to reserve a register for thread-specific storage? 
From talking with Nathan, having a register around that only the thread 
library touches makes life much easier. ??

Take care,

Bill

Gmane