bfd/
commitfbb975d96b38eaf4bbd0c6d5e8132a8ed854a6e2
authorRichard Sandiford <rsandifo@nildram.co.uk>
Mon, 25 Jun 2007 10:13:57 +0000 (25 10:13 +0000)
committerRichard Sandiford <rsandifo@nildram.co.uk>
Mon, 25 Jun 2007 10:13:57 +0000 (25 10:13 +0000)
treee737824a18abbc09665bc6cc9a06ebbe5492a6cf
parent3fc3bfa15c05bf6857eb44669123af7166b19c14
bfd/
* elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs
to be used for calls from MIPS16 code.

gas/
* config/tc-mips.h (TC_SYMFIELD_TYPE): New.
* config/tc-mips.c (append_insn): Record which symbols have
R_MIPS16_26 relocations against them.
(mips_fix_adjustable): Don't reduce relocations against such symbols.

ld/testsuite/
* ld-mips-elf/mips16-local-stubs-1.s,
* ld-mips-elf/mips16-local-stubs-1.d: New tests.
* ld-mips-elf/mips-elf.exp: Run them.
bfd/ChangeLog
bfd/elfxx-mips.c
gas/ChangeLog
gas/config/tc-mips.c
gas/config/tc-mips.h
ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/mips-elf.exp
ld/testsuite/ld-mips-elf/mips16-local-stubs-1.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips16-local-stubs-1.s [new file with mode: 0644]