https://sourceware.org/bugzilla/show_bug.cgi?id=28292
Bug ID: 28292 Summary: v850-elf-ld: Opcode "st.b" is cracked in relocation process Product: binutils Version: 2.37 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: t-hosh...@pony-e.jp Target Milestone: --- Created attachment 13637 --> https://sourceware.org/bugzilla/attachment.cgi?id=13637&action=edit crtE.asm and test.ld Attached crtE.asm has 2 instruction their uses st.b. These instructions would be finally identical I guess through relocation by linker. However, relocated binary shows two different instruction. (second st.b have been replaced by sum of 0x5740 and 0xF06E?) -- Assembly (from crtE.asm) st.b r10, -0x0F92[r0] -- use immediate st.b r10, VSWC[r0] -- VSWC externally defined by linker script -- Linker script (test.ld) SECTIONS { .text 0x00000000 : { *(.text*) } } VSWC = -0x0F92; /* FFFFF06EH */ -- Assemble and link commands v850-elf-as crtE.asm -o crtE.o \ && v850-elf-ld --script=test.ld -o a.out crtE.o -- v850-elf-objdump -d a.out 00000000 <__start>: 0: 40 57 6e f0 st.b r10, -3986[r0] 4: ae 47 00 00 jarl ffee0004 <VSWC+0xffee0f96>, r8 -- You are receiving this mail because: You are on the CC list for the bug.