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

explicitly assemble all arm asm sources as UAL

these files are all accepted as legacy arm syntax when producing arm
code, but legacy syntax can...

4e73d12117e362ad4b82946dc084b4a38f76e54b authored about 9 years ago
remove non-working pre-armv4t support from arm asm

the idea of the three-instruction sequence being removed was to be
able to return to thumb code ...

9f290a49bf9ee247d540d3c83875288a7991699c authored about 9 years ago
use vfp mnemonics rather than hard-coded opcodes in arm setjmp/longjmp

the code to save/restore vfp registers needs to build even when the
configured target does not h...

cf40375e8fd14fc02a850af90b145d324d0381b5 authored about 9 years ago
work around toolchains with broken visibility in libgcc/libpcc

ea1e2c5e18dd0790fb9b2af2bd947f4981736dc2 authored about 9 years ago
use vfp mnemonics instead of p10 coprocessor ones in armhf fenv asm

mrc/mcr p10 coprocessor mnemonics are deprecated by some
toolchains.

31d73a560b2e14a2030f92f238064e1e98215e50 authored about 9 years ago
convert arm memcpy asm to UAL, remove .word hacks

contrary to commit 9367fe926196f407705bb07cd29c6e40eb1774dd, all
relevant gas versions actually ...

8984b5837a10dcdc654ef5b7948c1377ddd80a02 authored about 9 years ago
remove external linkage from __simple_malloc definition

this function is used only as a weak definition for malloc, for static
linking in programs which...

918b1c1d177b5e3cf22a8aae4a01776495fdc3bc authored about 9 years ago
have configure check/add --gc-sections linker option

this allowing the linker to drop certain weak definitions that are
only used as dummies for stat...

6a851e3ab8a1ae524b2aa6218615ec1c86528e9c authored about 9 years ago
have configure check/add linker options to reduce size lost to padding

based on patch by Denys Vlasenko. sorting sections and common data
symbols by alignment acts as ...

2efd38e8c70f00ca6bbc1eb5199aa507d45436cf authored about 9 years ago
have configure check/add -ffunction-sections and -fdata-sections

based on patch by Denys Vlasenko. the original intent for using these
options was to enable link...

27c1eccf33ce5cb7508ef5e541daa9b6441b4a51 authored about 9 years ago
fix mismatched parens in CMPLX def for annex-g-conforming compilers

this conditional path was never tested because there are no compilers
that conform to annex g (n...

2f1d1f1ec538c4fa9b62358cf0d3dba5e646a572 authored about 9 years ago
generalize sh entry point asm not to assume call dests fit in 12 bits

this assumption is borderline-unsafe to begin with, and fails badly
with -ffunction-sections sin...

4fcb48275adbe1959852d298425e2da610708975 authored about 9 years ago
keep user-provided CFLAGS/LDFLAGS separate from those added by configure

this way, overriding these variables on the make command line (or just
re-passing the originally...

4cd8b4725907651f329e2f96d428c4e3521643f8 authored about 9 years ago
fix mremap memory synchronization and use of variadic argument

since mremap with the MREMAP_FIXED flag is an operation that unmaps
existing mappings, it needs ...

fda365a53074f97f3213caefe70ea13297acecb2 authored about 9 years ago
prevent allocs than PTRDIFF_MAX via mremap

It's quite feasible for this to happen via MREMAP_MAYMOVE.

f9ecb6bfa1dc9f93a10dad97a158e6b8334c586c authored about 9 years ago
use explicit __cp_cancel label in cancellable syscall asm for all archs

previously, only archs that needed to do stack cleanup defined a
__cp_cancel label for acting on...

36e8b6a28be5d4ffad966386b1e1c0d0dc6ca11a authored about 9 years ago
properly access mcontext_t program counter in cancellation handler

using the actual mcontext_t definition rather than an overlaid pointer
array both improves corre...

cb1bf2f321b45a06447133b3db00621b7300c456 authored about 9 years ago
fix missing bss handling in FDPIC ELF loader

when a library being loaded has bss (i.e. data segment with
p_memsz>p_filesz), this region needs...

fead7e3fc04729b4cc8a5feec4a172b389395212 authored over 9 years ago
getnameinfo: make size check not fail for bigger sizes

getnameinfo() compares the size of the given struct sockaddr with
sizeof(struct sockaddr_in) and...

6eada2edb302ff061be8546b23c9cb836621d122 authored over 9 years ago
safely handle failure to open hosts, services, resolv.conf files

previously, transient failures like fd exhaustion or other
resource-related errors were treated ...

2683e267fa6c20d2e7a498a85f79a1dfc4301f23 authored over 9 years ago
fix single-byte overflow of malloc'd buffer in getdelim

the buffer enlargement logic here accounted for the terminating null
byte, but not for the possi...

b114190b29417fff6f701eea3a3b3b6030338280 authored over 9 years ago
prevent user CFLAGS overrides from exposing executable stack

the option to suppress executable stack tagging was placed in CFLAGS,
which is treated as option...

bc0c48414eaba9e974e54aa8ef611b78037fd387 authored over 9 years ago
fix breakage when user overrides CFLAGS on the make command line

these per-target CFLAGS adjustments are mandatory additions to the
command line for building the...

be76cdcf81bdf60d2b7981d9f7d09593f88ef4e6 authored over 9 years ago
release 1.1.12

615629bd6fcd6ddb69ad762e679f088c7bd878e2 authored over 9 years ago
declare fpu usage to the assembler in arm hard-float asm files

Some armhf gcc toolchains (built with --with-float=hard but without
--with-fpu=vfp*) do not pass...

7557a8462e3c973466ce082211520182f243dc2a authored over 9 years ago
add missing memory barrier to pthread_join

POSIX requires pthread_join to synchronize memory on success. The
futex wait inside __timedwait...

53cd8c5a29b57ef3776ce152e00544752f3ce790 authored over 9 years ago
fix dladdr treatment of function descriptors for fdpic

when determining which module an address belongs to, all function
descriptor ranges must be chec...

bde0b4b92e2c3f8d26d28e8478f196233ce51618 authored over 9 years ago
fix visibility mismatch in dynamic linker stage 2 function definition

since commits 2907afb8dbd4c1d34825c3c9bd2b41564baca210 and
6fc30c2493fcfedec89e45088bea87766a1e3...

bc9b6ea0df6a820878d9ac538b2b852fec367d41 authored over 9 years ago
suppress sh assembler rejection of instructions based on isa level

we need access to all instructions in order for runtime selection of
atomic model to work correc...

797899802d5623a6ec05663c997a30e03dc27421 authored over 9 years ago
prevent reordering of or1k and powerpc thread pointer loads

other archs use asm for the thread pointer load, so making that asm
volatile is sufficient to in...

92637bb0d8f13940aebd2a8116cc935c3e7d8266 authored over 9 years ago
mark arm thread-pointer-loading inline asm as volatile

this builds on commits a603a75a72bb469c6be4963ed1b55fabe675fe15 and
0ba35d69c0e77b225ec640d2bd11...

74483c5955a632af5d9a4783cc2b541764450551 authored over 9 years ago
add comment documenting hard-coded opcode for reading mips thread pointer

11da520c7af5b190e69c0906c6e95000c4e59f33 authored over 9 years ago
remove attribute((const)) from arm __pthread_self inline function

commit a603a75a72bb469c6be4963ed1b55fabe675fe15 did this for the
public pthread_self function bu...

0ba35d69c0e77b225ec640d2bd112ff6d9d3b2af authored over 9 years ago
fix strftime handling of out-of-range struct tm fields

strftime results are unspecified in this case, but should not invoke
undefined behaviour.

tm_wd...

8d93cb57754f1f81f8e15bb74afd1725cead45c2 authored over 9 years ago
remove hand-written crt1.s and Scrt1.s files for all archs

since commit c5e34dabbb47d8e97a4deccbb421e0cd93c0094b, crt1.c has
provided a "mostly-C" implemen...

6fef8cafbd0f6f185897bc87feb1ff66e2e204e1 authored over 9 years ago
add CFI generation script for x86_64

4e6b8eee7755a5aa7f866d0d0cd290653fd87a31 authored over 9 years ago
recognize partial register operands in i386 CFI generation

1b0c9cd099e80a7557eb4ae36efb1897f7202a02 authored over 9 years ago
fix misinterpretation of indexed memory operand in i386 CFI generation

a register used as an index in the memory destination of a mov
instruction was wrongly interpret...

8cfdfa9c8fd84d4090bba54eb616a2c9361a076f authored over 9 years ago
fix misinterpretation of operand order in i386 CFI generation

binary ops like ADD, AND, etc. modify the 2nd operand, not 1st.

fef9c801feeccbb40623f0c2a6e4f2b19f58a34b authored over 9 years ago
fix integer overflows in time_t/struct tm conversion code

as found and reported by Brian Mastenbrook, the expressions
400*qc_cycles and years+100 in __sec...

c82d3bada30cb27e14abda7859da5d2e784830ff authored over 9 years ago
fix open_[w]memstream behavior when no writes take place

the specification for these functions requires that the buffer/size
exposed to the caller be val...

7b9f57f207b51132f188f750161953b7baf32154 authored over 9 years ago
fix instruction matching errors in i386 CFI generation

fdiv and fmul instructions were wrongly matched by the rules for
integer div and mul instruction...

dc97951402b499023ce877dd2438bce0840b2c26 authored over 9 years ago
factor common awk functions for CFI generation scripts into new file

There is a lot which could be common between i386 and x86_64, but none
of it will be useful for ...

0650a05947c9f67cedff693d2e1c2f61a8e6c0d3 authored over 9 years ago
make nl_langinfo(CODESET) always return "ASCII" in byte-based C locale

commit 844212d94f582c4e3c5055e0a1524931e89ebe76, which did not make it
into any releases, change...

2d51c4ad57d5cbb083b5bce94ff692490c10ee2d authored over 9 years ago
fix mips fesetround failure to write back resulting mode

patch by Anand Takale.

fd2add5ba01145593d71362c40a0a39b0b3dd7d2 authored over 9 years ago
eliminate protected-visibility data in libc.so with vis.h preinclude

some newer binutils versions print scary warnings about protected data
because most gcc versions...

f3a53f095cd8ba108f8ac780da27a5ebbf4b224f authored over 9 years ago
avoid attempting to lookup IP literals as hostnames

previously, __lookup_ipliteral only checked its argument against the
requested address family, s...

2a6e1f0f5a8811d08101df0fd72b9baa27ed430c authored over 9 years ago
make getaddrinfo return error if both host and service name are null

this case is specified as a mandatory ("shall fail") error.

based on patch by Julien Ramseier.

06bcf9bc941a2f3bf34ac4468644d9693802495b authored over 9 years ago
fix localeconv field value for unavailable values

per ISO C, CHAR_MAX, not -1, is the value used to indicate that a char
field in struct lconv is ...

b4d94ba40dda0fa0c3f499beed51b55ad31d5305 authored over 9 years ago
avoid reading uninitialized memory in __map_file

The value of *size is not relevant in case of failure, but it's
better not to copy garbage from ...

bd275378d35b3535bc8b8321780b00e486c36d96 authored over 9 years ago
regcomp: propagate allocation failures

The error code of an allocating function was not checked in tre_add_tag.

4260dfe1ecc43d92d1e6d30daa0f22bd746d1740 authored over 9 years ago
fix signal return for sh/fdpic

the restorer function pointer provided in the kernel sigaction
structure is interpreted by the k...

b61df2294f662540786f2558f691eba7447ff5ba authored over 9 years ago
fix dlsym RTLD_NEXT behavior for fdpic

lookup the dso an address falls in based on the loadmap and not just a
base/length. fix the main...

6c5cad2aa56745302c1d42d2c8baf6424d29c0f3 authored over 9 years ago
fix dlsym lookup of function symbols on fdpic

previously these resolved to the code address rather than the address
of the function descriptor...

d47d9a50f2568927af51e21b2f2120409db1ab44 authored over 9 years ago
have sh/fdpic entry point set fdpic personality if needed

the entry point code supports being loaded by a loader which is not
fdpic-aware (in practice, ei...

e9e770dfd6224a5ff7932b6115a35005dce7be29 authored over 9 years ago
move calls to application init functions after crt1 entry point

this change is needed to be compatible with fdpic, where some of the
main application's relocati...

c87a52103399135d2f57a91a8bcc749d8cb2ca83 authored over 9 years ago
fix breakage in non-fdpic dynamic linker init/fini processing

a mistaken #ifdef instead of #if caused conversion of code addresses
to function descriptors to ...

78f430295c92ae15510082c04e537da4256aa7a7 authored over 9 years ago
fix resolving interp string address on fdpic ldd command

30fdc06bbaeaff871780f9816e312e3820fb214a authored over 9 years ago
add real fdpic loading of shared libraries

previously, the normal ELF library loading code was used even for
fdpic, so only the kernel-load...

eaf7ab6e24914bae8092edf05919e43f10092533 authored over 9 years ago
try to suppress linking libc.so if there are undefined symbols

this is always an error and usually results from failure to find/link
the compiler runtime libra...

2462370b4fad6f7a05abc65407369d4f621bf85e authored over 9 years ago
remove configure's suppression of enable sh/fdpic shared library build

c42650abb0d7040cdc427fc083fa38be6ee4a4cf authored over 9 years ago
size-optimize sh/fdpic dynamic entry point

the __fdpic_fixup code is not needed for ET_DYN executables, which
instead use reloctions, so we...

7f9086df95b707b4518d22d4d1dbd747085e115d authored over 9 years ago
work around breakage in sh/fdpic __unmapself function

the C implementation of __unmapself used for potentially-nommu sh
assumed CRTJMP takes a functio...

cab2b1f9d71db31d6dc4ae9dcab6989182b7b533 authored over 9 years ago
add general fdpic support in dynamic linker and arch support for sh

at this point not all functionality is complete. the dynamic linker
itself, and main app if it i...

7a9669e977e5f750cf72ccbd2614f8b72ce02c4c authored over 9 years ago
factor symbol counting out of dladdr as its own function

the fdpic code will need to count symbols, and it may be useful
elsewhere in the future too. cou...

3958144ede01a7e64a56c0430f053bfd80ff02eb authored over 9 years ago
simplify dlstart code by using integer type for base address

d874064579f4dd8150b0d6ff6d98942af6fcd1c3 authored over 9 years ago
refactor some more dynamic linker load address computations

these were just missed in the previous commits.

2a5473382014aa49c6ff236db3a60c8050b9e327 authored over 9 years ago
remove some useless casts in dynamic linker

e6076c99dd7b6caf859f2ea33e70afd14aa78306 authored over 9 years ago
add fdpic structs and reloc types for dynamic linking

eb567c12cd4cafa66fd1ed3fdb97af7e70222118 authored over 9 years ago
further refactoring of dynamic linker load address computations

these are in do_relocs. the first one was omitted in commit
301335a80b85f12c018e4acf1a2c28615e11...

a735f53e6ab094bce9b992dd3d3127fdb4ffdcc2 authored over 9 years ago
begin refactoring load address computations in dynamic linker

for ordinary ELF with fixed segment displacements, load address
computation is simply adding the...

301335a80b85f12c018e4acf1a2c28615e119f8d authored over 9 years ago
remove old dlstart stage-2 symbolic lookup code; add new generic

this new generic version of the stage-2 function lookup should work
for any arch where static da...

6fc30c2493fcfedec89e45088bea87766a1e3286 authored over 9 years ago
new dlstart stage-2 chaining for x86_64 and x32

12b0b7d8eab5ec428b779d83bd3c6edad2f31993 authored over 9 years ago
new dlstart stage-2 chaining for powerpc

c16182680c9ac8ad65f8ff38f6ae170feb0d33c7 authored over 9 years ago
new dlstart stage-2 chaining for or1k

4761e63bc4d1ae2e3298fcee1fddced94281d9e7 authored over 9 years ago
new dlstart stage-2 chaining for mips

cd7159e7be73451befedce2e9dfd9f6a4c3b21f0 authored over 9 years ago
new dlstart stage-2 chaining for microblaze

57e2dce7e46f8f94318f1d4dec590c9f1c3025dc authored over 9 years ago
introduce new symbol-lookup-free rcrt1/dlstart stage chaining

previously, the call into stage 2 was made by looking up the symbol
name "__dls2" (which was cho...

2907afb8dbd4c1d34825c3c9bd2b41564baca210 authored over 9 years ago
remove attribute((const)) from pthread_self and errno location decls

this attribute was applied to pthread_self and the functions providing
the locations for errno a...

a603a75a72bb469c6be4963ed1b55fabe675fe15 authored over 9 years ago
add format argument attributes to gettext function prototypes

their absence completely breaks format string warnings in programs
with gettext message translat...

ccc71e0ea881b7f6594ed95afd706442829c39fc authored over 9 years ago
reindent powerpc's bits/termios.h to be consistent with other archs

64b6684ddd95ef17349a6e640806bfee9f873715 authored over 9 years ago
fix namespace violations in aarch64/bits/termios.h

in analogy with commit a627eb35864d5c29a3c3300dfe83745ab1e7a00f

b291e7ca9bf231da3dbb54f598e39e0785afc423 authored over 9 years ago
add sh fdpic subarch variants

with this commit it should be possible to produce a working
static-linked fdpic libc and applica...

d4c82d05b8d0ee97f6356d60986799a95ed5bd74 authored over 9 years ago
add fdpic version of entry point code for sh

this version of the entry point is only suitable for static linking in
ET_EXEC form. neither dyn...

4ccc1a01e037251a0ddc3dd07dd1a1fb91a8aa16 authored over 9 years ago
provide arch-generic fdpic self-relocation code for crt1 to use

this file is intended to be included by crt_arch.h on fdpic-based
targets and needs to be called...

6d03c4ee586576bf199cf8d6dc86ba4cd54e4186 authored over 9 years ago
make sh clone asm fdpic-compatible

clone calls back to a function pointer provided by the caller, which
will actually be a pointer ...

234c58467c3709bafdd3ffa6ac73655e1dfd9ddb authored over 9 years ago
make sh crti/crtn init/fini fragments setup proper stack frame

for fdpic support is is essential that the got pointer be saved at a
known, ABI-dictated offset ...

ad5d8a2bf3526bce4317055612709ac076b5c4c3 authored over 9 years ago
add sh relocation types needed for fdpic to elf.h

17cdbc4e427fd4f9cfdecb455294245732cbb36f authored over 9 years ago
fix uninitialized scopeid in lookups from hosts file and ip literals

cb1c88d42b0ee5e950d85e933c6eb6ecb8175e1d authored over 9 years ago
fix missing earlyclobber flag in i386 a_ctz_64 asm

this error was only found by reading the code, but it seems to have
been causing gcc to produce ...

878887c50cccd45b5cabe6ed2ac743941f3417ea authored over 9 years ago
remove unused (and invalid) C version of sigsetjmp

originally, the comment in this code was correct and it would likely
work if the compiler genera...

deb85ab44dbe784ba6174b8cf376d35aeacbe309 authored over 9 years ago
fix breakage in nl_langinfo from previous commit

58f6259dff804faa416df4f9b1ca2fc61d178585 authored over 9 years ago
make nl_langinfo(CODESET) always return "UTF-8"

this restores the original behavior prior to the addition of the
byte-based C locale and fixes w...

844212d94f582c4e3c5055e0a1524931e89ebe76 authored over 9 years ago
fix fclose of permanent (stdin/out/err) streams

this fixes a bug reported by Nuno Gonçalves. previously, calling
fclose on stdin or stdout resul...

426a0e2912c07f0e86feee2ed12f24a808eac2f4 authored over 9 years ago
implement arm eabi mem* functions

these functions are part of the ARM EABI, meaning compilers may
generate references to them. kno...

d8be1bc0193f45d3900f8466f26d1411b7f919c3 authored over 9 years ago
remove use of buggy .SECONDARY special target in makefile

this functionality is affected by GNU make bug #30653, "intermediate
files incorrectly pruned in...

d18cf76d73df8f9cc751d4b4ba5a635c70c0c645 authored over 9 years ago
release 1.1.11

650b04f8cc66d4153fa7e47505dae6d8f0a24704 authored over 9 years ago
fix makefile suppression of intermediate file removal

at one point, GNU make was removing crt/*.o after producing the copies
in lib/ due to an arcane ...

a91ebdcfac6804714a1fe39f4375e2b4ebab085b authored over 9 years ago
Build process uses script to add CFI directives to x86 asm

Some functions implemented in asm need to use EBP for purposes other
than acting as a frame poin...

35b3312b6fcf3f72dcd5abf0dc4ba64da537f5a1 authored over 9 years ago
getsubopt: don't include leading = in value string

getsubopt incorrectly returns the delimiting = in the value string,
this patch fixes it by incre...

aa71ec3db8a3ca564cb37ec90c639020dfe30b6b authored over 9 years ago