]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Define DIFF_EXPR_OK for avr target to allow PC relative difference relocation.
authorDenis Chertykov <chertykov@gmail.com>
Wed, 8 Jul 2015 18:35:19 +0000 (21:35 +0300)
committerDenis Chertykov <chertykov@gmail.com>
Wed, 8 Jul 2015 18:41:52 +0000 (21:41 +0300)
commit328e7bfdde7267f5e4b971bc6dca7b82aef77661
tree55de9e4f72b35c5e1bbbec78e50812e47198ae8c
parent7c7f93f6e5ce31223acbe871fe0c7e4daf0d8bbc
Define DIFF_EXPR_OK for avr target to allow PC relative difference relocation.

When generating relocation (tc_gen_reloc) 32 bit relocation fixup
is changed to new 32 bit PC relative relocation if the fixup has pc-relative
flag set.

bfd/ChangeLog

2015-07-06  Pitchumani Sivanupandi <pitchumani.s@atmel.com>

    * elf32-avr.c: Add 32 bit PC relative relocation for AVR target.

gas/ChangeLog

2015-07-06  Pitchumani Sivanupandi <pitchumani.s@atmel.com>

    * config/tc-avr.c (tc_gen_reloc): Change 32 bit relocation to
    32 bit PC relative and update offset if the fixup is pc-relative.
    * config/tc-avr.h (DIFF_EXPR_OK): Define to enable PC relative diff
    relocs.

gas/testsuite/ChangeLog

2015-07-06  Pitchumani Sivanupandi <pitchumani.s@atmel.com>

    * gas/avr/pc-relative-reloc.d: New test for 32 bit pc relative reloc.
    * gas/avr/per-function-debugline.s: New test source.

include/ChangeLog

2015-07-06  Pitchumani Sivanupandi <pitchumani.s@atmel.com>

    * elf/avr.h: Add new 32 bit PC relative relocation.

ld/testsuite/ChangeLog

2015-07-06  Pitchumani Sivanupandi <pitchumani.s@atmel.com>

    * ld-avr/gc-section-debugline.d: New test.
    * ld-avr/per-function-debugline.s: Source for new test.
13 files changed:
bfd/ChangeLog
bfd/elf32-avr.c
gas/ChangeLog
gas/config/tc-avr.c
gas/config/tc-avr.h
gas/testsuite/ChangeLog
gas/testsuite/gas/avr/pc-relative-reloc.d [new file with mode: 0644]
gas/testsuite/gas/avr/per-function-debugline.s [new file with mode: 0644]
include/ChangeLog
include/elf/avr.h
ld/testsuite/ChangeLog
ld/testsuite/ld-avr/gc-section-debugline.d [new file with mode: 0644]
ld/testsuite/ld-avr/per-function-debugline.s [new file with mode: 0644]