Re: Is m68hc11 target still supported by gas?
On 09/16/2017 08:15 PM, Andreas Schwab wrote: On Sep 16 2017, Marek Pietrzakwrote: test.o: file format elf32-m68hc11 Disassembly of section .text: : 0: bd 00 00 jsr 0x0 3: 20 0a bra 0xf ... 000f : f: 01 nop As you can see bra is generated correctly, but jsr is incorrect. Look at the relocations. test.o: file format elf32-m68hc11 Disassembly of section .text: : 0: bd 00 00jsr 0x0 0: R_M68HC11_RL_JUMP*ABS* 1: R_M68HC11_16 a2 3: 20 0a bra 0xf 3: R_M68HC11_RL_JUMP*ABS* ... 000f : f: 01 nop Andreas. Right, ld fixes the relocs. Thanks for the tip. Marek ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
Re: Is m68hc11 target still supported by gas?
On Sep 16 2017, Marek Pietrzakwrote: > test.o: file format elf32-m68hc11 > > Disassembly of section .text: > > : > 0: bd 00 00 jsr 0x0 > 3: 20 0a bra 0xf > ... > > 000f : > f: 01 nop > > As you can see bra is generated correctly, but jsr is incorrect. Look at the relocations. test.o: file format elf32-m68hc11 Disassembly of section .text: : 0: bd 00 00jsr 0x0 0: R_M68HC11_RL_JUMP*ABS* 1: R_M68HC11_16 a2 3: 20 0a bra 0xf 3: R_M68HC11_RL_JUMP*ABS* ... 000f : f: 01 nop Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
Is m68hc11 target still supported by gas?
Hello, I'm reviving some ancient stuff and needed to assemble code for m68hc11 target (I'm going to add a new target for similar microcontroller, but it's a different story). I compiled binutils 2.29 for m68hc11 target on Fedora 26 x64 and tried this test program: a1: jsr a2 bra a2 .skip 10 a2: nop yet the objdump of the assembly shows me this: test.o: file format elf32-m68hc11 Disassembly of section .text: : 0: bd 00 00 jsr 0x0 3: 20 0a bra 0xf ... 000f : f: 01 nop As you can see bra is generated correctly, but jsr is incorrect. The same for jmp if you try one. That leads me to a suspicion this target hasn't been tested and maintained for some time. Is m68hc11 still supported? Marek ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils