mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
4a73203297
* ld-tic6x/pcr-reloc.d: New test. * ld-tic6x/pcr-reloc.s: New test. gas/testsuite/ * gas/tic6x/pcr-relocs.d: New test. * gas/tic6x/pcr-relocs.s: New test. * gas/tic6x/pcr-relocs-undef.d: New test. * gas/tic6x/pcr-relocs-undef.s: New test. * gas/tic6x/reloc-bad-2.s: Update for pcr_offset. * gas/tic6x/reloc-bad-2.l: Update for pcr_offset. bfd/ * elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for R_C6000_PCR_H16 and R_C6000_PCR_L16. (elf32_tic6x_relocate_section): Handle them. gas/ * config/tc-tic6x.c (tic6x_operators): Add "pcr_offset". (tic6x_parse_name): Handle it. (tic6x_fix_new_exp): Handle O_pcr_offset. (tic6x_fix_adjustable): Return 0 for the new relocs. (md_apply_fix): Handle them. (tc_gen_reloc): Likewise. * config/tc-tic6x.h (tic6x_fix_info): Add a fix_subsy member.
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
#name: C6X PCR relocations
|
|
#as: -mlittle-endian
|
|
#ld: -melf32_tic6x_le -Tgeneric.ld
|
|
#source: pcr-reloc.s
|
|
#objdump: -dr
|
|
|
|
.*: *file format elf32-tic6x-le
|
|
|
|
|
|
Disassembly of section \.text:
|
|
|
|
10000000 <[^>]*>:
|
|
10000000:[ \t]+00800264[ \t]+ldw \.D1T1 \*\+a0\(0\),a1
|
|
10000004:[ \t]+00800264[ \t]+ldw \.D1T1 \*\+a0\(0\),a1
|
|
10000008:[ \t]+00800264[ \t]+ldw \.D1T1 \*\+a0\(0\),a1
|
|
|
|
1000000c <[^>]*>:
|
|
1000000c:[ \t]+004003e2[ \t]+mvc \.S2 pce1,b0
|
|
10000010:[ \t]+01000264[ \t]+ldw \.D1T1 \*\+a0\(0\),a2
|
|
10000014:[ \t]+01001a2a[ \t]+mvk \.S2 52,b2
|
|
10000018:[ \t]+0100006a[ \t]+mvkh \.S2 0,b2
|
|
1000001c:[ \t]+01000a2a[ \t]+mvk \.S2 20,b2
|
|
10000020:[ \t]+0100006a[ \t]+mvkh \.S2 0,b2
|
|
10000024:[ \t]+01001e2a[ \t]+mvk \.S2 60,b2
|
|
10000028:[ \t]+0100006a[ \t]+mvkh \.S2 0,b2
|
|
1000002c:[ \t]+01000e2a[ \t]+mvk \.S2 28,b2
|
|
10000030:[ \t]+0100006a[ \t]+mvkh \.S2 0,b2
|
|
|
|
10000034 <[^>]*>:
|
|
10000034:[ \t]+00800264[ \t]+ldw \.D1T1 \*\+a0\(0\),a1
|
|
|
|
10000038 <[^>]*>:
|
|
10000038:[ \t]+004003e2[ \t]+mvc \.S2 pce1,b0
|
|
|
|
1000003c <[^>]*>:
|
|
1000003c:[ \t]+00800264[ \t]+ldw \.D1T1 \*\+a0\(0\),a1
|
|
10000040:[ \t]+017ff02a[ \t]+mvk \.S2 -32,b2
|
|
10000044:[ \t]+017fffea[ \t]+mvkh \.S2 4294901760,b2
|
|
[ \t]*\.\.\.
|