* config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
commit37d1812908fd1357f87b70324d454da44817e902
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Aug 2002 00:10:19 +0000 (9 00:10 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 9 Aug 2002 00:10:19 +0000 (9 00:10 +0000)
treeb1aefb13a6f7b9fff898c56b0d3f38f7f7168790
parent29e73d9e01c00acd376024c59cab40793715ca39
* 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