aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl/patches
Commit message (Collapse)AuthorAgeFilesLines
* toolchain/musl: update to version 1.1.20Christian Lamparter2018-09-215-85/+29
| | | | | | | | | | | | | | | | | | | | | | | This release introduces the ability to replace/interpose the allocator (malloc) subject to certain restrictions, adds an experimental m68k port, and makes notable improvements to stdio (application-provided buffers), getaddrinfo (AI_ADDRCONFIG, support for IPv4-only kernel configurations), the dynamic linker (safety against dlopen of libraries using initial-exec TLS model, reclaiming unused memory on FDPIC archs, better dladdr results), and handling of default thread stack size (pthread_setattr_default_np now works more reliably). Many bugs have been fixed, including potentially dangerous regressions in iconv (only for new conversions to legacy encodings) and visibly incorrect behavior in printf on non-x86 archs (%a format with precision specifier), in getopt_long_only when short options are a prefix for a long option, in complex arc-trig/hyperbolic functions, in strftime and mktime (timezone-specific issues), and numerous less-obvious places. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [altered commit msg a bit keeping it tight] Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* musl: sys/socket.h: fix SO_PEERSEC value on MIPSMatthias Schiffer2018-06-241-0/+59
| | | | | | | | | | Differing from all other archs supported by musl, MIPS defines SO_PEERSEC to 30 instead of 31. Patch has also been submitted upstream. Reported-by: Andrey Jr. Mlenikov <temnota.am@gmail.com> Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* musl: update to version 1.1.19Hauke Mehrtens2018-03-116-82/+23
| | | | | | | | | | This updates musl from a commit between 1.1.18 and 1.1.19 to the final release of the version 1.1.19. This mostly fixes bugs in musl. The size of the uncompressed binary is increased by about 4 KB. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: use upstream patches for muslHauke Mehrtens2018-01-202-6/+65
| | | | | | | | | | This replaces the current patches used to make the kernel headers compatible with musl with the version which was accepted upstream. This is included in upstream kernel 4.15. This was compile tested with iproute2 build on all supported kernel versions with musl and one one with glibc. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain: musl: update to current HEADChristian Lamparter2017-12-081-19/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: 72656157 fix fgetwc when decoding a character that crosses buffer boundary a223dbd2 add reverse iconv mappings for JIS-based encodings 105eff9d generalize iconv framework for 8-bit codepages a71b46cf fix malloc state corruption when ldso rejects loading a second libc d060edf6 reformat cjk iconv tables to be diff-friendly, match tool output c21051e9 prevent fork's errno from being clobbered by atfork handlers a39f20bf add iso-2022-jp support (decoding only) to iconv 5b546faa add iconv framework for decoding stateful encodings 0df5b39a simplify/optimize iconv utf-8 case 9eb6dd51 handle ascii range individually in each iconv case bff59d13 move iconv_close to its own translation unit 79f49eff refactor iconv conversion descriptor encoding/decoding 30fdda6c fix getaddrinfo error code for non-numeric service with AI_NUMERICSERV 67b29947 fix mismatched type of __pthread_tsd_run_dtors weak definition 13935337 s390x: use generic ioctl.h 4dc44ce8 microblaze: add statx syscall from linux v4.13 ffd048a0 aarch64: add extra_context struct from linux v4.13 6651ef1f add new tcp.h socket options from linux v4.13 14ced228 add new fcntl.h macros from linux v4.13 754f66af ioctl TIOCGPTPEER from linux v4.13 c35a8bf4 add SO_ getsockopt options from linux v4.13 5daaed6a s390x: add syscall number for s390_guarded_storage from linux v4.12 2dc6760f i386: add arch_prctl syscall number from linux v4.12 840d45be aarch64: add new HWCAP_* flags from linux v4.12 4c811227 add ARPHDR_VSOCKMON from linux v4.12 54f04d99 add new SO_ socket options from linux v4.12 9864f60e add statx syscall numbers from linux v4.11 c519658c add TCP_NLA_* enums from linux v4.11 ee3ae782 add TCP_FASTOPEN_CONNECT tcp socket option from linux v4.11 3eb82f73 add ETH_P_IBOE from linux v4.11 bd1560f6 update aarch64 hwcap.h for linux v4.11 cee73f0c add kexec_file_load syscall number on powerpc from linux v4.10 8f569557 add microblaze syscall numbers from linux v4.10 d8004030 add TFD_TIMER_CANCEL_ON_SET that timerfd.h was missing f5638c22 add ETH_MIN_MTU and ETH_MAX_MTU from linux v4.10 01369691 add IP_RECVFRAGSIZE and IPV6_RECVFRAGSIZE from linux v4.10 5c596ed8 add SCM_TIMESTAMPING_OPT_STATS and related TCP_ enums from linux v4.10 6fc6ca1a adjust posix_spawn dup2 action behavior to match future requirements Cc: Syrone Wong <wong.syrone@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* toolchain/musl: update to version 1.1.18Felix Fietkau2017-11-091-3/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* musl: update musl to 1.1.16+ and switch to download from gitChristian Lamparter2017-01-1629-1591/+0
| | | | | | | | | | | | | | | | | | | | | This patch updates musl to 1.1.16+ [0] and removes all the backported patches. This is a major release and tagged as such. For more information visit musl-libc.org or read the WHATSNEW. Furthermore, this patch also changes musl to download directly from git. This makes it easier to update musl in the future. The patch custom Add-format-attribute-to-some-function-declarations.patch was assigned a new 400- number. This should avoid confusion since 0xx numbers are usually assigned to backports. [0] <http://git.musl-libc.org/cgit/musl/commit/?id=769f53598e781ffc89191520f3f8a93cb58db91f> Cc: Hannu Nyman <hannu.nyman@iki.fi> Cc: Koen Vandeputte <koen.vandeputte@ncentric.com> Cc: Jo-Philipp Wich <jo@mein.io> Cc: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
* musl: refresh patchesKoen Vandeputte2016-12-261-1/+1
| | | | Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* musl: backport various post-1.1.15 fixesKoen Vandeputte2016-12-2626-0/+1513
| | | | | | | | | | | Backport most important fixes up to latest HEAD - Taken post-commit reverts/fixes into account Compile tested Run-tested on cns3xxx & imx6 targets Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* musl: rename a custom backport patchKoen Vandeputte2016-12-261-0/+0
| | | | | | Ensure there is room in the numbering for next patches Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* musl: fix parsing of quoted time zone namesHannu Nyman2016-10-311-0/+11
| | | | | | | | | | | | | | | fix parsing of the < > quoted time zone names. Compare the correct character instead of repeatedly comparing the first character. Patch has been submitted to upstream as http://www.openwall.com/lists/musl/2016/10/24/3 Longer explanation in http://www.openwall.com/lists/musl/2016/10/19/1 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> [Jo-Philipp Wich: move references into commit message, shorten title prefix] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* musl: update musl to version 1.1.15Hauke Mehrtens2016-07-134-3739/+70
| | | | | | | The removed patch is already integrated in upstream musl. Add one additional patch which fixes a regression on mips. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* treewide: replace nbd@openwrt.org with nbd@nbd.nameFelix Fietkau2016-06-071-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* musl: update to latest git, adds some fixes for the mips64 port and regular ↵Felix Fietkau2016-03-073-3308/+3736
| | | | | | | | expressions Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48957
* musl: add mips64 portFelix Fietkau2016-02-261-0/+2714
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48803
* musl: update to version 1.1.14Felix Fietkau2016-02-255-17924/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48762
* musl: fix an alignment issue that was breaking ldso on ARMv5Felix Fietkau2016-01-311-1/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48577
* musl: fix GDB debugging on mips (local, remote)Felix Fietkau2016-01-301-0/+55
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48575
* musl: update to the latest git version, fixes TLS issuesFelix Fietkau2016-01-307-7745/+17878
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48574
* musl: fix mips vdso handlingHauke Mehrtens2016-01-251-3/+54
| | | | | | | | | | mips returns -ENOSYS in case it can not handle the vdso call and wants the libc to call the original syscall in such a case. This fixes the patch to add such handling. I hope this fixes the random reboots I got. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48501
* musl: update to 1.1.12 + git from 2016-01-22Felix Fietkau2016-01-257-199/+8123
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48486
* musl: Add format attribute to some function declarationsHauke Mehrtens2016-01-241-0/+209
| | | | | | | | | | | | | | | | | | | | | | | | | GCC and Clang are able to check the format arguments given to a function and warn the user if there is a error in the format arguments or if there is a potential uncontrolled format string security problem in the code. GCC does this automatically for some functions like printf(), but it is also possible to annotate other functions in a way that it will check them too. This feature is used by glibc for many functions. This patch adds the attribute to the some functions of musl expect for these functions where gcc automatically adds it. GCC automatically adds checks for these functions: printf, fprintf, sprintf, scanf, fscanf, sscanf, strftime, vprintf, vfprintf and vsprintf. The documentation from gcc is here: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html The documentation from Clang is here: http://clang.llvm.org/docs/AttributeReference.html#format-gnu-format Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48467
* musl: mips: add vdso supportHauke Mehrtens2016-01-231-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | vdso support is available on mips starting with kernel 4.4, see kernel commit a7f4df4e21 "MIPS: VDSO: Add implementations of gettimeofday() and clock_gettime()" for details. These are my micro benchmark results for 1.000.000 calls to clock_gettime(CLOCK_MONOTONIC, &tp) without vdso: root@OpenWrt:/# time ./vdso-test real 0m 0.95s user 0m 0.24s sys 0m 0.70s with vdso: root@OpenWrt:/# time /usr/bin/vdso-test real 0m 0.35s user 0m 0.34s sys 0m 0.00s Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48466
* musl: backport a fix that caused the wrong relocations to be emitted on some ↵Felix Fietkau2016-01-211-0/+55
| | | | | | | | architectures Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48444
* musl: fix handling of point-to-point interfaces in getifaddrs()Jo-Philipp Wich2015-11-161-0/+18
| | | | | | | | | | | | Current musl reports the peer (remote) address of a point-to-point interface and does not store the local address at all. Apply the same special treatment of IFA_LOCAL to musl's getifaddrs() which is also used in glibc and uclibc. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47488
* musl: add upstream patch for open_[w]memstreamJohn Crispin2015-11-021-0/+79
| | | | | | | | | | This patch fixes corner case in open_memstrem, when stream is created, but nothing is written. This case is present in tgtadm, tgtd management tool. Signed-off-by: Maxim Storchak <m.storchak@gmail.com> SVN-Revision: 47339
* musl: re-enable des crypto support, fixes pppd MPPE issuesFelix Fietkau2015-10-011-56/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47078
* Revert "musl: fix termios struct c_ispeed/c_ospeed field names" (accidental ↵Felix Fietkau2015-09-131-141/+0
| | | | | | commit) SVN-Revision: 46898
* musl: fix termios struct c_ispeed/c_ospeed field namesFelix Fietkau2015-09-131-0/+141
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46896
* musl: add a hack to remove unused crypt() algorithms, saves ~14k after lzmaFelix Fietkau2015-09-081-0/+110
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46816
* musl: update to version 1.1.11Felix Fietkau2015-09-025-3178/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46772
* musl: fix getsubopt functionSteven Barth2015-08-181-0/+29
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46684
* musl: update to latest git versionFelix Fietkau2015-07-245-214/+829
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46481
* gcc: use the -sf suffix for musl ldso on powerpcFelix Fietkau2015-07-121-2/+15
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46313
* musl: add powerpc soft-float supportFelix Fietkau2015-07-081-0/+141
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46267
* musl: call a_crash() inside __stack_chk_fail_local instead of calling ↵Felix Fietkau2015-07-081-2/+2
| | | | | | | | | | __stack_chk_fail Fixes relocation errors on PowerPC Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46266
* musl: update to latest git to fix MIPS and PowerPC TLS issuesFelix Fietkau2015-06-271-137/+392
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46134
* fix mklibs with muslMatteo Croce2015-06-251-0/+11
| | | | | | | crate a relative symlink to libc.so because make wildcard function ignores broken symlinks SVN-Revision: 46123
* gcc/musl: rework SSP-supportSteven Barth2015-06-221-0/+58
| | | | | | | | | | | Make musl provide libssp_nonshared.a and make GCC link it unconditionally if musl is used. This should be a no-op if SSP is disabled and seems to be the only reliable way of dealing with SSP over all packages due to the mess that is linkerflags handling in packages. Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46108
* musl: update musl to 2015-06-20Steven Barth2015-06-201-73/+763
| | | | | | | | Fixes a mips-regression and a missing SSP function Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46075
* musl: read the timezone from /etc/TZFelix Fietkau2015-06-191-0/+28
| | | | | | | | | | | | | | | | | | | | | | Currently the OpenWRT boot scripts write the timezone configuration to /tmp/TZ, relying on the behaviour of uClibc that the timezone is read from /etc/TZ if no TZ env variable is found. This works because /etc/TZ is a symlink to /tmp/TZ. Musl libc however only reads the timezone from the TZ env variable and if it doesn't find it or it's empty, it will look for a zoneinfo file, that doesn't exist. So in musl builds no timezone is ever set. This patch fixes the issue by having musl libc behave like uClibc: if no TZ env variable is found it will try to load it from /etc/TZ. Signed-off-by: Gianluca Anzolin <gianluca at sottospazio.it> Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46069
* musl: update to version 1.1.10+gitFelix Fietkau2015-06-163-2021/+1584
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46001
* musl: update to version 1.1.9Felix Fietkau2015-06-043-99/+2021
| | | | | | | | | Patch to 2015-06-04 to fix ldso related regressions on PPC and MIPS. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45886
* Revert "musl: update to version 1.1.9" (r45754)Felix Fietkau2015-06-032-805/+93
| | | | | | The current version seems to be broken on MIPS. SVN-Revision: 45879
* musl: update to version 1.1.9Felix Fietkau2015-05-252-93/+805
| | | | | | | | Patch to 2015-05-25 to fix ldso related regressions on PPC and MIPS. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 45754
* toolchain/musl: update to the latest version, adds aarch64 supportFelix Fietkau2015-03-281-0/+93
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45091
* musl: update to version 1.1.6Felix Fietkau2015-01-152-3553/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43977
* musl: merge changes from git, includes further getopt fixesFelix Fietkau2015-01-114-63/+3553
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43939
* musl: add getopt support for non-option argumentsJohn Crispin2014-11-191-0/+43
| | | | | | | | | | | | | | | musl libc doesn't support the GNU getopt extension to parse non-option arguments when the optstring starts with '-'. This extension is used by some utilities, notably iptables, that currently return with errors even with perfectly valid invocations. The patch adds the code needed by getopt.c and getopt_long.c to implement that extension. Signed-off-by: Gianluca Anzolin <gianluca@sottospazio.it> SVN-Revision: 43309
* musl: fix getopt optional argument processingFelix Fietkau2014-10-211-0/+20
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43009