[PATCH 2/5] Revert ldso_sh: add support for protected symbols to SH

2011-01-12 Thread Carmelo AMOROSO
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.amor...@st.com --- ldso/ldso/sh/elfinterp.c | 42

[PATCH 3/5] Revert ldso/arm: Correct protected symbol resolution

2011-01-12 Thread Carmelo AMOROSO
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.amor...@st.com --- ldso/ldso/arm/elfinterp.c | 11 ++-

[PATCH 1/5] Revert ldso/i386: support protected symbols

2011-01-12 Thread Carmelo AMOROSO
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.amor...@st.com --- ldso/ldso/i386/elfinterp.c | 10 ++

[PATCH 4/5] Add protected symbols support for all architectures

2011-01-12 Thread Carmelo AMOROSO
From: Salvatore Cro salvatore@st.com 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

[PATCH 5/5] ldso: get rid of _dl_lookup_hash

2011-01-12 Thread Carmelo AMOROSO
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.amor...@st.com --- ldso/include/dl-hash.h |8 +---

[PATCH 0/5] Generic implementation for protected symbols

2011-01-12 Thread Carmelo AMOROSO
Folks, even if a bit late here the patch set for handling protected symbols for all architecture in the common code _dl_find_hash. The implementation is based on a Jocke's proposal modified according to a my suggestion that will allow to cope with proetcted symbols, TLS, FDPIC and prelinking as

[PATCH 1/3] nptl: Fix __USER_LABEL_PREFIX__ concatenation

2011-01-12 Thread Will Newton
The current C macro magic does not correctly concatenate the __USER_LABEL_PREFIX__ string on architectures where it has a value. We need to jump through a level of indirection to get the desired behaviour. Signed-off-by: Matt Fleming matthew.flem...@imgtec.com --- libpthread/nptl/pthreadP.h |

[PATCH 2/3] nptl: Fix start_thread() for _STACK_GROWS_UP

2011-01-12 Thread Will Newton
This patch adds a working implementation of pthread_create for architectures where STACK_GROWS_UP. Signed-off-by: Matt Fleming matthew.flem...@imgtec.com --- libpthread/nptl/pthread_create.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git

[PATCH 3/3] Add __pause_nocancel weak alias.

2011-01-12 Thread Will Newton
On architectures that don't provide __NR_pause __pause_nocancel is needed when wanting to perform an uncancelable pause. Signed-off-by: Matt Fleming matthew.flem...@imgtec.com --- libc/sysdeps/linux/common/pause.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

Re: [PATCH 0/5] Generic implementation for protected symbols

2011-01-12 Thread Carmelo AMOROSO
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/12/2011 12:34 PM, Carmelo AMOROSO wrote: Folks, even if a bit late here the patch set for handling protected symbols for all architecture in the common code _dl_find_hash. The implementation is based on a Jocke's proposal modified according

Re: [PATCH 4/5] Add protected symbols support for all architectures

2011-01-12 Thread Natanael Copa
On Wed, Jan 12, 2011 at 12:22 PM, Carmelo AMOROSO carmelo.amor...@st.com wrote: From: Salvatore Cro salvatore@st.com 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

Re: [PATCH 4/5] Add protected symbols support for all architectures

2011-01-12 Thread Carmelo AMOROSO
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/12/2011 4:31 PM, Natanael Copa wrote: On Wed, Jan 12, 2011 at 12:22 PM, Carmelo AMOROSO carmelo.amor...@st.com wrote: From: Salvatore Cro salvatore@st.com Protected symbols are global symbols for which interposition is not

Backtrace in uClibC

2011-01-12 Thread ANDY KENNEDY
I noticed that almost exactly a year ago Carmelo Amoroso posted stating that he hoped to do more work on backtrace. After looking at libubactrace/sh/backtrace.c, I'm confused as to why this is platform dependant code. The code appears to ONLY use library calls that should be available on _any_

RE: [PATCH 4/5] Add protected symbols support for all architectures

2011-01-12 Thread Jian Peng
Hi, Carmelo, I tried to apply the patch after git pull to update from master, but it failed $ patch -p1 ../uClibc-0.9.32-protected-symbol-1.patch patching file ldso/ldso/i386/elfinterp.c Hunk #1 FAILED at 175. Hunk #2 FAILED at 188. 2 out of 2 hunks FAILED -- saving rejects to file

Re: [PATCH 0/5] Generic implementation for protected symbols

2011-01-12 Thread Khem Raj
On 1/12/2011 3:34 AM, Carmelo AMOROSO wrote: Folks, even if a bit late here the patch set for handling protected symbols for all architecture in the common code _dl_find_hash. The implementation is based on a Jocke's proposal modified according to a my suggestion that will allow to cope with

Re: [PATCH 4/5] Add protected symbols support for all architectures

2011-01-12 Thread Khem Raj
On 1/12/2011 7:48 AM, Carmelo AMOROSO wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/12/2011 4:31 PM, Natanael Copa wrote: On Wed, Jan 12, 2011 at 12:22 PM, Carmelo AMOROSO carmelo.amor...@st.com wrote: From: Salvatore Crosalvatore@st.com Protected symbols are global