include/elf/
commit9bd88bdf34b0763c752b0501904b26c9cf65ff6c
authorRichard Sandiford <rsandifo@nildram.co.uk>
Thu, 16 Dec 2004 16:56:04 +0000 (16 16:56 +0000)
committerRichard Sandiford <rsandifo@nildram.co.uk>
Thu, 16 Dec 2004 16:56:04 +0000 (16 16:56 +0000)
tree8c43190fc65f13827b70ed2d00151761f6dbc008
parent24c19802c76940baeb63b32d8f9d2215eddbe7cc
include/elf/
* v850.h (R_V850_LO16_SPLIT_OFFSET): New reloc.

bfd/
* reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type.
* elf32-v850.c (v850_elf_howto_table): Add entry for
R_V850_LO16_SPLIT_OFFSET.
(v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET.
(v850_elf_perform_lo16_relocation): New function, extracted from...
(v850_elf_perform_relocation): ...here.  Use it to handle
R_V850_LO16_SPLIT_OFFSET.
(v850_elf_check_relocs, v850_elf_final_link_relocate): Handle
R_V850_LO16_SPLIT_OFFSET.
* libbfd.h, bfd-in2.h: Regenerate.

gas/
* config/tc-v850.c (handle_lo16): New function.
(v850_reloc_prefix): Use it to check lo().
(md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.

gas/testsuite/
* gas/v850/split-lo16.{s,d}: New test.
* gas/v850/v850.exp: Run it.

ld/testsuite/
* ld-v850: New directory.
18 files changed:
bfd/ChangeLog
bfd/bfd-in2.h
bfd/elf32-v850.c
bfd/libbfd.h
bfd/reloc.c
gas/ChangeLog
gas/config/tc-v850.c
gas/testsuite/ChangeLog
gas/testsuite/gas/v850/basic.exp
gas/testsuite/gas/v850/split-lo16.d [new file with mode: 0644]
gas/testsuite/gas/v850/split-lo16.s [new file with mode: 0644]
include/elf/ChangeLog
include/elf/v850.h
ld/testsuite/ChangeLog
ld/testsuite/ld-v850/split-lo16.d [new file with mode: 0644]
ld/testsuite/ld-v850/split-lo16.ld [new file with mode: 0644]
ld/testsuite/ld-v850/split-lo16.s [new file with mode: 0644]
ld/testsuite/ld-v850/v850.exp [new file with mode: 0644]