Commit Graph

43 Commits

Author SHA1 Message Date
skrll
15fa0783d7 Centralise USE_COMPILERCRTSTUFF.
PCC might need help.
2010-11-28 18:40:54 +00:00
joerg
5511fa25aa Don't build the CRT stuff here for i386 and x86_64. 2010-08-07 18:02:40 +00:00
mrg
4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
mrg
ad469079f3 copy across a hack from the mips libc/mcount build. self documenting:
+.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
+# Turn off as(1) warnings on MIPS, since warnings are fatal with WARNS>0
+# and GCC configury passes -finhibit-size-directive which causes mips-gas
+# to barf.  Don't know what the real fix for this is...
+#
+# XXX should be COPTS, but that's too early
+CPUFLAGS+=-Wa,--no-warn
2009-12-17 07:24:06 +00:00
mrg
149287da38 add the mips64 files as found on the matt-nb5-mips64 branch,
for base-reference.
2009-12-14 02:26:28 +00:00
skrll
ff1fab9942 Re-run mknative for crtstuff. 2009-08-16 17:36:26 +00:00
mrg
33fb41cc00 re-run mknative-gcc for gcc-4.1-20080831.
XXX: powerpc and sh3eb files got WORDS_BIGENDIAN define wrong.
XXX: hand patched the correct for now, and will be investigating
XXX: why this is happening now.
2008-09-01 23:52:24 +00:00
martin
603c49b548 re-mknative after recent gcc configure change for m68k 2008-08-24 08:51:11 +00:00
lukem
d929f5af49 Add an explicit rule for ${OBJS}: ${DPSRCS}, since <bsd.prog.mk>
doesn't provide that any more, and this Makefile uses the latter
in a non-standard fashion.
Fixes "make" in a clean directory when "make depend" has not been run.

Use DPSRCS rather than hand-crafted rules to achieve the same effect.
2008-08-04 04:53:22 +00:00
skrll
bd5ba3588c Rerun mknative for all archs.
Picks up the addition of complex support and use of __cxa_atexit.
2007-09-21 10:51:02 +00:00
scw
23c93d0392 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:56:02 +00:00
matt
2018fad37d Honour ${CPUFLAGS} 2007-03-09 04:40:38 +00:00
drochner
ce75a0ec7e regen after math.h change - now we've got _GLIBCXX_USE_C99_MATH 2007-02-26 11:57:52 +00:00
drochner
10527a675c regen after math.h change - now we've got _GLIBCXX_USE_C99_MATH 2007-02-07 16:52:31 +00:00
cherry
ebd1964a09 Bootstrap for ia64 2006-09-14 23:48:28 +00:00
scw
959fd76ef8 Add gcc4 mknative files for sh5el. 2006-09-04 20:01:28 +00:00
mrg
2f9635ff9a regenerate with fixed armeb configury 2006-07-06 00:26:39 +00:00
mrg
aacdf51747 regenerate 2006-07-03 00:24:45 +00:00
mrg
700bddfd36 regenerate 2006-07-02 23:05:45 +00:00
mrg
3b92ffadb2 these aren't used and probably won't be so clean them up. 2006-07-02 22:35:51 +00:00
mrg
15e1fa39fd regenerate 2006-07-02 21:46:28 +00:00
mrg
a61b5bf841 regenerate. 2006-07-02 07:04:41 +00:00
mrg
291f9292a5 regenerate 2006-07-02 01:26:32 +00:00
mrg
93720dafdf mknative files for vax / gcc4. 2006-06-30 11:59:36 +00:00
mrg
50ee1514c8 regenerate mknative for armeb. 2006-06-30 03:00:34 +00:00
mrg
5842bdbd43 run mknative for powerpc64. 2006-06-30 02:54:50 +00:00
mrg
0d4ef31ba8 regenerate arm, sh3el (now properly working) and sh3eb (not yet
properly working.)
2006-06-26 19:54:03 +00:00
mrg
c1f26e8c41 regenerate hppa mknative files. this mostly works but i have to
compile significant portions of the tree at -O1 instead of -O2, and
sometimes -Os/-O0 is required, and others none works.  i'd guess that
some instructions in the .md file are generating more assembler than
they claim to be since all these errors are due too large offsets.

but fixing that is work for someone else, or at least another day :-)
2006-06-24 12:58:42 +00:00
mrg
9dcea3dbff add GCC4 mknative files for sun2. seems to build ok.. 2006-06-23 07:48:45 +00:00
drochner
cb566fe802 sync RCS IDs in comments, no functional change 2006-05-27 13:37:04 +00:00
mrg
f421d0c91a regenerate. fixes mipsel HAVE_COMDAT_GROUP 2006-05-26 19:57:29 +00:00
mrg
16c4e2e447 generate new libobjc4 files and regenerate many many others.
XXX: re-running "make native-gcc" some times causes the
XXX: gcc/configure test for COMDAT groups to fail.  a fresh
XXX: configure (ie, with no objdir/.native tree yet) seems to
XXX: fix this.  right now mipsel and alpha have the wrong
XXX: definition in the checked in auto-host.h.
2006-05-24 21:20:32 +00:00
mrg
331828317b mknative generated files for hppa and GCC4. seems to kinda of build, not run-tested. 2006-05-21 00:48:58 +00:00
mrg
e9d0e73f70 generated sh5 mknative GCC4 files. seems to build ok, but as-yet untested. 2006-05-20 20:36:03 +00:00
mrg
4bdc7bbc2d add mknative files for sh3* and GCC4. these build the basics but bomb
out in libc due to the current implementation of va_arg() using lvalue
casts and GCC4 gets very unhappy with lvalue casts.
2006-05-20 09:57:48 +00:00
mrg
61772c2d25 generated sparc and m68k GCC4 mknative files. these are only build
tested and mvme68k was the m68k platform has been built.
2006-05-20 03:54:10 +00:00
mrg
173e1af775 generated mknative files for amd64 and GCC4. not tested but a release
build completes.
2006-05-19 18:41:37 +00:00
drochner
7e8ecee6be add alpha native support
(a kernel compiled with gcc4 runs for me, userland untested)
2006-05-19 11:44:24 +00:00
mrg
f97e259a75 add generated mknative files for mipseb platforms. evbmips/mipseb gets
to kernels build now (this breaks due to current -current breakage.)

(i guess christos's csu fixes fixed the builds libgcc_s build, which was
missing symbols that i recall as being weak.)

the mips* binaries are as-yet untested.
2006-05-19 05:44:16 +00:00
mrg
804d35c095 GCC4 mknative files for armeb (big endian) and mipsel (little endian.)
armeb builds but mips fails in libgcc_s.so.
2006-05-18 20:20:49 +00:00
mrg
657e5b49ad GCC4 mknative files for arm (little endian) 2006-05-18 20:18:11 +00:00
mrg
a702cc5589 regen (just rcsid changes) 2006-05-18 18:43:37 +00:00
mrg
89318da5dd add the build framework for in-tree GCC4 libraries, and the mknative
output for i386, sparc64 and powerpc.
2006-05-10 22:53:49 +00:00