From 353ab8610a05f3a40b32c4fc1e11a44b53d3051d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 5 Jun 2007 00:28:04 +0000 Subject: * config/tc-spu.c (spu_cons): Use deferred_expression. Handle number@ppu. (tc_gen_reloc): Abort if neither addsy or subsy is set. (md_apply_fix): Don't attempt to resolve SPU_PPU relocs. * config/tc-spu.h (md_operand): Handle @ppu without sym. --- gas/config/tc-spu.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'gas/config/tc-spu.h') diff --git a/gas/config/tc-spu.h b/gas/config/tc-spu.h index 134c179..4c6c2d4 100644 --- a/gas/config/tc-spu.h +++ b/gas/config/tc-spu.h @@ -85,8 +85,18 @@ struct tc_fix_info { /* We don't need to do anything special for undefined symbols. */ #define md_undefined_symbol(s) 0 -/* We have no special operand handling. */ -#define md_operand(e) +extern symbolS *section_symbol (asection *); +#define md_operand(e) \ + do { \ + if (strncasecmp (input_line_pointer, "@ppu", 4) == 0) \ + { \ + e->X_op = O_symbol; \ + if (abs_section_sym == NULL) \ + abs_section_sym = section_symbol (absolute_section); \ + e->X_add_symbol = abs_section_sym; \ + e->X_add_number = 0; \ + } \ + } while (0) /* Fill in rs_align_code fragments. */ extern void spu_handle_align PARAMS ((fragS *)); -- cgit v1.1