From: WongCK <won...@ya...> - 2024-08-09 03:50:16
|
Hi Experts, Need help.So been trying to re-compile most of my programs with new gcc v13.But I keep hitting a brick wall.... and takes me weeks to resolve ( note: not full time) Here's another one... Now I cannot re-compile an assembler file needed for my pdf program.Just a tiny file like this: == drv-init.s =========================== .xdef entry .xref _c_dispatch entry: /* * set up our own stack first. We cannot rely on the kernels stack * to be large enough */ link a6,#0 lea gdos_stack_end,a7 move.l d1,a0 move.l d1,-(a7) bsr _c_dispatch unlk a6 rts .bss gdos_stack: .ds.b 32000gdos_stack_end: .ds.l 1 === eof ================================== I use the following simple command "gcc -c -odriv-init.o drv-init.s"This is with gcc v13.2.But it gives me the following errors : drv-init.s: Assembler messages:drv-init.s:9: Error: operands mismatch -- statement `link a6,#0' ignoreddrv-init.s:10: Error: operands mismatch -- statement `lea gdos_stack_end,a7' ignoreddrv-init.s:14: Error: operands mismatch -- statement `unlk a6' ignoreddrv-init.s:12: Error: can't resolve 0 - a7 I know this was working on older gcc v4, as I was relying on it for all my pdf program. So wat am I missing ?? |