Commit Graph

16784 Commits

Author SHA1 Message Date
matt 9ba4e12cec Make _libc_arm_fpu_present hidden 2013-08-16 17:09:27 +00:00
christos 02dd244775 Add not advertised reentrant functions: {get,set,end}hostent_r,
gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use
gethostbyaddr_r(3) so it is re-entrant (ahem __ypdomain). These
are not being advertised because there is a bunch of different
implementation of them that have a variety of type signatures.

If people want to follow someone's implementation, it is now easy.
2013-08-16 15:27:12 +00:00
matt 06cb4b73b7 Add support for an optional ARCHSUBDIR/Makefile.inc 2013-08-15 22:38:24 +00:00
matt 77f07e0bd7 Use the thumb1 versions of sev/wfe for thumb && armv6+.
if using armv5t don't do anything for thumb.
2013-08-15 22:37:29 +00:00
pooka e9fe155c86 Change the default value of rump kernels CPUs to 2. It used to be
the number of host cores, but that value is overkill for most uses,
especially with massively multicore hosts.  Dozens of useless virtual
CPUs are relatively speaking expensive in terms of bootstrap time and
memory footprint.  On the other end of the spectrum, defaulting to 2
might shake out some bugs from the qemu test runs.
2013-08-14 08:29:25 +00:00
joerg a6c6eb019c Some architectures can't create unwind tables without the frame pointer,
so don't use -fomit-frame-pointer on those.
2013-08-12 17:15:46 +00:00
dholland 39ab77f3dd Silence -Wpointer-sign on crypt-sha1.c.
This requires casts, which is not entirely desirable; however, this way
at least no *more* pointer sign issues can creep in.

Output object files are unchanged on amd64.
2013-08-10 18:42:29 +00:00
pgoyette bd138fb723 Update example using hex-escape-sequences to conform to gcc parsing rules.
(See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33167 for details.)
2013-08-07 23:22:28 +00:00
pgoyette 2b1dd3a597 Add an example using snprintb_m()
Replace \*[Gt] and \*[Lt] with the simple characters > and < (OK wiz)

XXX Note that the examples currently do not compile with GCC!  The hex
XXX character sequences such as \x10CACHE are being parsed as longer
XXX than 2-hex-digit strings!
2013-08-07 22:51:59 +00:00
christos aef0332e31 CID 1060853: Negative array index read (REVERSE_NEGATIVE) 2013-08-06 05:48:39 +00:00
matt 64e75f2480 Alpha needs crtfm.o for USE_COMPILERCRTSTUFF=no 2013-08-05 13:38:35 +00:00
skrll 94423bf5d3 G/C old csu stuff for hppa. 2013-08-04 17:35:10 +00:00
wiz 22815a188d Use more markup and improve table formatting. 2013-08-02 20:13:09 +00:00
elric 845f0d2fb7 Update accept(2) to indicate that paccept honours SOCK_NOSIGPIPE in its
flags argument.
2013-08-02 14:10:46 +00:00
matt 29673540c6 Use vmrs instead of mrc 2013-08-02 02:07:00 +00:00
matt 14480f30a0 Only include <arm/aeabi.h> when __ARM_PCS_VFP is defined. 2013-08-01 23:21:19 +00:00
matt f4797bbdbc Make sure to <arm/aeabi.h> if we are doing using EABI. 2013-08-01 22:18:50 +00:00
matt 3eafa9878b CERROR is now hidden so no need to call it via the PLT 2013-08-01 05:54:24 +00:00
matt 31fc835fe9 Make __minbrk, __curbrk, and CERROR hidden and avoid using the GOT to access
them.
2013-08-01 05:32:33 +00:00
pooka 3fc5dcaa4f remove unnecessary <sys/poll.h> -- musl whines when it's included 2013-07-31 12:23:25 +00:00
pooka f3adf1e54f comment polish: just musl 2013-07-30 18:56:03 +00:00
pooka aaf7a23bf7 Decide ET_DYN behavior based on __GLIBC__ instead of __linux__,
e.g. musl libc doesn't follow glibc behavior.

per discussions with a number of people
2013-07-30 18:48:51 +00:00
joerg 49cecb845d Don't depend on implicit rounding from non-integral float constant. 2013-07-30 15:30:37 +00:00
joerg 02bc918a66 Don't pass assembler flags to cpp for genassym. 2013-07-30 15:28:47 +00:00
njoly 9b6bbe2755 Add mknodat(2) specific errors. 2013-07-30 13:45:38 +00:00
njoly 31ec74aafc Add mkfifoat(2) specific errors. 2013-07-30 13:15:07 +00:00
njoly a8ca9489d6 Add fchownat(2) specific errors. 2013-07-30 12:38:16 +00:00
skrll c026930a7e include namespace.h - this fixes 48091 2013-07-30 10:47:44 +00:00
joerg 1419f28903 libbind now depends on heimdal, so push it after the third barrier. 2013-07-29 21:02:58 +00:00
njoly 3d23719d01 Add chmodat(2) specific errors. 2013-07-29 19:18:37 +00:00
njoly ff85dd2c24 Add openat(2) specific errors. 2013-07-29 18:37:16 +00:00
njoly c37d15ffcf Add utimensat(2) specific errors. 2013-07-29 14:34:59 +00:00
wiz 9a6c0ab37a Bump date for previous. 2013-07-29 11:49:31 +00:00
njoly 3e084f2c58 Add symlinkat(2) specific errors. 2013-07-29 11:40:04 +00:00
pooka 5cbd60062e Override ssp also in case where it doesn't come intrinsically
from the compiler.
2013-07-29 10:13:21 +00:00
njoly 2580dac907 Add readlinkat(2) specific errors. 2013-07-28 21:24:12 +00:00
njoly 5376926384 Add linkat(2) specific errors. 2013-07-28 18:40:40 +00:00
njoly d878899f75 Add fstatat(2) specific errors. 2013-07-28 15:46:34 +00:00
njoly 82798aec15 Add mkdirat(2) specific errors. 2013-07-28 14:38:25 +00:00
njoly 85cc963274 Add unlinkat(2) specific errors. 2013-07-28 13:53:04 +00:00
njoly dcea1bf790 Add renameat(2) specific errors. 2013-07-28 10:24:59 +00:00
wiz d3cdb3f120 Fix punctuation formatting and sort errors. 2013-07-28 09:27:07 +00:00
njoly 53aa452fce Adjust EFAULT error description to use arguments name from synopsis. 2013-07-28 09:07:55 +00:00
pooka 2eebe6e2de Extend #undef _FORTIFY_SOURCE to both files to avoid compiler
warning for -O0 and fortify combination.

from Alessio Sergi via github
2013-07-27 17:37:29 +00:00
martin c5c422fa26 In .fini invoke destructors (fix copy & pasto) 2013-07-27 13:07:06 +00:00
matt fa03729f71 Use jbsr and add END(__start) 2013-07-26 19:49:19 +00:00
martin 6dae3ba8c7 Simplify to new ___start() signature.
Seems to fix PR port-m68k/48076.
2013-07-26 18:47:23 +00:00
matt 7c78a65eeb Fix some more CERROR inversions 2013-07-25 22:08:15 +00:00
matt 10392817ff Only jump to CERROR if carry is set, not clear. 2013-07-24 15:38:07 +00:00
skrll dd5eecf954 Bump date for previous. 2013-07-24 11:54:04 +00:00
skrll 9c3b844c69 Clarify msgsz. 2013-07-24 11:42:50 +00:00
njoly f2bb7e6625 Use <major>.<minor> for NetBSD version. 2013-07-22 12:36:56 +00:00
pooka 1b3ff08420 Support Linuxen where libc ioctl has cmd as int unstead of unsigned long. 2013-07-22 12:11:03 +00:00
pooka 3fcbbf6450 TIMEVAL_TO_TIMESPEC (for musl)
from Justin Cormack
2013-07-22 08:58:31 +00:00
msaitoh 56e70cb375 Both increment_overflow() and normalize_overflow() have two different
declarations. One must be *32(). Fixes compile error observed on sparc64.
2013-07-22 04:55:09 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
pooka 40fd6d6fa3 Fixes when compiling against musl libc.
from Justin Cormack via private email
2013-07-20 18:46:15 +00:00
matt af4aa0e2b7 Don't use the fs* variants, just use the f* ones. 2013-07-19 22:32:04 +00:00
manu 42e0a87c26 Catch open without FREAD|FWRITE (it should not happen) 2013-07-19 07:32:35 +00:00
matt 2c3a3e1c7e Deal with m68010 not having bsrl so usr jsr on !__pic__ 2013-07-19 06:26:41 +00:00
pooka a940e06527 sys/cdefs.h should come from rumpuser_port.h
Noticed by Justin Cormack while building against musl libc.
2013-07-18 22:58:35 +00:00
matt f28360367c If __HAVE_LONG_DOUBLE is not defined,
add a strong alias for nextafterl to nextafter
2013-07-18 22:32:53 +00:00
matt 6bcb6c9e28 Only compile is __HAVE_LONG_DOUBLE is defined 2013-07-18 22:31:13 +00:00
matt 233ae00254 Use MACHINE_CPU for m68k 2013-07-18 22:14:10 +00:00
matt 8162b56a77 Adjust for coldfire 2013-07-18 21:37:47 +00:00
matt 78e6d1f298 Remove hardfloat now that it's someplace else. 2013-07-18 21:36:37 +00:00
matt 9c8222884d Fix typo. Don't define map if it isn't used. 2013-07-18 21:36:08 +00:00
matt 097c4bc4f9 Cleanup. hardfloat stuff is now in its own directory 2013-07-18 21:34:33 +00:00
matt 5ef4c1b707 Move hardfloat support to its own directory 2013-07-18 21:31:22 +00:00
matt 7f6ec7c998 Coldfire doesn't do FLOATX80 2013-07-18 21:30:40 +00:00
matt a66ddcbe13 Add the Makefile 2013-07-18 21:29:31 +00:00
matt 6125de07bf Update to compile on coldfire. 2013-07-18 21:29:08 +00:00
matt a25010752c Add for softfloat compatibility 2013-07-18 21:25:11 +00:00
matt 003bb39b53 ${MACHINE_ARCH} != "m68000" --> ${MACHINE_ARCH} == "m68k" 2013-07-18 21:19:50 +00:00
matt 434ca5fbec Use stack adjustment in the lnk instruction to adjust the stack.
Saves one word on the following moveml
2013-07-18 21:18:36 +00:00
matt 75eb6b3ee8 Only supplie -fPIE to crtbegin.c if MKPIC is yes. 2013-07-18 18:43:56 +00:00
matt bfbfd7bbc3 s/bsrl/jsr/ and let gas figure it out 2013-07-18 18:43:04 +00:00
pooka f768d01c4f Fix build where compiler can throw an array-bounds error and
code is built with NDEBUG
	or
	platform's assert is not __dead
2013-07-18 12:28:26 +00:00
matt 9bc4e22366 Make __curbrk & __minbrk hidden. 2013-07-18 12:27:01 +00:00
matt 3aae98db4e Remove non-__ELF__ defines 2013-07-18 12:21:52 +00:00
matt 0bcd9d746a Use pcrel access and avoid GOT entries. Restructure a little to be more
efficient.
2013-07-18 12:20:41 +00:00
matt 90b4c890b1 Add more softfloat compatible functions 2013-07-18 12:05:30 +00:00
manu f7b644965d One more explicit error log, and two bug fixes
1) with recent FUSE, when lookup returns a null ino, it means ENOENT
2) odd corner case that caused a bug on dd if=test of=test conv=notrunc
   This caused the file to be open first ro, then rw. A logic bug in
   perfuse_node_open caused it to skip the second operation, whereas
   it should open for writing, and store the write FH without touching
   the read FH.
2013-07-18 09:01:20 +00:00
christos 2361750063 remove "register" in new code
fix backwards check for overflow
2013-07-17 23:09:26 +00:00
matt 88723221e0 Missed these. Convert to motorola format. 2013-07-17 21:29:01 +00:00
christos a37624b5b0 welcome to 2013d 2013-07-17 20:13:04 +00:00
martin 3f349243f2 Use -fPIE for crtbegin.o (instead of -fpie).
Fixes linking the firefox js shell. Ok: joerg@
2013-07-17 14:23:45 +00:00
matt c1bc7ededb Use __HAVE_FPU__ instead __HAVE_68881__ 2013-07-17 06:43:32 +00:00
matt d35c388600 Move the hardfloat stuff to its own directory.
Rewrite fp{get,set}{mask,round,sticky} in C
2013-07-17 06:39:06 +00:00
matt 7a54509455 Use a more portable series of instructions. 2013-07-17 04:57:55 +00:00
matt a4ef47e089 Use a more compact instruction sequence that also works on coldfire 2013-07-17 04:56:14 +00:00
matt 4c5ed3b22b Use assym.h 2013-07-17 03:01:27 +00:00
matt 387bfc7df7 Add genassym / assym.h support 2013-07-17 01:41:17 +00:00
matt 2d913a7c7d Use SYSTRAP.
Don't use the PLT to call CERROR
Use LEA_LCL / GOT_SETUP
Remove non-__ELF__ code.
Make __minbrk and __curbrk hidden and avoid using the GOT for them.
Convert to motorola syntax.
2013-07-16 23:00:15 +00:00
matt 5c5fa67e4a Use SYSTRAP
Use a branch for CERROR (avoid the PLT)
2013-07-16 22:20:35 +00:00
matt 4a2ab9f9a7 Add END(func) 2013-07-16 22:19:37 +00:00
matt d4d3821c9c Add END(func)
Use SYSTRAP
2013-07-16 22:19:16 +00:00
matt e198e9ac6c Make CERROR hidden. Use END() appropriately. 2013-07-16 22:18:14 +00:00
matt 942581824f Add END(func) 2013-07-16 22:12:20 +00:00
matt dd123293f0 Add END(func) 2013-07-16 21:49:45 +00:00
matt 440d829b3c WEAK_ALIAS is always present
Use END(func)
2013-07-16 21:48:32 +00:00
matt 82416e4fed Add END(func) 2013-07-16 21:46:42 +00:00
matt 07a0a32561 Convert to normal Motorola syntax for addressing.
%r@ -> (%r)
%r@- -> -(%r)
%r@+ -> (%r)+
%r@(n) n(%r)
etc.
No object differences.
2013-07-16 20:49:41 +00:00
njoly dd3d742fd5 Switch a few remaining system/pathname configuration variables from
"Dv {xxx}" to "Brq Dv xxx".
2013-07-14 14:29:09 +00:00
skrll 3aa460b612 Add crtstuff for hppa. Lightly tested. 2013-07-13 18:52:35 +00:00
skrll 9a641fd145 crt0 actually calls ___start 2013-07-13 09:48:26 +00:00
christos 53fbf02908 cast to avoid warning. 2013-07-12 22:39:50 +00:00
christos 255f657e8d Add a function to move the cursor. 2013-07-12 17:48:29 +00:00
matt 2b0b9e5db4 Use pc-relative branch in crt0.S
Add crtend.S and crtbegin.h (uses pc-relative branches as well).
2013-07-11 17:07:35 +00:00
matt 7d7a3799d0 Add crtstuff for alpha. Compile tested only. 2013-07-11 16:40:27 +00:00
matt 9993694db9 Make this work for N64 as well. 2013-07-11 16:23:40 +00:00
martin 724aa133a7 Add support for sparc and sparc64 2013-07-11 06:57:15 +00:00
matt dfa5980290 Add END(func) so gdb doesn't get so confused. 2013-07-10 23:30:45 +00:00
matt 3e1a908f3c Fix another bneq -> beql botch 2013-07-10 22:55:40 +00:00
matt b32e808ac8 Add a ELFSIZE define 2013-07-10 15:05:46 +00:00
matt cf0e8a20c0 Fix logic inversion. 2013-07-10 14:27:01 +00:00
martin 14d55ae518 Try to also document the variant using common C code - Matt, please review! 2013-07-10 09:41:16 +00:00
martin 36d44ff56f Fix typo 2013-07-10 09:32:49 +00:00
joerg c4d240b19a Only install crtbeginS.o, crtbeginT.o and crtendS.o when MKPIC=yes. 2013-07-05 02:06:49 +00:00
joerg 5228cbf9e9 Build glue for including compiler-rt in libc, not hooked up yet. 2013-07-04 22:14:43 +00:00
wiz 0ed5815bd6 Strings are NUL-terminated, not NULL-terminated. 2013-06-30 19:19:12 +00:00
wiz 7b3d8f12ac Fix second problem noted by Henning Petersen in PR 47975:
renameat is in unistd.h. Bump date.
2013-06-30 11:48:42 +00:00
wiz 4afb2cfe8c Fix typo in SYNOPSIS. From Henning Petersen in PR 47975. 2013-06-30 11:47:00 +00:00
martin 6caac9d0e7 Rearrange to make lint deal with it (to unbreak the build).
Someone please (1) fix lint and then (2) back this out ;-)
2013-06-30 10:07:43 +00:00
matt 1729cd5b7e For O32, don't save $gp on the stack, save $s0 instead and just keep $gp
in $s0.
2013-06-30 08:00:34 +00:00
matt 138bf8b9ef When opening a ttys files, try path.<machine> first. This helps
machine archs which have multiple ttys files (arm, mips, powerpc, m68k, sh3)
2013-06-30 07:50:54 +00:00
yamt 006f500d6a add "maxthread" tunable to login.conf to adjust RLIMIT_NTHR.
PR/47626
ok'ed by christos
2013-06-29 04:52:55 +00:00
matt 350cb9bc6c Switch arm, earm, powerpc to use crtbegin.c
Use -fpie for crtbegin.
2013-06-27 21:24:39 +00:00
matt 2943b5ff66 Add -fPIC to compile of crtbeginS.o 2013-06-27 03:37:21 +00:00
matt cd85a4cc3f Use t1 instead of v1 2013-06-26 08:38:34 +00:00
matt 47068b9c70 Deal with O32 callling sequences. 2013-06-25 16:51:14 +00:00
matt 83cc2631c1 Initialize $gp 2013-06-25 16:47:47 +00:00
matt a4bddaaec2 Reorder to avoid !exists
Add a crtbegin.h dependency
2013-06-25 07:18:02 +00:00
matt 86ffe64b94 Use .long not .word
Use _ENTRY
[with these changes, the crtstuff passes its ATF tests.]
2013-06-25 00:30:07 +00:00
matt 611f5afec5 Use (target1) for .init/fini array entries 2013-06-24 20:56:18 +00:00
joerg 5f5c1f0096 Fix header guard, courtesy of clang. 2013-06-24 17:28:35 +00:00
matt e9cee35b87 Make sure dwarf_eh_object is 8 words long. 2013-06-24 14:53:42 +00:00
matt 08257f91d2 Like the rest, make __DTOR_LIST__ start with a -1
Make sure dwarf_eh_object is 8 words long.
2013-06-24 14:49:55 +00:00
matt 21ba1833d3 Make dwarf_eh_object is 8 words long 2013-06-24 14:49:13 +00:00
joerg 5b92de54be Add some more clues on what is needed to add a new platform. 2013-06-24 14:27:35 +00:00
wiz ec0c2a14eb Fix xref. 2013-06-24 07:56:49 +00:00
riastradh 82db4b9858 Replace consttime_bcmp/explicit_bzero by consttime_memequal/explicit_memset.
consttime_memequal is the same as the old consttime_bcmp.
explicit_memset is to memset as explicit_bzero was to bcmp.

Passes amd64 release and i386/ALL, but I'm sure I missed some spots,
so please let me know.
2013-06-24 04:21:19 +00:00
riastradh d1790daeea Add consttime_bcmp(3) and explicit_bzero(3) to makefile and set lists. 2013-06-24 01:12:08 +00:00
riastradh 75f5a58349 Add man pages and xrefs for consttime_bcmp and explicit_bzero.
ok wiz
2013-06-23 16:44:06 +00:00
wiz ac1c6f9496 Put code example on its own line, using Dl.
Ok christos
2013-06-23 08:38:41 +00:00
matt 874f26f67e Add EABI (aeabi) support 2013-06-23 06:19:55 +00:00
dholland 0980ff6f74 add missing word 2013-06-23 01:44:22 +00:00
matt 2ad451b6ca Add a common crtbegin.c file and use a machine dependent crtbegin.h to
fill in .init/.fini.
Add mips support for USE_COMPILERCRTSTUFF=no (compiled only)
2013-06-22 02:37:09 +00:00
matt 6a4f94a035 Allow crtbegin to be a C file. 2013-06-22 02:21:58 +00:00
matt be5ef6fb34 USE_COMPILERCRTSTUFF=no support for vax. 2013-06-21 15:54:08 +00:00