I'm trying to get some simple assembler code on sparc32 running, but it does not write to standard output, the problem occurs either way with ta 0x00 or ta 0x08:
# as -s gah.s -o gah.o
# ld gah.o -o gah -lc
# ./gah
#
# truss ./gah
execve("./gah", 0xEFFFFE28, 0xEFFFFE30) argc = 1
[..]
open("/usr/platform/SUNW,SPARCstation-20/lib/libc_psr.so.1", O_RDONLY) Err#2 ENOENT
close(3) = 0
write(1, " H e l l o , W o r l d".., 14) = 14
_exit(0)
# file gah
gah: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
# echo foo > /dev/fd/1
foo
# uname -a
SunOS foobar 5.6 Generic_105181-05 sun4m sparc SUNW,SPARCstation-20
gcc version 2.95.2 19991024 (release)
Could this be some linker related problem? I seem to see a write in the truss output.
dis Output: http://sprunge.us/hMXV