summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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>
* | ldso: use ADDR_ALIGN instead of hard-coded valueCarmelo Amoroso2011-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Use ADDR_ALIGN to align the minvma when loading shared libraries instead of the hard coded 0xffffU value. This fixes teh stand/alone support on ARM as reported in bug #3133. Signed-off-by: Sven Ola <sven-ola@gmx.de> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> (cherry picked from commit 435471db8561e4686e5921b7f719ab6d5a0d06f7) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | Merge remote branch 'origin/master' into prelinkCarmelo Amoroso2011-02-038-6/+50
|\| | | | | | | | | | | | | | | | | | | | | | | * origin/master: arm: fix the static link problem for ARM due to undefined __tls_get_addr nios2: Name architecture correctly in endian.h header nptl/mips64: Fix build when using mips64 and ABIs other than o32 mips: avoid segmentation fault when RLD_MAP is 0 libc: fix linker script generation for libubacktrace.so stdio: fix diagnostic message Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.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>
* | ldso: fix _dl_debug_lookup to handle protected symbolsFilippo Arcidiacono2011-01-271-1/+1
| | | | | | | | | | | | | | | | | | Initialize symbol_ref.sym field before calling _dl_find_hash to correctly handle protected symbols when tracing objects in the prelink stage. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Salvatore Cro <salvatore.cro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | libdl: fix tls symbol lookup in dlsymFilippo Arcidiacono2011-01-251-1/+1
| | | | | | | | | | | | | | | | Due to merge with prelink, the sym_ref.tpnt is always set when the symbol is found, so it needs to call the _dl_tls_symaddr only for tls symbols. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* | Merge remote branch 'origin/master' into prelinkCarmelo Amoroso2011-01-2132-243/+318
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: bump version to 0.9.32-rc2-git release 0.9.32-rc2 nptl: Fix __USER_LABEL_PREFIX__ concatenatio nptl: fix start_thread() for _STACK_GROWS_UP ldso: get rid of _dl_lookup_hash Add protected symbols support for all architectures Revert "ldso/arm: Correct protected symbol resolution" Revert "ldso_sh: add support for protected symbols to SH" Revert "ldso/i386: support protected symbols" cris: Fix build issues syslog: fix 'everyone logs with user facility' __psfs_parse_spec: always use long int for %p buildsys: headers target should not depend on sysnum.h buildsys: fix make release target nptl: get rid of the last preprocessor warning when __ASSUME_TGKILL is not defined remove uClibc_ctype.h if !LOCALE Revert "Makefile.in: Add header to 'all' target" nptl: get rid of preprocessor warning when __ASSUME_TGKILL is not defined Conflicts: ldso/include/dl-hash.h ldso/ldso/arm/elfinterp.c ldso/ldso/avr32/elfinterp.c ldso/ldso/bfin/elfinterp.c ldso/ldso/cris/elfinterp.c ldso/ldso/dl-hash.c ldso/ldso/i386/elfinterp.c ldso/ldso/m68k/elfinterp.c ldso/ldso/mips/elfinterp.c ldso/ldso/powerpc/elfinterp.c ldso/ldso/sh/elfinterp.c ldso/ldso/sh64/elfinterp.c ldso/ldso/sparc/elfinterp.c ldso/ldso/x86_64/elfinterp.c ldso/ldso/xtensa/elfinterp.c ldso/libdl/libdl.c Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.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>
* | Merge commit 'origin/master' into prelinkCarmelo Amoroso2011-01-0323-60/+166
|\| | | | | | | 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>
| * bump version to 0.9.32-rc1-gitBernhard Reutner-Fischer2010-12-171-1/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * release 0.9.32-rc1v0.9.32-rc1Bernhard Reutner-Fischer2010-12-171-1/+1
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * libm_sh: add optimised assembly implementation of lroundf and lrintfChristian Bruel2010-12-174-3/+97
| | | | | | | | | | | | | | | | | | | | * libc/sysdeps/linux/sh/sysdep.h: Add LOCAL macro * libm/sh/sh4/Makefile.arch: Include asm source in the build * libm/sh/sh4/s_lrintf.S [NEW]: optimised asm lrintf * libm/sh/sh4/s_lroundf.S [NEW]: optimised asm lroundf Signed-off-by: Christian Bruel <christian.bruel@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>