RE: prelink breaks fdpic support in a bunch of places

2011-11-28 Thread Filippo ARCIDIACONO
Hi Mike, > -Original Message- > From: Mike Frysinger [mailto:vap...@gentoo.org] > Sent: Sunday, November 27, 2011 9:12 AM > To: uclibc@uclibc.org; filippo.arcidiac...@st.com; > carmelo.amor...@st.com > Subject: prelink breaks fdpic support in a bunch of places > > there seems to be a bunc

Re: Regression caused by commit 7682323a3a798d6f15708f228f859a64cb869aa3

2011-11-28 Thread Carmelo AMOROSO
On 28/11/2011 3.15, Khem Raj wrote: > On Sat, Nov 26, 2011 at 4:33 PM, Mike Frysinger wrote: >> On Saturday 26 November 2011 19:07:44 Khem Raj wrote: >>> If I build the root file system without this patch everything works >>> as expected. Could you explain why this commit is needed ? >> >> it's a

Re: Regression caused by commit 7682323a3a798d6f15708f228f859a64cb869aa3

2011-11-28 Thread Carmelo AMOROSO
On 28/11/2011 3.15, Khem Raj wrote: > On Sat, Nov 26, 2011 at 4:33 PM, Mike Frysinger wrote: >> On Saturday 26 November 2011 19:07:44 Khem Raj wrote: >>> If I build the root file system without this patch everything works >>> as expected. Could you explain why this commit is needed ? >> >> it's a

[PATCH v2 0/2] Make link-local addresses resolvable via running avahi-daemon

2011-11-28 Thread Nikolaus Voss
For a description, see patch 2/2. Changes: v2: review comments from Mike Frysinger: i) added local include ii) code cleanup patch 1/2: add space for alias pointers in gethostbyaddr_r Nikolaus Voss (2): gethostbyaddr_r: add space for alias pointers Make link-local addresses re

[PATCH v2 1/2] gethostbyaddr_r: add space for alias pointers

2011-11-28 Thread Nikolaus Voss
addr_list and alias where on the same buffer offset. This led to corrupt addr_list which was overwritten by the resolved name. Signed-off-by: Nikolaus Voss --- libc/inet/resolv.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c ind

[PATCH v2 2/2] Make link-local addresses resolvable via running avahi-daemon

2011-11-28 Thread Nikolaus Voss
nss-mdns is an extension to glibc to support resolution of link-local (.local) addresses via GNU Name Service Switch (NSS) which redirects the queries to a running avahi-daemon, which in turn does the resolution via multicast DNS (mdns). However, this does not work for uClibc, as it does not suppo

RE: [PATCH v2 1/2] gethostbyaddr_r: add space for alias pointers

2011-11-28 Thread Voss, Nikolaus
Nikolaus Voss wrote on 2011-11-28: > alias = (char **)buf; > + buf += sizeof(*addr_list) * 2; > + buflen -= sizeof(*addr_list) * 2; this should be sizeof(alias) instead of sizeof(*addr_list) of course. Niko ___ uClibc mailing list uClibc@

Re: Regression caused by commit 7682323a3a798d6f15708f228f859a64cb869aa3

2011-11-28 Thread Khem Raj
On Mon, Nov 28, 2011 at 5:21 AM, Carmelo AMOROSO wrote: > On 28/11/2011 3.15, Khem Raj wrote: >> On Sat, Nov 26, 2011 at 4:33 PM, Mike Frysinger wrote: >>> On Saturday 26 November 2011 19:07:44 Khem Raj wrote: If I build the root file system without this patch everything works as expect

static link with NPTL on ARM fails

2011-11-28 Thread Johannes Stezenbach
Hi, I'm in the process of building a toolchain with crosstool-ng, with uClibc-0.9.32 + NPTL for ARM926EJ-S. Trying to statically link a simple testcase with NPTL fails: $ cat t.c #include int main(int argc, char *argv[]) { return (int)pthread_create; } $ arm-linux-gcc -Wall -Os t.c -lp

Re: static link with NPTL on ARM fails

2011-11-28 Thread Bernhard Reutner-Fischer
On Nov 28, 2011 6:43 PM, "Johannes Stezenbach" wrote: > > Hi, > > I'm in the process of building a toolchain with crosstool-ng, > with uClibc-0.9.32 + NPTL for ARM926EJ-S. > > Trying to statically link a simple testcase with NPTL fails: > > $ cat t.c > #include > > int main(int argc, char *argv[]

Re: abort() missing return-address => useless core file

2011-11-28 Thread Khem Raj
On (27/11/11 17:11), Grant Edwards wrote: > On 2011-11-27, Joseph S. Myers wrote: > > On Sun, 27 Nov 2011, Grant Edwards wrote: > > > >> Gcc has the same problem with abort() on ARM. See this thread: > > > > It was fixed by: > > > > 2009-11-23 Paul Brook > > > > * config/arm/arm.c (arm

Re: abort() missing return-address => useless core file

2011-11-28 Thread Grant Edwards
On 2011-11-29, Khem Raj wrote: > On (27/11/11 17:11), Grant Edwards wrote: > >> So, the problem will go away with gcc 4.5! I guess we'll just wait >> until CT-NG supports 4.5. > > ct-ng support is now upto 4.6 FWIW Odd. I downloaded what I thought was the current release last week, and it only

Re: abort() missing return-address => useless core file

2011-11-28 Thread Khem Raj
On Mon, Nov 28, 2011 at 6:35 PM, Grant Edwards wrote: > On 2011-11-29, Khem Raj wrote: >> On (27/11/11 17:11), Grant Edwards wrote: >> >>> So, the problem will go away with gcc 4.5!  I guess we'll just wait >>> until CT-NG supports 4.5. >> >> ct-ng support is now upto 4.6 FWIW > > Odd.  I downloa

Re: abort() missing return-address => useless core file

2011-11-28 Thread Mike Frysinger
On Sunday 27 November 2011 11:09:55 Joseph S. Myers wrote: > On Sun, 27 Nov 2011, Grant Edwards wrote: > > Gcc has the same problem with abort() on ARM. See this thread: > It was fixed by: > > 2009-11-23 Paul Brook > > * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special

Re: [PATCH v2 2/2] Make link-local addresses resolvable via running avahi-daemon

2011-11-28 Thread Mike Frysinger
On Monday 28 November 2011 10:22:42 Nikolaus Voss wrote: > --- a/extra/Configs/Config.in > +++ b/extra/Configs/Config.in > > +config UCLIBC_HAS_AVAHI_RES > + default y this should not default to "on" ;) > + depends on UCLIBC_HAS_SOCKET i think this should be: depends on UCLIBC_H

Re: [PATCH v2 1/2] gethostbyaddr_r: add space for alias pointers

2011-11-28 Thread Mike Frysinger
On Monday 28 November 2011 11:25:49 Voss, Nikolaus wrote: > Nikolaus Voss wrote on 2011-11-28: > > alias = (char **)buf; > > > > + buf += sizeof(*addr_list) * 2; > > + buflen -= sizeof(*addr_list) * 2; > > this should be sizeof(alias) instead of sizeof(*addr_list) of course. i bet someon

Re: prelink breaks fdpic support in a bunch of places

2011-11-28 Thread Mike Frysinger
On Monday 28 November 2011 07:18:50 Filippo ARCIDIACONO wrote: > Definitively it needs to review handling of DL_LOADDADDR_TYPE variables > To extend the prelink support also for fdpic archs. atm, i don't think anyone is running FDPIC on systems with virtual memory. if you don't have virtual memo

Re: abort() missing return-address => useless core file

2011-11-28 Thread Grant Edwards
On 2011-11-29, Khem Raj wrote: > On Mon, Nov 28, 2011 at 6:35 PM, Grant Edwards > wrote: >> On 2011-11-29, Khem Raj wrote: >>> On (27/11/11 17:11), Grant Edwards wrote: >>> So, the problem will go away with gcc 4.5! ??I guess we'll just wait until CT-NG supports 4.5. >>> >>> ct-ng suppo

Re: [PATCH v2 2/2] Make link-local addresses resolvable via running avahi-daemon

2011-11-28 Thread Bernhard Reutner-Fischer
On Nov 29, 2011 6:04 AM, "Mike Frysinger" wrote: > > On Monday 28 November 2011 10:22:42 Nikolaus Voss wrote: > > --- a/extra/Configs/Config.in > > +++ b/extra/Configs/Config.in > > > > +config UCLIBC_HAS_AVAHI_RES > > + default y > > this should not default to "on" ;) > > > + depends on U