summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* buildsys: use kbuild styleBernhard Reutner-Fischer2011-02-141-96/+39
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: remove wrong fileBernhard Reutner-Fischer2011-02-141-1/+1
| | | | | | Somehow Makefile.in ended in there, remove it. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* arm: use EABI per defaultBernhard Reutner-Fischer2011-02-141-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* regex: remove set but not used variableBernhard Reutner-Fischer2011-02-141-3/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* ldso: remove now unused variableBernhard Reutner-Fischer2011-02-141-1/+0
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix typo in buildsysBernhard Reutner-Fischer2011-02-141-1/+1
| | | | | | 0f85b228 used 'filter-pout' instead of 'filter-out'. Fix that. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* FORMAT_FDPIC_ELF: only for FRV and BFINBernhard Reutner-Fischer2011-02-141-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Fix memory leak in dlopen()/dlclose().Philip Craig2011-02-111-0/+4
| | | | | | | | The linked list of library dependencies created by dlopen() was not being freed by dlclose(). Signed-off-by: Philip Craig <philipjcraig@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Fix GNU make v3.80 compatibilityKevin Cernekee2011-02-111-2/+6
| | | | | | | | Commits 1f6601a and 094d82d introduced the "else ifeq" construct, which requires GNU make v3.81 or higher. This breaks the build on RHEL4 hosts. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* arm: use CAS gcc builtin if SI-mode pattern is availableBernhard Reutner-Fischer2011-02-111-8/+17
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* TODO: updateBernhard Reutner-Fischer2011-02-091-38/+31
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* i386: extend IMA guards to also cover LTOBernhard Reutner-Fischer2011-02-091-2/+5
| | | | | | See GCC PR47577; TODO: Remove them. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* *printf: Violation of precision with null stringJones Desougi2011-02-091-0/+6
| | | | | | | | | | | | | | | | | | When a string format is processed and the argument is NULL, this yields "(null)" regardless of precision. This does not make sense, precision should not be exceeded. A simple test shows that glibc outputs nothing if precision is smaller than six and the attached patch implements this same behaviour. Consider the not uncommon case of strings implemented like this: struct string { int len; char *ptr; }; There is often no nultermination and they may be printed like this: printf("%.*s", string.len, string.ptr); If len is 0 then ptr may be anything, but NULL is a common value. Obviously the empty string would be expected, not "(null)". Signed-off-by: Jones Desougi <jones.desougi@27m.se> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* sync bits/socket.h PF_* / AF_* values with 2.6.38-rc3Peter Korsgaard2011-02-093-3/+63
| | | | | | | | | A number of new address / protocol families have been added over the years, so sync with Linux 2.6.38-rc3, adding CAN, ISDN, Phonet, Zigbee, .. which are starting to be used by applications. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* arm: mv nptl specific atomic impl to common placeBernhard Reutner-Fischer2011-02-091-0/+0
| | | | | | Thanks to Nitin Garg for notincing! Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* fix a problem with hidden getutent in non-threaded buildsDenys Vlasenko2011-02-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* arm: fix the static link problem for ARM due to undefined __tls_get_addrNitin Garg2011-02-022-0/+38
| | | | | Signed-off-by: Nitin Garg <nitingarg98@gmail.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* nios2: Name architecture correctly in endian.h headerTobias Klauser2011-02-011-1/+1
| | | | | | | Nios II is not i386 :-) Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* nptl/mips64: Fix build when using mips64 and ABIs other than o32Khem Raj2011-01-292-1/+7
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mips: avoid segmentation fault when RLD_MAP is 0Richard Braun2011-01-291-1/+1
| | | | | | Signed-off-by: Richard Braun <rbraun@sceen.net> Acked-by: Joakim Tjernlund <joakim.tjernlund@transmode.se> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libc: fix linker script generation for libubacktrace.soFilippo Arcidiacono2011-01-251-2/+2
| | | | | | | | Fix libc.so linker script generation to add libubacktrace AS_NEEDED entry using MULTILIB_DIR instead of hard-coded "lib". Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* stdio: fix diagnostic messageBernhard Reutner-Fischer2011-01-211-1/+1
| | | | | | harmless copy'n paste error in #error Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* bump version to 0.9.32-rc2-gitCarmelo Amoroso2011-01-211-1/+1
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* release 0.9.32-rc2v0.9.32-rc2Carmelo Amoroso2011-01-201-1/+1
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* nptl: Fix __USER_LABEL_PREFIX__ concatenatioWill Newton2011-01-201-6/+8
| | | | | | | | | | The current C macro magic does not correctly concatenate the __USER_LABEL_PREFIX__ string on architectures where it has a non-empty value. We need to use __stringify to get the desired behaviour. Signed-off-by: Will Newton <will.newton@imgtec.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* nptl: fix start_thread() for _STACK_GROWS_UPWill Newton2011-01-201-2/+2
| | | | | | | | This patch adds a working implementation of pthread_create for architectures where STACK_GROWS_UP. Signed-off-by: Matt Fleming <matthew.fleming@imgtec.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* ldso: get rid of _dl_lookup_hashCarmelo Amoroso2011-01-203-11/+5
| | | | | | | | Now _dl_find_hash and _dl_lookup_hash are exactly the same, we can get rid of the _dl_lookup_hash, reverting the _dl_find_hash from a wrapper of _dl_lookup_hash to its original role. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Add protected symbols support for all architecturesSalvatore Cro2011-01-2016-89/+131
| | | | | | | | | | | | | | | | | | | | | | | | | Protected symbols are global symbols for which interposition is not allowed. We manage them in generic _dl_lookup_hash function. To handle protected symbols we need to get a reference to the module that defines the symbol itself. So we pass a new parameter 'struct symbol_ref' to the __dl_lookup_hash that is defined as below: struct symbol_ref { const ElfW(Sym) *sym; struct elf_resolve *tpnt; }; The tpnt field is used as an ouput parameter and refers to the module which defines the protected symbol. Further it can be used as output parameter for TLS relocations and FDPIC case. The sym field is instead used as an input parameter to detect the visibility of the symbol we are looking-up. In this way we get rid of different signatures for _dl_lookup_hash, allowing to remove the _dl_find_hash wrapper. This new structure is also suitable for prelink integration. Signed-off-by: Salvatore Cro <salvatore.cro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Revert "ldso/arm: Correct protected symbol resolution"Carmelo Amoroso2011-01-201-9/+2
| | | | | | | | This reverts commit 48fb264beaac8114e5ac3e80e70dda473fbce96d. The generic implementation will cover all the architectures handling the protected symbols in _dl_lookup_hash [ldso/ldso/dl-hash.c] Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Revert "ldso_sh: add support for protected symbols to SH"Carmelo Amoroso2011-01-201-24/+18
| | | | | | | | This reverts commit 74407db52d3953c7f3c6b8a53661cfc96cb07e22. The generic implementation will cover all the architectures handling the protected symbols in _dl_lookup_hash [ldso/ldso/dl-hash.c] Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Revert "ldso/i386: support protected symbols"Carmelo Amoroso2011-01-201-8/+2
| | | | | | | | This reverts commit ba38f0cec27b91cc7c605417ad047c4dc77d732f. The generic implementation will cover all the architectures handling the protected symbols in _dl_lookup_hash [ldso/ldso/dl-hash.c] Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* cris: Fix build issuesKhem Raj2011-01-152-0/+83
| | | | | | Thanks Waldemar Brodkorb for reporting Signed-off-by: Khem Raj <raj.khem@gmail.com>
* syslog: fix 'everyone logs with user facility'Roman I Khimov2011-01-111-1/+1
| | | | | | | | | | | | It's been found that on uclibc-based system most of the programs log with 'user' facility despite the calls to openlog() with other facilities explicitly set. Most but not all. Investigating that I've found that the ones logging with proper facilities used LOG_NDELAY in openlog(). The problem is that LogFacility is overwritten in openlog_intern and LOG_USER is passed to it from vsyslog() no matter what the program set with openlog(). Signed-off-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* __psfs_parse_spec: always use long int for %pBernhard Reutner-Fischer2011-01-111-1/+4
| | | | | closes bug #3037 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: headers target should not depend on sysnum.hCarmelo Amoroso2011-01-061-2/+3
| | | | | | | | | | | The generation of the sysnum.h has to be a prerequisite of 'pregen' target instead of headers, because it needs the compiler already available. The so called C bootstrap headers are required to build the compiler by invoking 'make headers', so the 'headers' target cannot relies itself on the compiler to be invoked. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* buildsys: fix make release targetCarmelo Amoroso2011-01-061-1/+1
| | | | | | | | | | According to git man page the syntax for git archive should have the <tree-ish> as last argument. Indeed using git 1.5.5.6 the tarball was not properly created. Newer version (i.e. 1.6.3.3) works fine even if HEAD comes before other option. For backward compatibility use a syntax that is fine with older git. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* nptl: get rid of the last preprocessor warning when __ASSUME_TGKILL is not ↵Carmelo Amoroso2011-01-051-1/+1
| | | | | | | | defined A missing change in the previous commit. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* remove uClibc_ctype.h if !LOCALEBernhard Reutner-Fischer2011-01-051-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Revert "Makefile.in: Add header to 'all' target"Bernhard Reutner-Fischer2011-01-051-2/+1
| | | | | | | | The respective source has to depend on a given set of headers. Depending all on headers is papering over an eventual missing other dependency, so reverting. This reverts commit 4d81f2a74578f819285b131c682e8d2f6c315c4e.
* nptl: get rid of preprocessor warning when __ASSUME_TGKILL is not definedCarmelo Amoroso2011-01-045-9/+9
| | | | | | | | | A sample of the warning reported while building for ARM that has not __ASSUME_TGKILL defined. libpthread/nptl/sysdeps/unix/sysv/linux/raise.c: In function 'raise': libpthread/nptl/sysdeps/unix/sysv/linux/raise.c:33:5: warning: "__ASSUME_TGKILL" is not defined Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libc/inet/netlinkaccess.h: Use the types from kernelKhem Raj2011-01-011-8/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* sparc: fix linking issue with __syscall_error.cAustin Foxley2010-12-292-1/+6
| | | | | | | | | | | Finally got around to testing out latest master and noticed that some buildsystem work last summer broke shared-builds of nptl on sparc. A version of __syscall_error.c needs to be linked into both libpthread and librt Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc: check for log double support in gccKonrad Eisele2010-12-271-0/+6
| | | | | | | | | To compile the quad float emulation library gcc needs __LONG_DOUBLE_128__ macro defined. Check first, if not supported then revert to the qp_ops.c stubs Signed-off-by: Konrad Eisele <konrad@gaisler.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* linuxthreads: Fix compilation breakageMatt Fleming2010-12-231-7/+4
| | | | | | | | | With commit "resolv.c: add support for per thread res_state" (aab4df0fb51660300559f5f29290709db2f7bfee) _res symbol is now marked as hidden in an attempt to make the resolver per-thread. Signed-off-by: Matt Fleming <matthew.fleming@imgtec.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libpthread/nptl_db: Append options to LDFLAGS based on if LD is set to gcc ↵Khem Raj2010-12-211-2/+1
| | | | | | driver or ld itself Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Makefile.in: Add header to 'all' targetKhem Raj2010-12-181-1/+2
| | | | | | Stage bits/uClibc_ctype.h when locales are enabled Signed-off-by: Khem Raj <raj.khem@gmail.com>
* extra/locale/Makefile: Consider the case of building out of sourcedirKhem Raj2010-12-181-3/+3
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* sem_open.c/sem_unlink.c: Use INTUSE macro to get proper function call to ↵Khem Raj2010-12-182-2/+2
| | | | | | | | | __pthread_once We need to use __pthread_once_internal if available this macro is therefore used to notify that. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* nptl: If DOPIC is set then we missed a rule to generate .os variants for ↵Khem Raj2010-12-181-0/+4
| | | | | | pt-*.c files Signed-off-by: Khem Raj <raj.khem@gmail.com>
* install_headers: Fix the header installation when using out of sourceKhem Raj2010-12-181-1/+8
| | | | | | build ( O=/x/y/z ) Signed-off-by: Khem Raj <raj.khem@gmail.com>