In your asm file, "global somefunc". For "non-ELF C", you'd probably want an underscore on it.
In general, "global" for stuff that's in this file, and we need to tell ld about it. "extern" for stuff that's *not* in this file (but is referenced)... and we need to tell ld about it.
(BTW, there's a utility named "test", so make sure you use "./test" to get "your test", rather than the utility)
Best,
Frank