* ELF and binutils
@ 1996-03-11 3:55 D. Jeff Dionne
0 siblings, 0 replies; 3+ messages in thread
From: D. Jeff Dionne @ 1996-03-11 3:55 UTC (permalink / raw)
Ok, so here's the state of things for elf64 and binutils (as of 2.6) as I
see it. The patches up to 2.6.0.2 (the newest on my CD) don't really give
us anything major
There appears to be some support of elf64 in BFD. There is a target for
elf64-sparc, but I've not tried to build a cross target to it (I'll do
that and see if support is complete enough to compile the whole thing).
It's possible it's not complete, the file is a bit short in comparison to
the other processor specific stuff. It could be that since efl64-sparc seems
to be the only thing in there that it's tacked on to the elf32 stuff :-(
Now, elf (even 32) support in gas does seem to be tacked on. This is not at all
the case with a.out or (E)COFF. The gas ELF targets use routines from ecoff,
which is a plus (?). The alpha processor stuff is quite hardwired for a.out
or ecoff. It's not clear if other processor's targets are also hard wired like
this (I've not looked), but it really doesn't matter, we will have to mess
with the alpha specific stuff internals more than just providing
&alpha_little_silly_elf64_arch :-(
Since gas is poorly integrated with ELF targets, that's where it's going to be
work (provided that elf64-sparc target is complete). Also, since I gather from
the list that the official spec to define ELF64 is not complete, that the ELF64
in BFD is just ELF32 with wide fields, except for the sparc specific stuff. I
figure this probably means that the kernel loader will be fairly trivial to
change to support this type of ELF64.
This might be a way to go. BFD looks fairly simple (in comparison to gas, and
I've not looked at gcc) to provide some kind of ELF64 for. We can likely build
an objcopy quickly. Not that this will get us where we need (or shared libs,
for that matter), but it's a start. gas and gcc will take longer. At least
that's my assesment.
What do we want to do?
Jeff Dionne,
Jeff@maribor.pfnet.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ELF and binutils
[not found] <199603110355.WAA08604@maribor.pfnet.com>
@ 1996-03-11 4:01 ` Erik Troan
1996-03-11 4:43 ` Richard Henderson
1 sibling, 0 replies; 3+ messages in thread
From: Erik Troan @ 1996-03-11 4:01 UTC (permalink / raw)
On Sun, 10 Mar 1996, D. Jeff Dionne wrote:
> This might be a way to go. BFD looks fairly simple (in comparison to gas, and
> I've not looked at gcc) to provide some kind of ELF64 for. We can likely build
> an objcopy quickly. Not that this will get us where we need (or shared libs,
> for that matter), but it's a start. gas and gcc will take longer. At least
> that's my assesment.
>
> What do we want to do?
Well, hop to it :-) Let's get the BFD work done first, swallow hard, and
dive into gas. It look slike you're in charge (!), but I'd be happy to help
if there' anything I can do.
Erik
-------------------------------------------------------------------------------
Always hoped that I'd be an apostle. Knew that I would make it if I tried.
Then when we retire we can write the gospels so they'll all talk about
us when we die. - "The Last Supper" from Jesus Christ Superstar
| Erik Troan = http://sunsite.unc.edu/ewt/ = ewt@sunsite.unc.edu |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ELF and binutils
[not found] <199603110355.WAA08604@maribor.pfnet.com>
1996-03-11 4:01 ` ELF and binutils Erik Troan
@ 1996-03-11 4:43 ` Richard Henderson
1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 1996-03-11 4:43 UTC (permalink / raw)
> There appears to be some support of elf64 in BFD. There is a target for
> elf64-sparc, but I've not tried to build a cross target to it (I'll do
> that and see if support is complete enough to compile the whole thing).
I was under the impression that Sun just threw something together
to support their Mega-Ultra-Hyper-Super-Duper Sparc and that the
"official" elf64-sparc standard is not final.
> Now, elf (even 32) support in gas does seem to be tacked on.
Gas is being moved toward using the BFD to do its object file
manipulation, and the ELF support in gas was the first converted
(or may even have never existed in its old form). Most of the
a.out and COFF support is a twisty maze of crufty hacks. So,
actually, ELF is the best "integrated".
> This might be a way to go. BFD looks fairly simple (in comparison to gas, and
> I've not looked at gcc) to provide some kind of ELF64 for.
The BFD should be just about it. Since the standard calling
conventions already use a GOT, there is no distinction to be
made between "normal" code and "pic" code, as there is on
i386, m68k, and sparc targets. The ppc target is similar in
this respect.
> What do we want to do?
Well, Jon Hall said he'd try to get a copy of the WIP. I'm
still hopeful that he'll be able to get it -- it'd be a bit
easier than making something up.
r~
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-03-11 4:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <199603110355.WAA08604@maribor.pfnet.com>
1996-03-11 4:01 ` ELF and binutils Erik Troan
1996-03-11 4:43 ` Richard Henderson
1996-03-11 3:55 D. Jeff Dionne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox