* config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Aug 2002 00:10:19 +0000 (00:10 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 9 Aug 2002 00:10:19 +0000 (00:10 +0000)
commit2bbd9c2554941f95f8f58d8c61dd234e421d074c
tree0935168216f88f1acf155ff459cc90092a89c551
parent9bf279ebdd48423e3654240119153e99002db3fa
* 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/gotpc.d [new file with mode: 0644]
gas/testsuite/gas/i386/gotpc.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp