binutils-gdb/ld/testsuite/ld-avr/gc-section-debugline.d
Denis Chertykov 328e7bfdde 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.
2015-07-08 21:41:52 +03:00

71 lines
2.3 KiB
D

#name: dwarf decoded line after gc-sections
#as: -mmcu=avr51 -gdwarf-sections -g
#ld: -mavr51 -gc-sections -u main
#objdump: --dwarf=decodedline
#source: per-function-debugline.s
#target: avr-*-*
.*: file format elf32-avr
Decoded dump of debug contents of section .debug_line:
CU: .*:
File name Line number Starting address
per-function-debugline.s 39 0
per-function-debugline.s 40 0x2
per-function-debugline.s 41 0x4
per-function-debugline.s 42 0x6
per-function-debugline.s 47 0x8
per-function-debugline.s 48 0xc
per-function-debugline.s 49 0x10
per-function-debugline.s 50 0x12
per-function-debugline.s 51 0x16
per-function-debugline.s 52 0x1a
per-function-debugline.s 54 0x1c
per-function-debugline.s 55 0x1e
per-function-debugline.s 56 0x20
per-function-debugline.s 62 0x22
per-function-debugline.s 63 0x24
per-function-debugline.s 64 0x26
per-function-debugline.s 65 0x28
per-function-debugline.s 70 0x2a
per-function-debugline.s 71 0x2e
per-function-debugline.s 72 0x32
per-function-debugline.s 73 0x36
per-function-debugline.s 74 0x38
per-function-debugline.s 75 0x3c
per-function-debugline.s 76 0x40
per-function-debugline.s 77 0x44
per-function-debugline.s 79 0x48
per-function-debugline.s 80 0x4a
per-function-debugline.s 81 0x4c