diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2006-03-26 01:12:07 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@codesourcery.com> | 2006-03-26 01:12:07 +0000 |
commit | 1ac4baededff2d76a62f27ae00467ff87f56d674 (patch) | |
tree | 791300575144d04f6b39f835483d97d285771567 /gas/config/bfin-defs.h | |
parent | 753a4ce3929a5db443ed75e9d82c3e976c61f072 (diff) | |
download | gdb-1ac4baededff2d76a62f27ae00467ff87f56d674.zip gdb-1ac4baededff2d76a62f27ae00467ff87f56d674.tar.gz gdb-1ac4baededff2d76a62f27ae00467ff87f56d674.tar.bz2 |
* config/bfin-defs.h (Expr_Node_Type enum): Add Expr_Node_GOT_Reloc.
* config/bfin-lex.l: Recognize GOT17M4 and FUNCDESC_GOT17M4.
* config/bfin-parse.y: Include "libbfd.h", "elf/common.h" and
"elf/bfin.h".
(GOT17M4, FUNCDESC_GOT17M4): New tokens of type <value>.
(any_gotrel): New rule.
(got): Use it, and create Expr_Node_GOT_Reloc nodes.
* config/tc-bfin.c: Include "libbfd.h", "elf/common.h" and
"elf/bfin.h".
(DEFAULT_FLAGS, bfin_flags, bfin_pic_flag): New.
(bfin_pic_ptr): New function.
(md_pseudo_table): Add it for ".picptr".
(OPTION_FDPIC): New macro.
(md_longopts): Add -mfdpic.
(md_parse_option): Handle it.
(md_begin): Set BFD flags.
(md_apply_fix3, bfin_fix_adjustable): Handle new relocs.
(bfin_gen_ldstidxi): Adjust to match the trees that the parser gives
us for GOT relocs.
* Makefile.am (bfin-parse.o): Update dependencies.
(DEPTC_bfin_elf): Likewise.
* Makefile.in: Regenerate.
Diffstat (limited to 'gas/config/bfin-defs.h')
-rw-r--r-- | gas/config/bfin-defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/config/bfin-defs.h b/gas/config/bfin-defs.h index 46ae61e..48bacb3 100644 --- a/gas/config/bfin-defs.h +++ b/gas/config/bfin-defs.h @@ -263,6 +263,7 @@ typedef enum Expr_Node_Binop, /* Binary operator. */ Expr_Node_Unop, /* Unary operator. */ Expr_Node_Reloc, /* Symbol to be relocated. */ + Expr_Node_GOT_Reloc, /* Symbol to be relocated using the GOT. */ Expr_Node_Constant /* Constant. */ } Expr_Node_Type; |