]> Git Repo - uclibc-ng.git/log
uclibc-ng.git
7 years agoinclude/sys/reboot.h: add constants RB_SW_SUSPEND and RB_KEXEC
Anthony G. Basile [Mon, 22 May 2017 14:19:16 +0000 (14:19 +0000)]
include/sys/reboot.h: add constants RB_SW_SUSPEND and RB_KEXEC

This syncs up <sys/reboot.h> with the GNU C library, see their
commit 1a09dc56.  These constants are needed by init systems like
openrc.

Signed-off-by: Anthony G. Basile <[email protected]>
7 years ago“new LT” is gone
mirabilos [Sun, 21 May 2017 18:30:52 +0000 (20:30 +0200)]
“new LT” is gone

Signed-off-by: Waldemar Brodkorb <[email protected]>
7 years agoadd another generated file
mirabilos [Sun, 21 May 2017 18:29:59 +0000 (20:29 +0200)]
add another generated file

Signed-off-by: Waldemar Brodkorb <[email protected]>
7 years agox86: fix segfaults on SMP machine
Waldemar Brodkorb [Wed, 17 May 2017 09:07:36 +0000 (11:07 +0200)]
x86: fix segfaults on SMP machine

As reported by Bering-uClibc project uClibc-ng for x86
generates a segfault on SMP machines when trying to run ntpd.

A small test case is here: https://gist.github.com/ddrown

Use a similar nop instruction as for x86_64 in the code.

Signed-off-by: KP.Kirchdoerfer <[email protected]>
7 years agoor1k: add NPTL/TLS support
Waldemar Brodkorb [Fri, 14 Apr 2017 05:07:57 +0000 (07:07 +0200)]
or1k: add NPTL/TLS support

Signed-off-by: Waldemar Brodkorb <[email protected]>
7 years agoor1k: add clone() from old GNU libc implementation
Waldemar Brodkorb [Mon, 17 Apr 2017 12:48:50 +0000 (14:48 +0200)]
or1k: add clone() from old GNU libc implementation

7 years agopthread_getcpuclockid.c: fix clockid computation
Sergey Korolev [Mon, 24 Apr 2017 23:14:59 +0000 (02:14 +0300)]
pthread_getcpuclockid.c: fix clockid computation

For the linux kernel (since 2.6.12) MAKE_THREAD_CPUCLOCK
macro-like computation should be used to get clockid.

7 years agosync features.h with GNU C library, fixes gcc 7.1 toolchain creation
Waldemar Brodkorb [Sun, 7 May 2017 14:28:14 +0000 (16:28 +0200)]
sync features.h with GNU C library, fixes gcc 7.1 toolchain creation

7 years agobump for release
Waldemar Brodkorb [Sat, 22 Apr 2017 20:59:48 +0000 (22:59 +0200)]
bump for release

7 years agosys/stat.h: fix missing struct timespec definition
Damien Riegel [Sat, 22 Apr 2017 17:30:46 +0000 (13:30 -0400)]
sys/stat.h: fix missing struct timespec definition

This is a second attempt to fix a compilation failure involving a
missing struct timespec definition in some situation. Previous attempt
was following commit but it had undesirable side effects and was
reverted:

  657c4a9d6c fcntl.h: fix a missing `struct timespec` definition

A similar issue was identified and reported in glibc [1], and the fix
was to include the timespec definition if __USE_XOPEN2K8 was defined. To
minimize the possible impact of this new fix, it was decided to not
replace __USE_ATFILE by __USE_XOPEN2K8 as glibc did, but to add an
additional OR condition on __USE_XOPEN2K8.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=21371

Signed-off-by: Damien Riegel <[email protected]>
7 years agoremove unused HP_TIMING_AVAIL and header
Waldemar Brodkorb [Sat, 22 Apr 2017 20:44:56 +0000 (22:44 +0200)]
remove unused HP_TIMING_AVAIL and header

cleanup unused and unsupported code.

7 years agoremove unused pt-raise.c files
Waldemar Brodkorb [Thu, 20 Apr 2017 04:55:15 +0000 (06:55 +0200)]
remove unused pt-raise.c files

7 years agocleanup dead code in signal.h
Waldemar Brodkorb [Mon, 17 Apr 2017 15:15:15 +0000 (17:15 +0200)]
cleanup dead code in signal.h

7 years agoremove old regex implementation
Waldemar Brodkorb [Mon, 17 Apr 2017 15:19:35 +0000 (17:19 +0200)]
remove old regex implementation

7 years agoremove old fnmatch implementation
Waldemar Brodkorb [Mon, 17 Apr 2017 15:17:31 +0000 (17:17 +0200)]
remove old fnmatch implementation

7 years agoaarch64: handle lazy relocation of TLSDESC
Waldemar Brodkorb [Sun, 16 Apr 2017 15:45:46 +0000 (17:45 +0200)]
aarch64: handle lazy relocation of TLSDESC

Binutils emits by default lazy relocations for TLSDESC and
ld.so need to handle that. Fixes problems like:
can't handle reloc type 0x407

7 years agoor1k: remove unused file
Waldemar Brodkorb [Fri, 14 Apr 2017 05:07:39 +0000 (07:07 +0200)]
or1k: remove unused file

Signed-off-by: Waldemar Brodkorb <[email protected]>
7 years agoor1k: silence gcc warnings
Waldemar Brodkorb [Fri, 14 Apr 2017 05:07:19 +0000 (07:07 +0200)]
or1k: silence gcc warnings

Signed-off-by: Waldemar Brodkorb <[email protected]>
7 years agoor1k: remove false select
Waldemar Brodkorb [Fri, 14 Apr 2017 05:06:55 +0000 (07:06 +0200)]
or1k: remove false select

Signed-off-by: Waldemar Brodkorb <[email protected]>
7 years agolibm: allow long double wrappers for all architectures
Waldemar Brodkorb [Sun, 16 Apr 2017 15:14:36 +0000 (17:14 +0200)]
libm: allow long double wrappers for all architectures

If you enable these wrappers, be sure you don't need long double
precision on your embedded device, as these only enables
long double warpper functions to the existing double math
functions. Required to build some software as lvm2.

Signed-off-by: Waldemar Brodkorb <[email protected]>
7 years agoSame iteration variable used for inner and outer loop
Cupertino Miranda [Thu, 6 Apr 2017 09:57:25 +0000 (11:57 +0200)]
Same iteration variable used for inner and outer loop

Inner loop was using same counter variable (i) as the outer loop, therefore
making outer loop terminate before it visited all of the ELF program segments.
Surrounding code in this inner loop clearly shows the intention that this loop
should not affect the outer one, therefore leading me to the conclusion that
this should be a bug an not expected code.

This bug was detected due to some other bug in ARC binutils that kept setting
TEXTREL for any PIE application.

Apart from the but, I have also moved the debug message inside of the TEXTREL
condition as mprotect is only really called if TELTREL is set.

7 years agoldso: exit if zalloc can't alloc memory
Vineet Gupta [Wed, 5 Apr 2017 23:50:14 +0000 (16:50 -0700)]
ldso: exit if zalloc can't alloc memory

_dl_zalloc callers don't check for allocaton failure. It kind of makes
sense since such early allocations are unlikely to fail, and even if
they do, ldso would segv anyways thus bringing the issue to attention.

However there's a gcc nuance which led to this patch.

It seems gcc at -O2 (for DODEBUG build), does additional coge gen
analysis for pointer dereference from erroneous paths and it "isolates"
such code paths with a intrinsic abort/trap etc.

The ldso code fragment which was triggering this:

| add_ldso(struct dyn_elf *rpnt)
|    if (rpnt)
|        ...
|    else
|       rpnt = _dl_zalloc()
|
|    rpnt->dyn = tpnt  <---- potential NULL pointer deref

ARC gcc currently generates an abort() call which doesn't exist in ldso,
causing link errors (with a newer vrsion of binutils).

ARM gcc 6.2.1 behaves similarly, altough instead of abort, it generates
a trap inducing UDF instruction

|    367c: ebfffb79   bl 2468 <_dl_malloc>
|    3680: e51b2068   ldr r2, [fp, #-104] ; 0xffffff98
|    3684: e3500000   cmp r0, #0
|    3688: 0a000006   beq 36a8 <_dl_add_elf_hash_table+0x280>
| ...
|    36a8: e5862000   str r2, [r6]
|    36ac: e7f000f0   udf #

So add an explict dl_exit() in dl_zalloc error case to beat the
compiler.

Note that this error propagagtion analysis stops if the function in
consideration (_dl_zalloc) is NOT inlined. Hence the reason it only
shows up for DODEBUG builds which builds ldso at -O2 which is more
aggressive about inlining.

If this patch is not considered worth applying then the workaround
suggested by Claudiu is to to build ldso with
-fno-isolate-erroneous-paths-dereference

Signed-off-by: Vineet Gupta <[email protected]>
7 years agoldso/arc: fix debug prints
Vineet Gupta [Wed, 5 Apr 2017 21:00:19 +0000 (14:00 -0700)]
ldso/arc: fix debug prints

Signed-off-by: Vineet Gupta <[email protected]>
7 years agomath: no reason to depend on special architecture
Waldemar Brodkorb [Sat, 8 Apr 2017 19:39:51 +0000 (21:39 +0200)]
math: no reason to depend on special architecture

Signed-off-by: Waldemar Brodkorb <[email protected]>
7 years agoRevert "fcntl.h: fix a missing `struct timespec` definition"
Waldemar Brodkorb [Tue, 4 Apr 2017 19:46:00 +0000 (21:46 +0200)]
Revert "fcntl.h: fix a missing `struct timespec` definition"

This reverts commit 657c4a9d6c2e649d86307f46ce9d5e44192f6e7a.

This breaks a lot of package cross-compilation as lvm, ruby,
ipsec-tools. :(

7 years agobump for next release, uClibc -> uClibc-ng
Waldemar Brodkorb [Sun, 2 Apr 2017 16:54:58 +0000 (18:54 +0200)]
bump for next release, uClibc -> uClibc-ng

7 years agonios2: allow to hack on experimenting ld.so support
Waldemar Brodkorb [Sat, 25 Mar 2017 17:12:28 +0000 (18:12 +0100)]
nios2: allow to hack on experimenting ld.so support

7 years agounify defconfigs
Waldemar Brodkorb [Fri, 24 Mar 2017 03:17:17 +0000 (04:17 +0100)]
unify defconfigs

Signed-off-by: Waldemar Brodkorb <[email protected]>
7 years agoldso: don't discard sysmbols for DODEBUG builds
Vineet Gupta [Fri, 31 Mar 2017 18:22:20 +0000 (11:22 -0700)]
ldso: don't discard sysmbols for DODEBUG builds

the --discard-* toggles take away the symbols which comes in the way
when staring at objdumps for debugging low level issues

So don't discard symbols for DODEBUG builds

before
-----

    3388: j_s.d [blink]
    338a: add_s sp,sp,0x18
    338c: b.d 332c <_dl_add_elf_hash_table+0x50>
    3390: mov_s r2,0
    3392: nop_s
    3394: push_s blink <--- function not called out
    3396: st.aw r13,[sp,-20]
    339a: std r14r15,[sp,4]
    339e: std r16r17,[sp,12]

after
-----

    3388: j_s.d [blink]
    338a: add_s sp,sp,0x18
    338c: b.d 332c <_dl_add_elf_hash_table+0x50>
    3390: mov_s r2,0
    3392: nop_s

  00003394 <add_ldso.isra.9>:
    3394: push_s blink
    3396: st.aw r13,[sp,-20]
    339a: std r14r15,[sp,4]
    339e: std r16r17,[sp,12]

Signed-off-by: Vineet Gupta <[email protected]>
7 years agoARC: remove special CFLAGS/LDFLAGS handling
Waldemar Brodkorb [Tue, 21 Mar 2017 19:04:21 +0000 (20:04 +0100)]
ARC: remove special CFLAGS/LDFLAGS handling

Either toolchain defaults or buildsystems should provide the
architecture specific CFLAGS and LDFLAGS.

7 years agoremove RPC implementation
Waldemar Brodkorb [Mon, 20 Mar 2017 17:10:36 +0000 (18:10 +0100)]
remove RPC implementation

The included RPC implementation is ipv4 only.
Other C library projects have either deprecated the internal
RPC implementation (GNU C Library) or never implemented such
functionality (musl C Library). The latest rpcbind release (0.2.4)
checks for libtirpc and does not allow to be build with uClibc-ng
RPC without patching. The common use case for RPC nowadays is to
use rpcbind together with nfs-utils to provide NFS server or client
support to a system.

The included RPC implementation does create issues with duplicate
symbol failures when statically compiling with RPC enabled.

7 years agosync header with GNU libc / kernel
Waldemar Brodkorb [Sun, 5 Mar 2017 00:58:17 +0000 (01:58 +0100)]
sync header with GNU libc / kernel

The header is not in sync with GNU libc and Linux kernel and
therefore produces compile errors with qemu-user (2.8.0).

Reported-by: Thomas Petazzoni <[email protected]>
Signed-off-by: Waldemar Brodkorb <[email protected]>
7 years agoDiscard 3072 bytes instead of 256 bytes
Loganaden Velvindron [Fri, 17 Mar 2017 18:25:03 +0000 (19:25 +0100)]
Discard 3072 bytes instead of 256 bytes

This follows the recommendations outlined in Network Operations Division
Cryptographic Requirements published on wikileaks on March 2017.
We discard more bytes of the first keystream to reduce possibility of
non-random bytes.
This is similar to a change in FreeBSD:
https://svnweb.freebsd.org/base?view=revision&revision=315225

Signed-off-by: Loganaden Velvindron <[email protected]>
7 years agoSearch the configured multilib
Alexey Neyman [Wed, 15 Mar 2017 06:24:14 +0000 (23:24 -0700)]
Search the configured multilib

... before falling back to ld.so installation path (it is not the same -
gcc uses /lib/ld-uClibc-x86-64.so.0 for uClibc) or default /lib:/usr/lib.

This matches glibc behavior (see trusted-dirs.h generated during glibc
build).

Signed-off-by: Alexey Neyman <[email protected]>
8 years agoFix build on macos
Alexey Neyman [Wed, 1 Mar 2017 18:39:33 +0000 (10:39 -0800)]
Fix build on macos

... where install does not have a -D option.

Signed-off-by: Alexey Neyman <[email protected]>
8 years agofcntl.h: fix a missing `struct timespec` definition
Damien Riegel [Mon, 27 Feb 2017 17:36:37 +0000 (12:36 -0500)]
fcntl.h: fix a missing `struct timespec` definition

If a source file is compiled with:

  #define _XOPEN_SOURCE 700
  #define _POSIX_C_SOURCE 200112L

Then including fcntl.h results in the following error:

  In file included from fcntl.h:37:0,
                   from test.c:4:
  sys/stat.h:371:54: error: array type has incomplete element type ‘struct timespec’
   extern int futimens (int __fd, const struct timespec __times[2]) __THROW;

To fix that, we force the definition of struct timespec in fcntl.h when
__USE_XOPEN2K8 is defined. This mimics the behavior of glibc which
contains the following line in its io/fcntl.h header (included by
fcntlh.h):
  #ifdef __USE_XOPEN2K8
  # include <bits/types/struct_timespec.h>
  #endif

This bug was spotted during the compilation of BoringSSL against uClibc.

Signed-off-by: Damien Riegel <[email protected]>
8 years agoOnly set *memptr when success for posix_memalign
Kito Cheng [Thu, 23 Feb 2017 09:16:28 +0000 (17:16 +0800)]
Only set *memptr when success for posix_memalign

8 years agoguard new syscalls preadv/pwritev
Waldemar Brodkorb [Thu, 23 Feb 2017 01:59:15 +0000 (02:59 +0100)]
guard new syscalls preadv/pwritev

8 years agoor1k: add missing definition of ucontext
Waldemar Brodkorb [Fri, 17 Feb 2017 21:33:49 +0000 (22:33 +0100)]
or1k: add missing definition of ucontext

Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agoremove dead code in dlfcn.h
Waldemar Brodkorb [Sat, 18 Feb 2017 06:23:28 +0000 (07:23 +0100)]
remove dead code in dlfcn.h

8 years agoarm: fix static linking issues
Waldemar Brodkorb [Thu, 16 Feb 2017 19:22:21 +0000 (20:22 +0100)]
arm: fix static linking issues

As reported by Buildroot developers these files causing static
linking issues. The original contribution with the ARM unwind-resume
rework and GNU libc sync was made before the combined libc change.
But the patch was applied later, after the libc change and
it seems the test coverage for static linking didn't catch it in
the regression testing. Remove the files.

Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agoremove unused assignment in clone
Waldemar Brodkorb [Mon, 13 Feb 2017 19:19:34 +0000 (20:19 +0100)]
remove unused assignment in clone

Patch fetched from GNU libc mailinglist.

8 years agofstat: make new code aarch64 specific
Waldemar Brodkorb [Fri, 3 Feb 2017 05:04:16 +0000 (06:04 +0100)]
fstat: make new code aarch64 specific

The new code get's used by MIPS64 N64 and fails.
Make the new code aarch64 specific.

8 years agobump for release
Waldemar Brodkorb [Wed, 1 Feb 2017 20:26:59 +0000 (21:26 +0100)]
bump for release

8 years agoaarch64: fix syscall_error_handler, fixes tst-mqueue errors
Waldemar Brodkorb [Mon, 30 Jan 2017 04:07:36 +0000 (05:07 +0100)]
aarch64: fix syscall_error_handler, fixes tst-mqueue errors

Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agog/c __libc_errno
mirabilos [Sun, 29 Jan 2017 13:22:02 +0000 (14:22 +0100)]
g/c __libc_errno

Signed-off-by: mirabilos <[email protected]>
Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agoadd experimental aarch64 support
Waldemar Brodkorb [Tue, 4 Oct 2016 04:51:35 +0000 (06:51 +0200)]
add experimental aarch64 support

Ported over from GNU C Library and runtime tested in Qemu.

8 years agouse safe, even if possibly a few cycles slower, six-argument syscall implementation
mirabilos [Sun, 29 Jan 2017 14:30:50 +0000 (15:30 +0100)]
use safe, even if possibly a few cycles slower, six-argument syscall implementation

Signed-off-by: mirabilos <[email protected]>
Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agoextract six-argument syscalls from the rest
mirabilos [Sun, 29 Jan 2017 14:05:13 +0000 (15:05 +0100)]
extract six-argument syscalls from the rest

(still same implementation though)

Signed-off-by: mirabilos <[email protected]>
Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agoremove dead code
Waldemar Brodkorb [Sun, 29 Jan 2017 14:00:07 +0000 (15:00 +0100)]
remove dead code

Signed-off-by: mirabilos <[email protected]>
Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agoFix make rule for generation of "ucontext_i.h" when building in separate directory...
Sergey Organov [Thu, 26 Jan 2017 11:33:18 +0000 (14:33 +0300)]
Fix make rule for generation of "ucontext_i.h" when building in separate directory (with O=)

For me it was enabling of UCLIBC_SUSV3_LEGACY=y that broke compilation
in separate directory.

8 years agoremove PID caching
Waldemar Brodkorb [Sun, 22 Jan 2017 09:24:51 +0000 (10:24 +0100)]
remove PID caching

Follow GNU C Library from c579f48edba88380635ab98cb612030e3ed8691e
and remove the PID caching. These simplifies the architecture specific
assembly code.
The run of the test suite found no regressions, it even solves
some of the test failures for x86/x86_64/sparc.

Reviewed-by: Max Filippov <[email protected]>
Reviewed-by: Vineet Gupta <[email protected]>
Acked-by: Matthew Fortune <[email protected]>
Acked-by: Alexey Brodkin <[email protected]>
8 years agomips: PROF is never defined, kill dead code
Waldemar Brodkorb [Thu, 26 Jan 2017 02:04:22 +0000 (03:04 +0100)]
mips: PROF is never defined, kill dead code

8 years agoRestore UCLIBC_HAS_LFS as "always enabled"
Alexey Neyman [Mon, 23 Jan 2017 22:51:30 +0000 (14:51 -0800)]
Restore UCLIBC_HAS_LFS as "always enabled"

Otherwise, buildroot rejects uClibc-ng in an external toolchain.

Signed-off-by: Alexey Neyman <[email protected]>
8 years agonds32: add NPTL/TLS, *context function, libm changes and code cleanup
Vincent Ren-Wei Chen [Tue, 17 Jan 2017 06:31:24 +0000 (07:31 +0100)]
nds32: add NPTL/TLS, *context function, libm changes and code cleanup

This commit includes following features.
1. Support NPTL/TLS
2. Add libm function which is used to handle FP rounding and excpetions
   (ex: fclrexcpt,fedisblxcpti,feenablxcpt... )
3. Add *context function for operating user context
   (ex: setcontext,getcontext,makecontext... )
4. Change the return flow from signal handler
5. Cleanup of old code

The testsuite only has 2 errors, tst-cpuclock1 and tst-cputimer1,
which are related to timing accuracy. (math and locale tests are disabled)

Signed-off-by: Vincent Ren-Wei Chen <[email protected]>
8 years agoppc: fix mq_send
Waldemar Brodkorb [Fri, 20 Jan 2017 01:15:13 +0000 (02:15 +0100)]
ppc: fix mq_send

Add a similar fix as in 8dd85e041bdccf630c90e12ea044f55d28da9396.

Reported-By: Steven Seeger <[email protected]>
8 years agoRevert "package/uclibc: Fix removal of libintl.h"
Waldemar Brodkorb [Tue, 17 Jan 2017 05:40:58 +0000 (06:40 +0100)]
Revert "package/uclibc: Fix removal of libintl.h"

This reverts commit 7921ad851370684cf256f9bf7812b763bfd62fca.

Don't commit stuff before first coffee!

8 years agoMakefile.in: Fix removal of libintl.h
Bernd Kuhls [Mon, 16 Jan 2017 20:55:46 +0000 (21:55 +0100)]
Makefile.in: Fix removal of libintl.h

A wrong filename was present in Makefile.in leaving libintl.h installed
even if libintl support is disabled leading to wrong configure checks
by other packages.

Signed-off-by: Bernd Kuhls <[email protected]>
8 years agopackage/uclibc: Fix removal of libintl.h
Bernd Kuhls [Mon, 16 Jan 2017 20:59:03 +0000 (21:59 +0100)]
package/uclibc: Fix removal of libintl.h

Needed to fix
http://autobuild.buildroot.net/results/6be/6be94fe2542f3ac9fb785dd22f504e25c2a7802e/

Signed-off-by: Bernd Kuhls <[email protected]>
8 years agoARC: ldso: don't use _DYNAMIC@gotpc construct #2
Vineet Gupta [Fri, 13 Jan 2017 20:24:53 +0000 (12:24 -0800)]
ARC: ldso: don't use _DYNAMIC@gotpc construct #2

This removes _DYNAMIC@gotpc from elf_machine_load_address()
This is a seperate commit to callout the fact that old code was actually
broken but was NOT caught since it never gets called (and will never be)
since ld.so only calls it if kernel doesn't pass AT_BASE auxvt, which is
not true for Linux.

    if (!auxvt[AT_BASE].a_un.a_val)
auxvt[AT_BASE].a_un.a_val = elf_machine_load_address();

So while the intent was to remove _DYNAMIC@gotpc construct, we need to
come up with something which works.

The build time address computation of .dynamic which works well is:

- "ld  %1, [pcl, _DYNAMIC@gotpc] \n"
+ "ld  %1, [pcl, _GLOBAL_OFFSET_TABLE_@pcl] \n"

However the runtime address of .dynamic can only be generated with

        "add %0, pcl, _DYNAMIC@pcl      \n"

which unfortunately is what is currently broken as it is converted to
i_GLOBAL_OFFSET_TABLE_t and thus refers to runtime address of .got and
not .dyanmic

Thus we resort to using an arbit symbol _dl_start at the expense of an
extra GOT entry and a bogus R_ARC_NONE relo in ldso itself which now
needs to be ignored.

Signed-off-by: Vineet Gupta <[email protected]>
8 years agoARC: ldso: don't use _DYNAMIC@gotpc construct #1
Vineet Gupta [Fri, 13 Jan 2017 20:24:52 +0000 (12:24 -0800)]
ARC: ldso: don't use _DYNAMIC@gotpc construct #1

This converts elf_machine_dynamic() to not use the _DYNAMIC@xx construct
which was historically converted by assembler into _GLOBAL_OFFSET_TABLE

Now that "hack" is being removed from assembler, we need to make sure
that no code relies on that magic "conversion".

Signed-off-by: Vineet Gupta <[email protected]>
8 years agofix gcc compiler warning
Waldemar Brodkorb [Sat, 14 Jan 2017 11:07:48 +0000 (12:07 +0100)]
fix gcc compiler warning

8 years agonptl_db: fix gcc compiler warnings
Waldemar Brodkorb [Sat, 14 Jan 2017 07:49:52 +0000 (08:49 +0100)]
nptl_db: fix gcc compiler warnings

8 years agonptl: remove pthread_attr_init/pthread_create weak aliases
Waldemar Brodkorb [Thu, 12 Jan 2017 18:35:09 +0000 (19:35 +0100)]
nptl: remove pthread_attr_init/pthread_create weak aliases

We do not support symbol versioning, so remove these weak aliases.

8 years agofts: fix gcc compiler warning
Waldemar Brodkorb [Fri, 30 Dec 2016 19:59:10 +0000 (20:59 +0100)]
fts: fix gcc compiler warning

Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agofnmatch: fix gcc compiler warnings
Waldemar Brodkorb [Fri, 30 Dec 2016 18:21:15 +0000 (19:21 +0100)]
fnmatch: fix gcc compiler warnings

Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agoldso: do not resolve relocations for debug, dig them up when debugging
Waldemar Brodkorb [Tue, 27 Dec 2016 08:34:40 +0000 (09:34 +0100)]
ldso: do not resolve relocations for debug, dig them up when debugging

Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agoadd wrappers for preadv/pwritev
Waldemar Brodkorb [Wed, 28 Dec 2016 02:13:31 +0000 (03:13 +0100)]
add wrappers for preadv/pwritev

8 years agoadd uchar.h minimal from GNU libc
Waldemar Brodkorb [Tue, 27 Dec 2016 08:32:27 +0000 (09:32 +0100)]
add uchar.h minimal from GNU libc

8 years agoadd secure_getenv() function
Waldemar Brodkorb [Tue, 27 Dec 2016 08:24:07 +0000 (09:24 +0100)]
add secure_getenv() function

8 years agoreformat README and update architecture/processor list
Waldemar Brodkorb [Thu, 12 Jan 2017 06:48:20 +0000 (07:48 +0100)]
reformat README and update architecture/processor list

8 years agouse multiline comment for better copyright parsing
Waldemar Brodkorb [Thu, 12 Jan 2017 06:19:09 +0000 (07:19 +0100)]
use multiline comment for better copyright parsing

8 years agoremove unused strip script
Waldemar Brodkorb [Thu, 12 Jan 2017 06:13:26 +0000 (07:13 +0100)]
remove unused strip script

8 years agoMAINTAINERS: add Matthew Fortune for MIPS
Waldemar Brodkorb [Mon, 9 Jan 2017 02:12:41 +0000 (03:12 +0100)]
MAINTAINERS: add Matthew Fortune for MIPS

8 years agomips: sync with GNU libc, fix mips64r6 n32 compilation
Waldemar Brodkorb [Thu, 5 Jan 2017 07:08:02 +0000 (08:08 +0100)]
mips: sync with GNU libc, fix mips64r6 n32 compilation

8 years agold.so: fix mips{32,64}r6 support
Waldemar Brodkorb [Thu, 5 Jan 2017 05:27:35 +0000 (06:27 +0100)]
ld.so: fix mips{32,64}r6 support

Signed-off-by: Matthew Fortune <[email protected]>
8 years agoargp/iconv needs wchar enabled
Waldemar Brodkorb [Sat, 31 Dec 2016 05:13:53 +0000 (06:13 +0100)]
argp/iconv needs wchar enabled

8 years agoinet: fix getnameinfo problem found by new test cases
Waldemar Brodkorb [Fri, 30 Dec 2016 11:19:59 +0000 (12:19 +0100)]
inet: fix getnameinfo problem found by new test cases

Follow documented behaviour:
http://man7.org/linux/man-pages/man3/getnameinfo.3.html

Sync with GNU libc behaviour.

8 years agoremove inline changelog, we have git
Waldemar Brodkorb [Fri, 30 Dec 2016 10:08:22 +0000 (11:08 +0100)]
remove inline changelog, we have git

8 years agolocale: needs libiconv
Waldemar Brodkorb [Thu, 29 Dec 2016 12:38:09 +0000 (13:38 +0100)]
locale: needs libiconv

8 years agodo not remove iconv.h when UCLIBC_HAS_LOCALE is not set
Waldemar Brodkorb [Wed, 28 Dec 2016 18:08:15 +0000 (19:08 +0100)]
do not remove iconv.h when UCLIBC_HAS_LOCALE is not set

8 years agoadd init_module/delete_module syscall wrappers
Waldemar Brodkorb [Tue, 27 Dec 2016 08:24:24 +0000 (09:24 +0100)]
add init_module/delete_module syscall wrappers

Add the wrappers unconditionally, because kmod package
still uses them.

8 years agobump for release
Waldemar Brodkorb [Mon, 26 Dec 2016 08:11:34 +0000 (09:11 +0100)]
bump for release

8 years agomips: use the common dirent.h
Waldemar Brodkorb [Mon, 26 Dec 2016 07:26:50 +0000 (08:26 +0100)]
mips: use the common dirent.h

8 years agoremove UCLIBC_LINUX_MODULE_26
Waldemar Brodkorb [Fri, 23 Dec 2016 06:38:21 +0000 (07:38 +0100)]
remove UCLIBC_LINUX_MODULE_26

The syscall wrappers are not required and other C libraries
do not provide them. Busybox modutils.c must be patched so
that syscall() is used for uClibc-ng.

Signed-off-by: Waldemar Brodkorb <[email protected]>
8 years agoremove misc/gnu, cleanup comment
Waldemar Brodkorb [Wed, 21 Dec 2016 18:25:07 +0000 (19:25 +0100)]
remove misc/gnu, cleanup comment

8 years agoremove obstack support
Waldemar Brodkorb [Tue, 20 Dec 2016 19:56:32 +0000 (20:56 +0100)]
remove obstack support

Remove __UCLIBC_HAS_OBSTACK__ as it isn't very uptodate and
maintained part. It shouldn't be required for any software and
mostly shipped with stuff which use it. (f.e. binutils-gdb)

8 years agoremove __MALLOC_GLIBC_COMPAT__ option
Waldemar Brodkorb [Tue, 20 Dec 2016 19:51:59 +0000 (20:51 +0100)]
remove __MALLOC_GLIBC_COMPAT__ option

This option is enabled for a long time and I see no
useful case where we should be incompatible to glibc here.

8 years agosys/cdefs.h: add definition of __attribute_alloc_size__
Thomas Petazzoni [Mon, 19 Dec 2016 22:26:23 +0000 (23:26 +0100)]
sys/cdefs.h: add definition of __attribute_alloc_size__

Commit cee0b058fa0b4501b289a2da365182d60314d746 ("add aligned_alloc
required for latest gcc libstdc++") added the prototype of
aligned_alloc() to <stdlib.h>. This prototype contains
'__attribute_alloc_size__ ((2))', but this is not defined anywhere in
uClibc-ng.

This commit addresses that by adding the relevant definition in
<sys/cdefs.h>, borrowed from glibc.

Signed-off-by: Thomas Petazzoni <[email protected]>
8 years agoadd stub implementation for libintl/gettext
Waldemar Brodkorb [Tue, 20 Dec 2016 18:57:05 +0000 (19:57 +0100)]
add stub implementation for libintl/gettext

These adds the stubs from gettext-tiny 0.0.5
from here:
https://github.com/sabotage-linux/gettext-tiny

8 years agoadd libiconv-tiny implementation
Waldemar Brodkorb [Sun, 11 Dec 2016 15:56:19 +0000 (16:56 +0100)]
add libiconv-tiny implementation

To use it enable UCLIBC_HAS_LIBICONV, then iconv_open/iconv_close
should be available.

8 years agothreads: optimize single threaded applications
Waldemar Brodkorb [Wed, 7 Dec 2016 06:56:44 +0000 (07:56 +0100)]
threads: optimize single threaded applications

Revert the removal of the weak pthread functions and
guarantee a link order so that single threaded applications
doesn't link in all the pthread functions they don't use.

Signed-off-by: Max Filippov <[email protected]>
Tested-by: Waldemar Brodkorb <[email protected]>
8 years agoxtensa: fix static linking
Waldemar Brodkorb [Wed, 7 Dec 2016 06:59:34 +0000 (07:59 +0100)]
xtensa: fix static linking

uClibc-ng 1.0.20 fixed static linking with "libdl" by adding all libdl functions
into the libc. On xtensa, though, libdl contains an unresolved reference that is
satisfied by the ld.so - which is not a part of the linking in a static case.

Signed-off-by: Alexey Neyman <[email protected]>
Acked-by: Max Filippov <[email protected]>
8 years agofix static linking for FDPIC toolchains
Waldemar Brodkorb [Thu, 8 Dec 2016 03:36:10 +0000 (04:36 +0100)]
fix static linking for FDPIC toolchains

Fixes following problem, when trying to compile a simple
C application statically with a FDPIC toolchain (for example
with Blackfin architecture):
lib/libc.a(libdl.os): In function `do_dlclose':
(.text+0x6be): undefined reference to `_dl_free'
..

8 years agobfin: fix a gcc warning
Waldemar Brodkorb [Thu, 8 Dec 2016 03:07:47 +0000 (04:07 +0100)]
bfin: fix a gcc warning

8 years agoinclude/sys/mman.h: remove madvise/posix_madvise prototypes on noMMU
Thomas Petazzoni [Wed, 7 Dec 2016 22:20:18 +0000 (23:20 +0100)]
include/sys/mman.h: remove madvise/posix_madvise prototypes on noMMU

Signed-off-by: Thomas Petazzoni <[email protected]>
8 years agolibc/sysdeps/linux/common/madvise.c: disable on noMMU architectures
Thomas Petazzoni [Wed, 7 Dec 2016 22:18:49 +0000 (23:18 +0100)]
libc/sysdeps/linux/common/madvise.c: disable on noMMU architectures

Similar to what was done in commit
9945c6d21797553e78cbef8034f6dd16b3824df5 for posix_madvise().

Signed-off-by: Thomas Petazzoni <[email protected]>
8 years agoutils: add -static to CFLAGS when HAVE_SHARED is not set
Max Filippov [Fri, 9 Dec 2016 21:13:09 +0000 (13:13 -0800)]
utils: add -static to CFLAGS when HAVE_SHARED is not set

Signed-off-by: Max Filippov <[email protected]>
8 years agobump for release
Waldemar Brodkorb [Sun, 4 Dec 2016 08:50:35 +0000 (09:50 +0100)]
bump for release

8 years agofix obstack compile issue after libintl/gettext removal
Waldemar Brodkorb [Fri, 2 Dec 2016 23:23:10 +0000 (00:23 +0100)]
fix obstack compile issue after libintl/gettext removal

This page took 0.075461 seconds and 4 git commands to generate.