aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl
Commit message (Collapse)AuthorAgeFilesLines
* 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
* toolchain/musl: remove old CONFIG_MUSL_ENABLE_DEBUG optionFelix Fietkau2016-01-192-11/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48387
* toolchain/musl: enable debug informationFelix Fietkau2016-01-191-1/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48363
* 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
* musl: fix build on sh3Felix Fietkau2015-09-211-0/+6
| | | | | | | | | musl fails to build when compiled with gcc on sh3 (GCC target/#67260). Work it around. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 47012
* 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-027-3180/+5
| | | | | | 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: apply hardening options (e.g. SSP) also to libc itselfSteven Barth2015-06-201-0/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46073
* 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-165-2023/+1586
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46001
* musl: update to version 1.1.9Felix Fietkau2015-06-045-101/+2023
| | | | | | | | | 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-034-807/+95
| | | | | | The current version seems to be broken on MIPS. SVN-Revision: 45879
* musl: update to version 1.1.9Felix Fietkau2015-05-254-95/+807
| | | | | | | | 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-283-2/+95
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45091
* musl: update to version 1.1.6Felix Fietkau2015-01-154-3555/+2
| | | | | | 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
* musl: update to version 1.1.5Felix Fietkau2014-10-192-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42971
* toolchain/musl: update to version 1.1.4Felix Fietkau2014-08-022-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41954
* musl: add sgidefs.hFelix Fietkau2014-06-291-0/+73
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41399
* musl: add a few more glibc types to includesFelix Fietkau2014-06-291-0/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41398
* musl: remove fake glibc definesFelix Fietkau2014-06-291-8/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41396
* musl: update to version 1.1.3Felix Fietkau2014-06-292-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41394
* musl: fix toolchain build failure caused by some header changesFelix Fietkau2014-06-122-1/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41173
* musl: install a few extra headers to improve compatibility with various packagesFelix Fietkau2014-06-096-0/+1039
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41056
* musl: update to version 1.1.2Felix Fietkau2014-06-072-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41044
* musl: add a hack to rip out excessive iconv bloatFelix Fietkau2014-05-281-0/+68
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40875
* musl: update to version 1.1.1Felix Fietkau2014-05-214-24/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40820
* musl: update to 1.0.0Felix Fietkau2014-03-207-30/+8
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39962
* musl: move the dependency on BROKEN to the right config symbolFelix Fietkau2014-02-261-1/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39754
* toolchain/musl: add version 0.9.15, remove older versions (still broken, but ↵Felix Fietkau2014-02-2424-1153/+28
| | | | | | | | closer to being functional than before) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39750
* musl: mark as broken, many packages do not compile with itFelix Fietkau2013-08-101-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37750
* toolchain/musl: add version 0.9.11Luka Perkov2013-07-047-5/+122
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 37173
* toolchain/musl: add version 0.9.10Felix Fietkau2013-05-098-0/+314
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36591