OSDN Git Service

* config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
authorjakub <jakub>
Fri, 9 Aug 2002 00:09:50 +0000 (00:09 +0000)
committerjakub <jakub>
Fri, 9 Aug 2002 00:09:50 +0000 (00:09 +0000)
commitb4dd113867fa4d1541f898a4d2ded967e7682e43
tree11b3aaac93cd8d3749d319b8554013a3c688da5b
parentf3eeae6c0ca915aca3a247f2f3018678667ac969
* config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
at start of insn, pass it to output_disp and output_imm.
(output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
in displacement for R_386_32 reloc, use R_386_GOTPC and compute
properly addend.
(output_imm): Added arguments.  Compute properly addend for
R_386_GOTPC.
(md_apply_fix3): Remove R_386_GOTPC handling.
* testsuite/gas/i386/gotpc.s: New.
* testsuite/gas/i386/gotpc.d: New.
* testsuite/gas/i386/i386.exp: Add gotpc test.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp