Bug 11518 - Support explicit relocations for Alpha ECOFF
Summary: Support explicit relocations for Alpha ECOFF
Status: RESOLVED OBSOLETE
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-19 16:07 UTC by Rainer Orth
Modified: 2023-05-17 07:15 UTC (History)
1 user (show)

See Also:
Host:
Target: alpha-dec-osf5.1b
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2010-04-19 16:07:42 UTC
Prompted by PRs gas/11516 and gas/11517, I tried to enable explicit relocations
for Alpha ECOFF, too, to see if I get further along with gas and gcc on Tru64
UNIX with this combination.  At least the trivial change of defining RELOC_OP_P
in config/tc-alpha.h is not enough: trying to assemble the jsr.s testcase from
PR gas/11516 fails with a SEGV:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0x08091e3d in assemble_insn (opcode=0x80f2200, tok=0x80476d0, ntok=3,
insn=0x8047660, reloc=BFD_RELOC_ALPHA_ELF_LITERAL) at
/vol/gnu/src/binutils/binutils-2.20/gas/config/tc-alpha.c:2130
(gdb) p reloc_howto
$1 = (const struct reloc_howto_struct *) 0x0
(gdb) p reloc
$2 = BFD_RELOC_ALPHA_ELF_LITERAL

Obviously RELOC_OP_P also means OBJ_ELF in a couple of places, so this maze
needs to be untangled to have a chance to make gas work this way.
Comment 1 Alan Modra 2023-05-17 07:15:00 UTC
Target is obsolete.