I haven't posted at SX forever but as soon as I ran into my problem, I figured I would take it to you guys.
I'm screwing around with SBL6, and I wanted to recompile it under gcc 3.2 (I figure with the improvements since ~2.7, it wouldn't hurt). All the C code builds mostly fine, with a few insignificant warnings, but the asm's syntax isn't correct. I started in on converting it to the apparently newer syntax AS wants and I'm worried that I may be breaking the code. A few questions, as I don't know SH asm at all:
1) AS chokes on MOV.L Rx, Ry but just mov Rx, Ry is okay. Are these equivalent?
2) I replaced .EXPORT with .global. Are these the same directive?
3) There is a directive reading something like
.SECTION SEGA_P, CODE, ALIGN=4
I replaced this with
.section .code
.align 4
What is section SEGA_P (or some sources, SEGA_C)?
4) And lastly, variables. There were some .RES.L / .RES.W pseudo-ops I replaced with .long and .word and .DATA.L and .DATA.W that I also replaced with .long and .word. This is where I'm afraid I might have broke something.
I made backups, so I'm ready to fix the source if necessary. Is there any good sh-coff-as specific documentation out there? KPIT's GNUSH doesn't come with any. Thanks in advance!

I'm screwing around with SBL6, and I wanted to recompile it under gcc 3.2 (I figure with the improvements since ~2.7, it wouldn't hurt). All the C code builds mostly fine, with a few insignificant warnings, but the asm's syntax isn't correct. I started in on converting it to the apparently newer syntax AS wants and I'm worried that I may be breaking the code. A few questions, as I don't know SH asm at all:
1) AS chokes on MOV.L Rx, Ry but just mov Rx, Ry is okay. Are these equivalent?
2) I replaced .EXPORT with .global. Are these the same directive?
3) There is a directive reading something like
.SECTION SEGA_P, CODE, ALIGN=4
I replaced this with
.section .code
.align 4
What is section SEGA_P (or some sources, SEGA_C)?
4) And lastly, variables. There were some .RES.L / .RES.W pseudo-ops I replaced with .long and .word and .DATA.L and .DATA.W that I also replaced with .long and .word. This is where I'm afraid I might have broke something.
I made backups, so I'm ready to fix the source if necessary. Is there any good sh-coff-as specific documentation out there? KPIT's GNUSH doesn't come with any. Thanks in advance!