Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD 7 m68060-only kernel



Hi,

I'm finally getting around to testing netbsd-7 on my Amiga 1200. I usually remove unnecessary options from the kernel config and noticed this when trying to build with just options M68060 and M060SP:

--- a2kbbc.o ---
/var/tmp//ccpVrF1Q.s: Assembler messages:
/var/tmp//ccpVrF1Q.s:11: Error: selected processor does not have all features of selected architecture
*** [a2kbbc.o] Error code 1

Adding option M68040, M68030, or M68020 fixes this. However, the rest of userland may benefit noticeably from -m68060. While running postinstall, I was seeing 60intemu counts in the 10 to 11 thousands per second.

The OS can't be built with -m68060:

/usr/src/../tools/bin/m68k--netbsdelf-gcc -nodefaultlibs -Wl,-x -shared -Wl,-soname,libgcc_s.so.1 -Wl,--warn-shared-textrel -Wl,-Map=libgcc_s.so.1.map --sysroot=/usr/src/../dest-amiga -nodefaultlibs -Wl,--version-script=/usr/src/../obj-amiga/external/gpl3/gcc/lib/libgcc/libgcc_s/libgcc.map -o libgcc_s.so.1.0 -Wl,-rpath,/lib -L=/lib -Wl,--whole-archive libgcc_s_pic.a -Wl,--no-whole-archive libgcc_s_pic.a(_float.pico):(.text+0x8): relocation truncated to fit: R_68K_PC16 against symbol `$_exception_handler' defined in .text section in libgcc_s_pic.a(_floatex.pico)
(et cetera)

Compiling with -m68020-60, though, also doesn't work. Even -mtune=68020-60 breaks compiles.

What's the best way to compile the OS without emulated instructions?

John


Home | Main Index | Thread Index | Old Index