summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Blackfin: rename __dl_boot to __startMike Frysinger2009-07-232-11/+8
| | | | | | | | | | | | | The entry symbol is __start rather than __dl_boot. While in the past this was silently ignored, now with common code checking the _start symbol in C code, we end up with link errors: ldso/ldso/ld-uClibc_so.a(ldso.oS): In function `__dl_get_ready_to_run': ldso/ldso/ldso.c:(.text+0x2b30): undefined reference to `__start' collect2: ld returned 1 exit status make[1]: *** [lib/ld-uClibc.so] Error 1 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* test/librt: make it build againDenys Vlasenko2009-07-231-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: fix one bug, one warning; extend README (one TODO added)Denys Vlasenko2009-07-233-14/+31
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: use KERNEL_HEADERSDenys Vlasenko2009-07-231-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix lib_hidden_proto's which have extra ;Denys Vlasenko2009-07-231-2/+2
| | | | | | This was making them appear in sanitized headers. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix dl_iterate_phdr() for FDPIC systemsMike Frysinger2009-07-231-0/+5
| | | | | | | The dlpi_addr isn't a simple Elf_Addr type for FDPIC systems, so we can't just assign 0 to it to initialize. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix typo in byteswap.h commitMike Frysinger2009-07-231-1/+1
| | | | | | | The Blackfin port hasn't been compiling cleanly, so this typo was missed in the byteswap unification commit. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix incorrect attribute orderMike Frysinger2009-07-232-2/+3
| | | | | | | | | | | | | | | | | The order of attributes in a function definition matters and in a few places in the Blackfin code, it was being applied to the return type instead of the function itself. In file included from ldso/ldso/ldso.c:43: ldso/ldso/bfin/elfinterp.c: At top level: ldso/ldso/bfin/elfinterp.c:42: warning: '__visibility__' attribute ignored on non-class types In file included from ldso/ldso/bfin/elfinterp.c:341, from ldso/ldso/ldso.c:43: libc/sysdeps/linux/bfin/crtreloc.c: At top level: libc/sysdeps/linux/bfin/crtreloc.c:91: warning: 'visibility' attribute ignored on non-class types Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add elf_machine_load_address() stubMike Frysinger2009-07-231-0/+8
| | | | | | | | | | | The Blackfin port never defined elf_machine_load_address() because the one place this code is called never matters to us. But without it, common code likes to hit a build failure, so stub it out. ldso/ldso/dl-startup.c: In function '_dl_start': ldso/ldso/dl-startup.c:170: warning: implicit declaration of function 'elf_machine_load_address' Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ldso: fix building for FDPIC systemsMike Frysinger2009-07-231-1/+1
| | | | | | | | | | The force shareable code missed a spot of using the DL_RELOC_ADDR() indirection thus leading to invalid operands: ldso/ldso/ldso.c: In function '_dl_get_ready_to_run': ldso/ldso/ldso.c:409: error: invalid operands to binary + (have 'Elf32_Addr' and 'struct elf32_fdpic_loadaddr') Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* silence warnings in Blackfin ldso codeMike Frysinger2009-07-233-3/+3
| | | | | | | | | | | | | | | | In file included from ./ldso/include/ldso.h:135, from ldso/ldso/ldso.c:34: ./ldso/ldso/bfin/dl-inlines.h: In function '__dl_init_loadaddr_map': ./ldso/ldso/bfin/dl-inlines.h:43: warning: assignment makes pointer from integer without a cast In file included from ldso/ldso/ldso.c:43: ldso/ldso/bfin/elfinterp.c: In function '_dl_do_lazy_reloc': ldso/ldso/bfin/elfinterp.c:299: warning: assignment makes pointer from integer without a cast ldso/ldso/ldso.c: In function '_dl_get_ready_to_run': ldso/ldso/ldso.c:534: warning: assignment makes integer from pointer without a cast Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add support for automatic loading of L2 SRAM regionsJie Zhang2009-07-231-17/+36
| | | | | | | These match the kernel/etc... pieces already merged. Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* do not install bits/syscalls-common.hMike Frysinger2009-07-231-0/+1
| | | | | | | Since we stub out the installed bits/syscalls.h, the installed bits/syscalls-common.h header is completely useless. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add more arch-specific include/ ignoresMike Frysinger2009-07-231-0/+12
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* create real common vfork() functionMike Frysinger2009-07-233-28/+14
| | | | | | | | | Rather than force people to always implement their own vfork(), have the default implementation be sane. For now, only the Blackfin port uses the new code. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: no need to load P5 for shared FLATJie Zhang2009-07-221-1/+0
| | | | | | | The register is already loaded for us upon entry by the kernel. Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix generation of Scrt1.o for FDPICJie Zhang2009-07-221-1/+1
| | | | | Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: unify FDPIC/FLAT versions of cloneMike Frysinger2009-07-221-22/+8
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ignore gdb/debugging filesMike Frysinger2009-07-221-0/+7
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add hidden aliases for openat funcsMike Frysinger2009-07-223-0/+16
| | | | | | openat64() uses openat(), so we need hidden aliases for it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add hidden aliases for ntoh/hton functionsMike Frysinger2009-07-222-4/+14
| | | | | | | Sometimes references for these functions show up (like when debugging is enabled), so add hidden aliases for them if needed. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* linuxthreads.old: fix crash in debug codeMike Frysinger2009-07-211-1/+1
| | | | | | | If pthread_join() is called and there is nothing to join, then the debug code will attempt to dereference a NULL pointer. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libpthread: add format attribute to __pthread_message()Mike Frysinger2009-07-212-3/+4
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* byteswap: unify common definitionsMike Frysinger2009-07-2110-632/+242
| | | | | | | | | The majority of the byteswap functions are the same across all arches, so setup a common header to provide definitions if they don't exist. This allows arches to override only the ones they actually want to implement with inline assembly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* s/UCLIBC_INTERNAL/_LIBC/gDenys Vlasenko2009-07-2111-24/+16
| | | | | | | | | | Undo my old mistake. I added UCLIBC_INTERNAL define, but later I realized _LIBC is doing exactly the same thing. This change converts all usages of UCLIBC_INTERNAL to _LIBC, removing all instances of UCLIBC_INTERNAL. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* corrected typoDenys Vlasenko2009-07-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libc/string/i386/string.h: fix -O0 build failureDenys Vlasenko2009-07-211-0/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* It fixes the following warnings seen on mips build.Khem Raj2009-07-203-8/+20
| | | | | | | | | | | libc/sysdeps/linux/mips/clone.S: Assembler messages: libc/sysdeps/linux/mips/clone.S:122: Warning: No .frame pseudo-op used in PIC code libc/sysdeps/linux/mips/clone.S:75: Warning: Pretending global symbol used as branch target is local. libc/sysdeps/linux/mips/crt1.S: Assembler messages: libc/sysdeps/linux/mips/crt1.S:134: Warning: No .cprestore pseudo-op used in PIC code Signed-off-by: Khem Raj <raj.khem@gmail.com>
* avr32/microblaze/vax: punt local byteswap.hMike Frysinger2009-07-203-175/+0
| | | | | | | These arches are generic C implementations of the byteswap functions, so rather than keep a useless local copy, use the common C one. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* syscall: convert cris/hppa to common syscallsMike Frysinger2009-07-203-140/+19
| | | | | | | The cris/hppa code appears to be easy to convert, so go ahead and do it for them. Build tested only. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* MAKEALL: find kernel headers betterMike Frysinger2009-07-201-1/+12
| | | | | | | Work with pre-sysroot compilers that have kernel headers available in the standard location, and let people force the location manually. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* some ports define ENOTSUPMike Frysinger2009-07-201-1/+3
| | | | | | | A port or two (like hppa) does define ENOTSUP, so don't assume that everyone needs this fallback define. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* INLINE_SYSCALL_NCS: scope out local vars to avoid conflictsMike Frysinger2009-07-201-6/+6
| | | | | | | | | | | The INLINE_SYSCALL_NCS() macro was using "res" and "err" as local variable names, but this caused conflicts with some code (like clock_getres) whose arguments were named the same. libc/sysdeps/linux/common/clock_getres.c: In function 'clock_getres': libc/sysdeps/linux/common/clock_getres.c:15: warning: 'res' is used uninitialized in this function Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* linuxthreads.old: extend workaround for asm rename warningsMike Frysinger2009-07-202-0/+12
| | | | | | | The libc_pthread_init.c needs the include workaround like forward.c, and forward.c needs more includes now. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix building for systems w/out ldso supportMike Frysinger2009-07-202-1/+8
| | | | | | | If an arch (like alpha and others) have no ldso support at all, then there is no point in attempting to walk loaded modules in the dl-* helper funcs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* alpha: fix building with no asm/elf.hMike Frysinger2009-07-201-1/+14
| | | | | | | The latest sanitized linux kernel headers no longer export asm/elf.h, so do not rely on it anymore. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fdatasync: handle latest alpha syscallsMike Frysinger2009-07-201-1/+1
| | | | | | | The latest alpha Linux kernel defines __NR_fdatasync like everyone else and deprecates the older __NR_osf_fdatasync, so support that setup. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* alpha/sigprocmask: fix implicit memset() prototypeMike Frysinger2009-07-201-0/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* first pass at implementing *at funcsMike Frysinger2009-07-2024-49/+457
| | | | | | | Tested basic functionality with coreutils and things seem to work. At least gives us a basis to jump from. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sync a few headers with glibc (no functional changes)Mike Frysinger2009-07-204-47/+47
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* dirent: push dirent type to prototypesMike Frysinger2009-07-207-48/+70
| | | | | | | | | | This syncs the dirent related functions with the glibc behavior -- rather than take void pointers everywhere, make the struct dirent pointers explicit in the API. After all, the functions themselves will cast the pointers to a dirent structure, so if it isn't as expected, people will crash. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* string: only include inline-asm if UCLIBC_HAS_STRING_ARCH_OPTMike Frysinger2009-07-201-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* regex: convert #if to #ifdefMike Frysinger2009-07-202-2/+2
| | | | | | Avoid gcc warnings about #if statements with defines that aren't defined. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add a wchar.h stubMike Frysinger2009-07-202-0/+19
| | | | | | | The basic C standard requires a few wchar types, so provide those even when wchar support is disabled. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* mknod: convert to INLINE_SYSCALL() to sync with glibcMike Frysinger2009-07-201-12/+6
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* note that we do not want hidden malloc aliasesMike Frysinger2009-07-201-0/+2
| | | | | | | | | | We want to let malloc() and friends be overridable at runtime so that apps can insert their own implementation (think debugging, specialized setups, etc...). That means that C library functions that return allocated memory have to go through the normal malloc() symbol as well as the external code is the one who will be calling free(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fix typo in frv endian commentMike Frysinger2009-07-201-1/+1
| | | | | Reported-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* relocate i386 string.h to i386-specific dirMike Frysinger2009-07-202-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* start ignoring include/ symlinksMike Frysinger2009-07-201-0/+21
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* unifdef: implement err.h funcs locallyMike Frysinger2009-07-201-1/+7
| | | | | | | | | Since the err.h functions are optional in uClibc, make sure we can rebuild ourselves if support is disabled. URL: https://bugs.busybox.net/show_bug.cgi?id=257 Reported-by: Michael Deutschmann <michael@talamasca.ocis.net> Signed-off-by: Mike Frysinger <vapier@gentoo.org>