Commit Graph

52 Commits

Author SHA1 Message Date
mrg
0b9686b0cc these were only relevant for a.out builds; time to sleep forever... 2010-07-06 06:04:58 +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
tnozaki
9efec5bce3 1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
   so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
   prepareing for next libc major crunk.
4. bump libc minor version.
2010-06-07 13:52:28 +00:00
matt
f45a8c29f5 Merge from matt-nb5-mips64 2009-12-14 03:04:33 +00:00
matt
2288207161 Merge from matt-nb5-mips64. 2009-12-14 01:07:41 +00:00
snj
32381fa0dd Follow upstream license changes for files with Michael Shalayeff's
copyright.  In most cases, this means dropping the 3rd and 4th clauses.
2009-11-03 05:07:25 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
simonb
d8de5b102b Remove support for NetBSD/pc532. 2008-01-09 11:25:58 +00:00
uwe
a34b3f871d In handwritten asm use -fPIC code instead of -fpic, our libc has grown
large enough for GOT to be larger than 8k.

While here kill redundant PIC ifdefs in setjmp.S - sparc "call"
instruction is piccy by itself.

Tested by martin@
2007-10-08 13:06:00 +00:00
scw
5764a76889 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
cherry
f264f80b8e Further ia64 libc compat bits 2006-09-23 17:38:03 +00:00
ross
5c30c35cd8 urk, need these too 2006-07-07 06:59:04 +00:00
drochner
46b4d67318 build {frexp,ldexp,modf} in the "compat" subtree
(Drop the modf assembler version. We have the same code in libm.)
(Drop the ldexp inline-assembler version. The same code is in libm as
scalbn; the ldexp there is just a wrapper providing error handling.)
2006-07-03 13:13:53 +00:00
drochner
5ea27734ec build frexp_ieee754 and ldexp_ieee754 in the "compat" subtree
(There is an assembler version of modf which needs to be checked.)
2006-07-03 13:06:12 +00:00
drochner
451c99c7a2 build frexp_ieee754 and ldexp_ieee754 in the "compat" subtree
(There is an assembler version of modf which needs to be checked.)
2006-07-03 13:00:54 +00:00
drochner
4cbc875060 build frexp_ieee754 in the "compat" subtree
(There are assembler versions of ldexp and modf which need to be checked.
I'm in doubt they are metter than those in libm.)
2006-07-03 12:58:55 +00:00
drochner
c48c54fd05 build frexp_ieee754 in the "compat" subtree
(The Makefile logics for ldexp and modf is too involved for me to deal
with this now.)
2006-07-03 12:54:34 +00:00
ross
fad4c9f714 ppc64 build framework 2006-07-01 19:17:32 +00:00
ross
2cc456cbfb powerpc64 build framework 2006-07-01 19:14:49 +00:00
drochner
fa073991b3 build frexp/ldexp/modf in the "compat" part (code is identical)
(These are the easy cases where no assembler implementations exist.)
2006-06-28 14:46:32 +00:00
drochner
0ed7304bd6 build frexp/ldexp/modf in the "compat" part
(code is identical)
2006-06-28 14:22:15 +00:00
drochner
4502979a72 Build just the compatibility versions of frexp()/ldexp()/modf(), the
real implementation is in libm.
2006-06-27 18:19:57 +00:00
christos
634ab218c7 Fix bug where we did not build archdir and simplify. 2006-03-11 23:04:03 +00:00
christos
14c25e3631 move hppa to the new compat layout. 2006-03-11 19:54:56 +00:00
christos
147db157f7 More new compat layout fixes. 2006-03-11 19:26:29 +00:00
christos
cb903be1ec Move to the new compat layout. 2006-03-11 19:13:33 +00:00
christos
ccfab6be96 Welcome to the new compat layout. 2006-03-11 18:59:21 +00:00
christos
eebf12020e files moved from arch compat layout 2006-03-09 16:20:55 +00:00
matt
8b121c704a Seperate out the compat support for VAX. Also, make references to the
sigcontext sigtramp code weak so compat can be compiled out.
2006-02-18 22:54:51 +00:00
matt
b09fbb025f *setjmp14 are not compat, plain setjmp/sigsetjmp are the compat versions.
Exchange the files.
2006-02-18 00:45:22 +00:00
matt
bfb62ce415 Move PowerPC compat files from arch/powerpc to compat/arch/powerpc. 2006-02-18 00:21:27 +00:00
uwe
553d6ca3ed Use JUMP_CERROR instead of messing with errno directly.
Simplify.  Add WARN_REFERENCES.
2006-01-06 04:30:33 +00:00
uwe
dc6b340eff Simplify. 2006-01-06 04:08:47 +00:00
uwe
577f0b80c0 Simplify. Add WARN_REFERENCES. 2006-01-06 04:05:55 +00:00
uwe
b46734f0ca Change cerror to take errno in r4, instead of r0.
In PIC code fetch cerror address from GOT to avoid
unresolved text relocations in shared libraries.
Hide the code to jump to cerror inside JUMP_CERROR macro.
Change syscall code to use JUMP_CERROR.
Die text relocations! DIE!
2006-01-06 03:58:31 +00:00
uwe
a92c062160 Use PIC_PROLOGUE_NOSAVE in long jumps, where we don't need to preserve r12.
While here, swap the order in which r4 and r5 saved on the stack so
that r4 is restored further away from its first use.
2006-01-05 19:21:37 +00:00
uwe
c8cec240a7 Oops^2. Init pointer to the saved registers area. 2006-01-05 04:55:48 +00:00
uwe
a2be2d8bd9 Oops, correct numeric label in branch. 2006-01-05 04:41:16 +00:00
uwe
55be1ea1cf Use PLT for PIC calls to avoids text relocs in the shared library.
Use constants from <machine/setjmp.h> for better readability.
Provide .size directives.
2006-01-05 04:38:39 +00:00
uwe
f859e17a02 Use PLT for PIC calls to avoids text relocs in the shared library.
Use constants from <machine/setjmp.h> for better readability.
Provide .size directives.
2006-01-05 04:23:18 +00:00
christos
bd3788cdce fix typo. 2005-10-16 22:16:05 +00:00
christos
b638db2ce4 complete arm's move to the new compat layout. 2005-10-16 17:27:49 +00:00
christos
180e99b5f3 Bring sparc64 to the new compat layout. 2005-10-16 04:41:34 +00:00
uwe
eb9395f8c7 Switch sparc to the new compat code layout. 2005-10-15 22:11:22 +00:00
uwe
97f4a15f08 _setjmp and _longjmp are not compat functions. Noticed by Havard Eidnes. 2005-10-15 16:00:42 +00:00
tsutsui
ff4cdaa621 Follow compat libc changes on i386:
> _setjmp and _longjmp are not compat functions. Noticed by Havard Eidnes
2005-10-07 17:16:39 +00:00
christos
f5df298a97 _setjmp and _longjmp are not compat functions. Noticed by Havard Eidnes 2005-10-05 20:16:43 +00:00
tsutsui
f80595ca7d Switch mips to the new libc compat code layout. 2005-09-17 11:49:39 +00:00
drochner
153a0d2611 bring the compat code for alpha into place 2005-09-16 18:21:19 +00:00
uwe
4890707a48 Switch arch/sh3/gen to the new compat code layout. 2005-09-15 22:44:58 +00:00