From: Carlos O'Donell <carlos@baldric.uwo.ca>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: Matthew Wilcox <willy@debian.org>,
rodrigo@tteng.com.br, parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Applications in 64 bits userspace
Date: Thu, 3 Apr 2003 17:52:28 -0500 [thread overview]
Message-ID: <20030403225228.GI7542@systemhalted> (raw)
In-Reply-To: <200304032219.h33MJY6B020051@hiauly1.hia.nrc.ca>
John,
> With respect to the toolchain, you should be aware that there are
> two different GNU linkers. The 64-bit linker was designed for HP-UX
> operation and was written more or less from scratch. The 32-bit
> linker was ported I believe from the i386 port and is better
> suited to linux use. It has had more testing. If the 32-bit linker
> is ported to 64 bits, you will have to deal with the different
> handling of function descriptors (OPDs). This is also an issue
> for the parisc specific code in glibc used for the dynamic loader.
> Code to handle various 64-bit relocations would need to be added
> to the 32-bit linker. Management of stub groups might also be an
> issue although the 32-bit linker currently does a better job of this.
Why was a 64-bit linker written for HPUX, couldn't the normal HPUX
linker have been used?
As for function descriptors, I think that I'll be reworking that code
(glibc) in the next few months.... following somewhat what H.J.Lu
has suggested and ia64 / PowerPC64 implement. This should make things
easier to work with.
> The current 64-bit linker is broken in a number of ways. These
> problems might get fixed in the coming months but it would be nice
> if we could dispense with having two different linkers. If
> the current 64-bit linker is used for linux, then the problems
> with link-once sections, symbol overloading, symbol visibility,
> PHDRs, static links, etc., will need fixing. Fixing these problems
> could be 2-3 months work, or more, for someone who knows their way
> around the linker.
I think extending the 32-bit linker would be a better use of resources.
> What you need to do is to look at the parisc specific code in the
> kernel, binutils and glibc. Carlos O'Donell <carlos@baldric.uwo.ca>
> did some hacking a few months ago to try to get a simple static linked
> application to run in 64-bit mode.
Not true 64-bit since leaving the kernel doesn't mean the processor
stays in wide mode. I need to make some more kernel patches to
enable the start of a static 64-bit userspace.
I've pulled glibc into cvs.parisc-linux.org again, and I'll be
updating frequently and championing our patches back to libc-alpha
in the next month.
I think that before a 64-bit userspace gets started, I'm going to
be working at getting glibc to pass "make -k check" without failure,
followed by lots of TLS work so we keep up with the changes in glibc
for our 32-bit userspace :)
c.
next prev parent reply other threads:[~2003-04-03 22:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-03 18:12 [parisc-linux] Applications in 64 bits userspace Rodrigo Colao Merlo
2003-04-03 18:45 ` Matthew Wilcox
2003-04-03 22:19 ` John David Anglin
2003-04-03 22:52 ` Carlos O'Donell [this message]
2003-04-04 0:02 ` John David Anglin
2003-04-04 18:08 ` Carlos O'Donell
2003-04-04 18:48 ` John David Anglin
2003-04-04 22:07 ` Carlos O'Donell
2003-04-04 22:12 ` John David Anglin
2003-04-05 17:14 ` Carlos O'Donell
2003-04-05 18:10 ` John David Anglin
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=20030403225228.GI7542@systemhalted \
--to=carlos@baldric.uwo.ca \
--cc=dave@hiauly1.hia.nrc.ca \
--cc=parisc-linux@lists.parisc-linux.org \
--cc=rodrigo@tteng.com.br \
--cc=willy@debian.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox