Bug 433920 - alpha/ECOFF support for GAS
Summary: alpha/ECOFF support for GAS
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: binutils
Version: 5.3
Hardware: alpha
OS: All
low
medium
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-22 04:26 UTC by David Leonard
Modified: 2008-02-23 04:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-22 08:00:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Leonard 2008-02-22 04:26:04 UTC
I'm cross-compiling for a Tru64/Alpha target, which uses ECOFF.

While GAS's support for *ELF* is pretty good on Alpha, the ECOFF code has
languished .. I've tried hacking at binutils for a while now and am at a point
where I would benefit from advice from someone who might know binutils' history
and internals better than me.

The rest of binutils seems to work really well with alpha-coff (eg objdump)

My suspicion is that only a small effort is required to bring coff/alpha.h and
config/tc-alpha.c up to date.

When I enabled gas for target=alphaev68-dec-osf5.1b, gas fails the hello world
test program with:

   hello-gas.s:29: Fatal error: unhandled relocation type (null)

I tracked this down to internal reloc code DUMMY_RELOC_LITUSE_JSR not handled.
And that happens because RELOC_OP_P isn't defined. And when it is defined, then
a whole bunch of things defined only in include/elf/alpha.h are required and not
found in tc-alpha.c. Then I got lost.

So, can anyone help with some pointers to fixing this?

Comment 1 Jakub Jelinek 2008-02-22 08:00:01 UTC
If you are cross compiling to Tru64/Alpha, just build your own binutils with
that support.  I have no interest in enabling ECOFF support in binutils and
enabling it may have security consequences, because it is certainly far less
maintained code than ELF.

Comment 2 David Leonard 2008-02-23 04:38:14 UTC
Sorry, I should have reported to bug-binutils. This is not a bug for any
package released by Red Hat. Also, I am building my own binutils with a target
for Tru64, but I didn't make that clear. 


Note You need to log in before you can comment on or make changes to this bug.