gas/
authorRichard Sandiford <rdsandiford@googlemail.com>
Thu, 2 Dec 2010 13:25:13 +0000 (13:25 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Thu, 2 Dec 2010 13:25:13 +0000 (13:25 +0000)
commitc969da647374bec1548589cd47406e2a12a7800c
tree70576c6e17cf11e39b7eb45aac6bf109929e911e
parent0c98115d15fbd16d6808a5a7718d748072c00dd7
gas/
* symbols.c (S_FORCE_RELOC): Return true for indirect functions
even if !strict.
* expr.c (operand): Don't convert absolute symbols to constants
if S_FORCE_RELOC is true.
(expr): Only reduce subtractions between different symbols if
S_FORCE_RELOC is false for both of them.
* write.c (fixup_segment): Don't remove symbols if S_FORCE_RELOC
is true for them, regardless of their segment.

gas/testsuite/
* gas/i386/ifunc-2.s, gas/i386/ifunc-2.l: New test.
* gas/i386/ifunc-3.s, gas/i386/ifunc-3.d: Likeise.
* gas/i386/i386.exp: Run them.
gas/ChangeLog
gas/expr.c
gas/symbols.c
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/ifunc-2.l [new file with mode: 0644]
gas/testsuite/gas/i386/ifunc-2.s [new file with mode: 0644]
gas/testsuite/gas/i386/ifunc-3.d [new file with mode: 0644]
gas/testsuite/gas/i386/ifunc-3.s [new file with mode: 0644]
gas/write.c