OSDN Git Service

* config/bfin-defs.h (Expr_Node_Type enum): Add Expr_Node_GOT_Reloc.
authorBernd Schmidt <bernd.schmidt@analog.com>
Sun, 26 Mar 2006 01:12:07 +0000 (01:12 +0000)
committerBernd Schmidt <bernd.schmidt@analog.com>
Sun, 26 Mar 2006 01:12:07 +0000 (01:12 +0000)
commit7ce058a0741bea334bb77ad911c1af6ea95dd82f
treefba92d8076d7990c0e4dbe160165a9c2a7d340bd
parent6f9c48e8995dce3ccd59ca39dd2914fbdaa20d51
* 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