* config/bfin-defs.h (Expr_Node_Type enum): Add Expr_Node_GOT_Reloc.
authorBernd Schmidt <bernds@codesourcery.com>
Sun, 26 Mar 2006 01:12:07 +0000 (01:12 +0000)
committerBernd Schmidt <bernds@codesourcery.com>
Sun, 26 Mar 2006 01:12:07 +0000 (01:12 +0000)
commit1ac4baededff2d76a62f27ae00467ff87f56d674
tree791300575144d04f6b39f835483d97d285771567
parent753a4ce3929a5db443ed75e9d82c3e976c61f072
* 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.
gas/ChangeLog
gas/Makefile.am
gas/Makefile.in
gas/config/bfin-defs.h
gas/config/bfin-lex.l
gas/config/bfin-parse.y
gas/config/tc-bfin.c