Commit Graph

16811 Commits

Author SHA1 Message Date
matt
98efa985ed Detect presence of hardware divide. 2013-09-08 12:11:56 +00:00
yamt
cfc4d5466a document MD ways to access private data for some platforms 2013-09-06 17:54:09 +00:00
pooka
0c778f0d54 Avoid strict-alias problem flagged by certain compilers (e.g. Centos one):
libc/gen/utmpx.c:89: error: dereferencing pointer 'otv' does break strict-aliasing rules

reviewed by Christos (thanks!)
2013-09-05 17:35:11 +00:00
matt
8c08c8dda2 mips .eh_frame is writable 2013-09-05 00:28:11 +00:00
matt
85b4461aa6 bic sp not allowed in thumb (even with thumb2) 2013-09-05 00:27:38 +00:00
matt
df25d88db7 Fix the .cfi correctly. 2013-09-04 23:08:29 +00:00
htodd
3bf56cd237 Fix build by matching .cfi/#if. 2013-09-04 22:38:09 +00:00
matt
cb89adbb61 only emit cfi if __ARM_EABI__ && __UNWIND_TABLES__ 2013-09-04 21:17:15 +00:00
ryoon
27e03817f7 Fix typos from FreeMiNT's db-1.86 patch. 2013-09-04 13:03:22 +00:00
christos
3ff21a6f59 print an error if we failed to allocate. 2013-09-03 08:44:45 +00:00
matt
2a674d4fc6 Use less got, add END(), make thumb tolerant. 2013-09-03 00:30:19 +00:00
joerg
08a6753cbd Missing alias for strerror_l. 2013-09-02 07:59:32 +00:00
matt
bff961dda2 Use a constructor to get the cache_info.
However memset can be called before the constructor is called, just treat
those as simple fills.
Add CACHE_INFO_DCACHE_LINE_SIZE to assym.h and use it
2013-08-30 21:28:59 +00:00
christos
efbe1fcbf4 add stdint.h for FreeBSD compat. 2013-08-29 15:01:57 +00:00
christos
e6ada316ce use sysctl to find the pathname argv[0] if available (from FreeBSD via
Ed Maste)
2013-08-29 14:58:56 +00:00
riastradh
719254e9b5 Bump libc minor for consttime_memequal and explicit_memset. 2013-08-28 18:01:22 +00:00
riastradh
1239c2bb08 Publish explicit_memset and consttime_memequal in userland libc.
Remove the double-underscore from the userland versions, and do the
weak alias dance instead, now that these are public parts of libc.

As discussed on tech-userlevel:

https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
(option 3)
2013-08-28 17:47:07 +00:00
riastradh
495fdb7e9a Make explicit_memset match memset's return value. 2013-08-28 15:46:23 +00:00
riastradh
cc79193075 Fix sense of consttime_memequal and update all callers.
Now it returns true (nonzero) to mean equal and false (zero) to mean
inequal, as the name suggests.

As promised on tech-userlevel back in June:

https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
2013-08-28 15:24:41 +00:00
christos
efab425d4c get rid of PATH_MAX. 2013-08-28 08:05:21 +00:00
christos
4d322dedff move the host file getbyname and getbyaddr functions to sethostent.c so
that they are in a separate file from the dns ones in order for libhack
to use them.
2013-08-27 09:56:12 +00:00
matt
704e1f2829 MIPS wants a read/write eh_frame. 2013-08-26 14:20:53 +00:00
matt
2e5f734e9f Add LIBISPRIVATE?=yes 2013-08-25 14:20:30 +00:00
skrll
b0df966c1e Whitespace. 2013-08-24 07:12:12 +00:00
matt
7d46aa31f0 Add IEEE 754 versions of
fixdfdi.c fixsfdi.c fixunsdfdi.c fixunssfdi.c
	floatdidf.c floatdisf.c floatundidf.c floatundisf.c
These don't FP so are well suited to softfloat implementation.
2013-08-24 00:51:48 +00:00
matt
809bd8df99 Add IEEE 754 versions of __float{,}disf which use no floating point. 2013-08-23 17:41:03 +00:00
matt
0ec618ca27 Add __floatunsi{sd}f for IEEE754.
Unlike the quad versions, these don't use floating point.
2013-08-23 16:01:35 +00:00
christos
99f3a4ae2d fix typo (Sergey Kandaurov) 2013-08-22 17:08:43 +00:00
christos
d8e9352de5 get rid of bogus + 1 2013-08-22 10:04:28 +00:00
martin
4d09747fe0 s_nexttoward.c does not make sense compiling for 32 bit sparc (double ==
long double), so ifdef it out in the sparc64 compat library build. I hope
the nextafter alias is set up correctly (where?) - and someone please
suggest a better way for this if clause.
2013-08-22 08:24:30 +00:00
martin
cf61cf5c2c Add nexttoward, nearbyint and rintl for sparc64 2013-08-21 13:06:00 +00:00
martin
317c06397c Add support for the long double format used on sparc64 2013-08-21 13:04:44 +00:00
martin
24488e4c56 Add support for archs with LDBL_IMPLICIT_NBIT 2013-08-21 13:03:56 +00:00
matt
30d3589ba5 Use <bsd.klinks.mk> 2013-08-21 05:45:16 +00:00
matt
dcd5cab62d Don't build compat versions libkern.a 2013-08-21 03:18:05 +00:00
matt
5f4e9e418a divide.S need -marm 2013-08-21 03:09:39 +00:00
matt
67f92d5a99 If not earmv7, use -marm on all assembly files 2013-08-21 03:09:08 +00:00
matt
8538835a75 Add -marm to those sources who aren't thumb friendly. 2013-08-21 03:05:35 +00:00
matt
e32a84e219 Thumbify 2013-08-21 03:03:02 +00:00
joerg
a5d934954f Disable -w for lint again. It clearly creates more issues than it ever
solved.
2013-08-20 23:19:28 +00:00
wiz
a09cadcf91 Whitespace and markup improvements.
Bump date for previous.
2013-08-20 22:44:37 +00:00
perseant
3b0849f66f Add Edgar Fuss's patch to pam_deny, to allow users to be able to change their
LDAP password with "passwd".
2013-08-20 22:07:44 +00:00
matt
56cc66b2e2 Add links for various directories needs by amd64/sparc64/i386/sun2/m68000 2013-08-20 20:54:35 +00:00
joerg
52b1859854 Extract the data for nl_langinfo directly from the corresponding
part implementation using a category/offset table.
2013-08-20 19:58:30 +00:00
matt
bcd47cf3a7 Add LIBISPRIVATE?=yes 2013-08-20 18:06:03 +00:00
matt
1063910749 remove some dead rules.
Use ln -sf
2013-08-20 17:41:58 +00:00
matt
ad9e59d6ac Build libkern 2013-08-20 17:36:20 +00:00
matt
421193ab74 Make libkern.a for standalone problems and install it into ./usr/lib 2013-08-20 17:35:41 +00:00
joerg
a5358f3607 Remove most LC_CTYPE specific parts of locale.cache. 2013-08-19 22:43:28 +00:00
matt
8778fdb5df Always compile as arm code. 2013-08-19 22:22:23 +00:00
matt
c1007461a4 Put the ctors code in .text.startup and dtors code in .text.exit 2013-08-19 22:15:13 +00:00
matt
8caf10303e Put the startup code in .text.startup 2013-08-19 22:14:37 +00:00
matt
f163a9dc44 Group all syscalls together. 2013-08-19 22:13:34 +00:00
matt
2cf5e9962b Use _INVOKE_CERROR() and movs 2013-08-19 22:11:50 +00:00
matt
538e5fbc35 Always compile as ARM even if -mthumb is given. 2013-08-19 22:10:51 +00:00
joerg
8b770def41 Missing locale specific change. 2013-08-19 20:41:15 +00:00
joerg
7efdee83f2 Add strerror_l. 2013-08-19 13:03:12 +00:00
joerg
6dd204a623 GC __indr_reference wrappers. 2013-08-19 10:59:39 +00:00
joerg
325fca1539 Shut up lint. 2013-08-19 09:12:58 +00:00
joerg
9c11b12444 Add nl_langinfo_l, catopen_l and wcsftime_l. 2013-08-19 08:03:33 +00:00
christos
2c0b172d86 fix gethostbyaddr prototype per TOG. 2013-08-19 07:18:42 +00:00
skrll
9c2d19de03 G/C arm COMPILERCRTSTUFF 2013-08-19 06:56:15 +00:00
joerg
2933c53464 Rename fixup to update_global to better reflect the purpose.
Remove the various Current pointers, they are implementation internals
that shouldn't be leaked. Remove _CATEGORY_DEFAULT related handling and
directly pick the implemenation pointer from the C locale.
Merge the C locale data into global_locale.c with the exception of
_DefaultRuneLocale. Mark that one hidden. Move _RUNE_LOCALE and
_CITRUS_CTYPE into multibyte.h and pick up the correct rl_citrus_ctype
for non-default locales.
2013-08-18 20:03:48 +00:00
skrll
e1e1d514de Revert previous. 2013-08-18 16:55:47 +00:00
wiz
47f6874b73 Update comment. 2013-08-18 10:40:06 +00:00
christos
5211d3a5ee getnameinfo is now thread-safe so remove bugs section. 2013-08-18 10:00:57 +00:00
christos
298ec155a2 appease lint. 2013-08-18 09:57:16 +00:00
skrll
ece6044b61 Only add in __aeabi_read_tp.S when building for earm. 2013-08-18 07:57:29 +00:00
joerg
8c3abf72ef Remove empty file. 2013-08-17 18:48:01 +00:00
matt
3216032c71 Enforce that this must be not compiled using Thumb1 2013-08-17 01:08:35 +00:00
matt
d0837c3349 Thumbify & add END 2013-08-17 01:07:45 +00:00
matt
2fa2fc254f Add END 2013-08-16 23:20:59 +00:00
matt
a54ea9aa42 Save r3 instead of r4 when calling CERROR in thumb mode. 2013-08-16 22:30:28 +00:00
matt
14df2d6c20 thumbify and add END 2013-08-16 22:28:05 +00:00
matt
3243e35bad Thumbify & optimize a little 2013-08-16 22:27:32 +00:00
matt
f013dd5175 Use _INVOKE_CERROR
use stmia instead of two str
add END
2013-08-16 22:21:59 +00:00
matt
9c2cd4b10a Rework SYSTRAP for thumb.
Add END to PSEUDO_NOERROR and PSEUDO
2013-08-16 22:20:49 +00:00
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