Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/AssemblyScript/musl
Mirror of git://git.musl-libc.org/musl
https://github.com/AssemblyScript/musl
these files are all accepted as legacy arm syntax when producing arm
code, but legacy syntax can...
the idea of the three-instruction sequence being removed was to be
able to return to thumb code ...
the code to save/restore vfp registers needs to build even when the
configured target does not h...
ea1e2c5e18dd0790fb9b2af2bd947f4981736dc2 authored about 9 years ago
mrc/mcr p10 coprocessor mnemonics are deprecated by some
toolchains.
contrary to commit 9367fe926196f407705bb07cd29c6e40eb1774dd, all
relevant gas versions actually ...
this function is used only as a weak definition for malloc, for static
linking in programs which...
this allowing the linker to drop certain weak definitions that are
only used as dummies for stat...
based on patch by Denys Vlasenko. sorting sections and common data
symbols by alignment acts as ...
based on patch by Denys Vlasenko. the original intent for using these
options was to enable link...
this conditional path was never tested because there are no compilers
that conform to annex g (n...
this assumption is borderline-unsafe to begin with, and fails badly
with -ffunction-sections sin...
this way, overriding these variables on the make command line (or just
re-passing the originally...
since mremap with the MREMAP_FIXED flag is an operation that unmaps
existing mappings, it needs ...
It's quite feasible for this to happen via MREMAP_MAYMOVE.
f9ecb6bfa1dc9f93a10dad97a158e6b8334c586c authored about 9 years ago
previously, only archs that needed to do stack cleanup defined a
__cp_cancel label for acting on...
using the actual mcontext_t definition rather than an overlaid pointer
array both improves corre...
when a library being loaded has bss (i.e. data segment with
p_memsz>p_filesz), this region needs...
getnameinfo() compares the size of the given struct sockaddr with
sizeof(struct sockaddr_in) and...
previously, transient failures like fd exhaustion or other
resource-related errors were treated ...
the buffer enlargement logic here accounted for the terminating null
byte, but not for the possi...
the option to suppress executable stack tagging was placed in CFLAGS,
which is treated as option...
these per-target CFLAGS adjustments are mandatory additions to the
command line for building the...
615629bd6fcd6ddb69ad762e679f088c7bd878e2 authored over 9 years ago
Some armhf gcc toolchains (built with --with-float=hard but without
--with-fpu=vfp*) do not pass...
POSIX requires pthread_join to synchronize memory on success. The
futex wait inside __timedwait...
when determining which module an address belongs to, all function
descriptor ranges must be chec...
since commits 2907afb8dbd4c1d34825c3c9bd2b41564baca210 and
6fc30c2493fcfedec89e45088bea87766a1e3...
we need access to all instructions in order for runtime selection of
atomic model to work correc...
other archs use asm for the thread pointer load, so making that asm
volatile is sufficient to in...
this builds on commits a603a75a72bb469c6be4963ed1b55fabe675fe15 and
0ba35d69c0e77b225ec640d2bd11...
11da520c7af5b190e69c0906c6e95000c4e59f33 authored over 9 years ago
commit a603a75a72bb469c6be4963ed1b55fabe675fe15 did this for the
public pthread_self function bu...
strftime results are unspecified in this case, but should not invoke
undefined behaviour.
tm_wd...
8d93cb57754f1f81f8e15bb74afd1725cead45c2 authored over 9 years ago
since commit c5e34dabbb47d8e97a4deccbb421e0cd93c0094b, crt1.c has
provided a "mostly-C" implemen...
4e6b8eee7755a5aa7f866d0d0cd290653fd87a31 authored over 9 years ago
1b0c9cd099e80a7557eb4ae36efb1897f7202a02 authored over 9 years ago
a register used as an index in the memory destination of a mov
instruction was wrongly interpret...
binary ops like ADD, AND, etc. modify the 2nd operand, not 1st.
fef9c801feeccbb40623f0c2a6e4f2b19f58a34b authored over 9 years ago
as found and reported by Brian Mastenbrook, the expressions
400*qc_cycles and years+100 in __sec...
the specification for these functions requires that the buffer/size
exposed to the caller be val...
fdiv and fmul instructions were wrongly matched by the rules for
integer div and mul instruction...
There is a lot which could be common between i386 and x86_64, but none
of it will be useful for ...
commit 844212d94f582c4e3c5055e0a1524931e89ebe76, which did not make it
into any releases, change...
patch by Anand Takale.
fd2add5ba01145593d71362c40a0a39b0b3dd7d2 authored over 9 years ago
some newer binutils versions print scary warnings about protected data
because most gcc versions...
previously, __lookup_ipliteral only checked its argument against the
requested address family, s...
this case is specified as a mandatory ("shall fail") error.
based on patch by Julien Ramseier.
06bcf9bc941a2f3bf34ac4468644d9693802495b authored over 9 years ago
per ISO C, CHAR_MAX, not -1, is the value used to indicate that a char
field in struct lconv is ...
The value of *size is not relevant in case of failure, but it's
better not to copy garbage from ...
The error code of an allocating function was not checked in tre_add_tag.
4260dfe1ecc43d92d1e6d30daa0f22bd746d1740 authored over 9 years ago
the restorer function pointer provided in the kernel sigaction
structure is interpreted by the k...
lookup the dso an address falls in based on the loadmap and not just a
base/length. fix the main...
previously these resolved to the code address rather than the address
of the function descriptor...
the entry point code supports being loaded by a loader which is not
fdpic-aware (in practice, ei...
this change is needed to be compatible with fdpic, where some of the
main application's relocati...
a mistaken #ifdef instead of #if caused conversion of code addresses
to function descriptors to ...
30fdc06bbaeaff871780f9816e312e3820fb214a authored over 9 years ago
previously, the normal ELF library loading code was used even for
fdpic, so only the kernel-load...
this is always an error and usually results from failure to find/link
the compiler runtime libra...
c42650abb0d7040cdc427fc083fa38be6ee4a4cf authored over 9 years ago
the __fdpic_fixup code is not needed for ET_DYN executables, which
instead use reloctions, so we...
the C implementation of __unmapself used for potentially-nommu sh
assumed CRTJMP takes a functio...
at this point not all functionality is complete. the dynamic linker
itself, and main app if it i...
the fdpic code will need to count symbols, and it may be useful
elsewhere in the future too. cou...
d874064579f4dd8150b0d6ff6d98942af6fcd1c3 authored over 9 years ago
these were just missed in the previous commits.
2a5473382014aa49c6ff236db3a60c8050b9e327 authored over 9 years agoe6076c99dd7b6caf859f2ea33e70afd14aa78306 authored over 9 years ago
eb567c12cd4cafa66fd1ed3fdb97af7e70222118 authored over 9 years ago
these are in do_relocs. the first one was omitted in commit
301335a80b85f12c018e4acf1a2c28615e11...
for ordinary ELF with fixed segment displacements, load address
computation is simply adding the...
this new generic version of the stage-2 function lookup should work
for any arch where static da...
12b0b7d8eab5ec428b779d83bd3c6edad2f31993 authored over 9 years ago
c16182680c9ac8ad65f8ff38f6ae170feb0d33c7 authored over 9 years ago
4761e63bc4d1ae2e3298fcee1fddced94281d9e7 authored over 9 years ago
cd7159e7be73451befedce2e9dfd9f6a4c3b21f0 authored over 9 years ago
57e2dce7e46f8f94318f1d4dec590c9f1c3025dc authored over 9 years ago
previously, the call into stage 2 was made by looking up the symbol
name "__dls2" (which was cho...
this attribute was applied to pthread_self and the functions providing
the locations for errno a...
their absence completely breaks format string warnings in programs
with gettext message translat...
64b6684ddd95ef17349a6e640806bfee9f873715 authored over 9 years ago
in analogy with commit a627eb35864d5c29a3c3300dfe83745ab1e7a00f
b291e7ca9bf231da3dbb54f598e39e0785afc423 authored over 9 years ago
with this commit it should be possible to produce a working
static-linked fdpic libc and applica...
this version of the entry point is only suitable for static linking in
ET_EXEC form. neither dyn...
this file is intended to be included by crt_arch.h on fdpic-based
targets and needs to be called...
clone calls back to a function pointer provided by the caller, which
will actually be a pointer ...
for fdpic support is is essential that the got pointer be saved at a
known, ABI-dictated offset ...
17cdbc4e427fd4f9cfdecb455294245732cbb36f authored over 9 years ago
cb1c88d42b0ee5e950d85e933c6eb6ecb8175e1d authored over 9 years ago
this error was only found by reading the code, but it seems to have
been causing gcc to produce ...
originally, the comment in this code was correct and it would likely
work if the compiler genera...
58f6259dff804faa416df4f9b1ca2fc61d178585 authored over 9 years ago
this restores the original behavior prior to the addition of the
byte-based C locale and fixes w...
this fixes a bug reported by Nuno Gonçalves. previously, calling
fclose on stdin or stdout resul...
these functions are part of the ARM EABI, meaning compilers may
generate references to them. kno...
this functionality is affected by GNU make bug #30653, "intermediate
files incorrectly pruned in...
650b04f8cc66d4153fa7e47505dae6d8f0a24704 authored over 9 years ago
at one point, GNU make was removing crt/*.o after producing the copies
in lib/ due to an arcane ...
Some functions implemented in asm need to use EBP for purposes other
than acting as a frame poin...
getsubopt incorrectly returns the delimiting = in the value string,
this patch fixes it by incre...