Skip to contentSkip to conversation

uclibc-ng: enable context functions

PATCH New Waldemar Brodkorb 3 participants 5 messages May 6, 2015 – May 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uclibc-ng: enable context functions

For mongrel2/libsigsegv we need to enable this in the uClibc-ng config. Tested with ARM:

file output/target/usr/bin/mongrel2
output/target/usr/bin/mongrel2: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped

Should fix:
http://autobuild.buildroot.net/results/a144bc6024415a5272c3cbe60ff636d078d0a555/
http://autobuild.buildroot.net/results/00195d89a115a314bf4916af127407f61cd1b418/
http://autobuild.buildroot.net/results/5ee7e83ebcfa43f6ee0a2a8b9f40f1ae84664aca/

---
 package/uclibc/uClibc-ng.config |    1 +
 1 file changed, 1 insertion(+)
package/uclibc/uClibc-ng.config +1 -0
index c6e7ff9..b1f039a 100644
@@ -117,6 +117,7 @@ UCLIBC_DYNAMIC_ATEXIT=y
 # COMPAT_ATEXIT is not set
 UCLIBC_SUSV2_LEGACY=y
 UCLIBC_SUSV3_LEGACY=y
+UCLIBC_HAS_CONTEXT_FUNCS=y
 # UCLIBC_SUSV3_LEGACY_MACROS is not set
 UCLIBC_SUSV4_LEGACY=y
 # UCLIBC_STRICT_HEADERS is not set
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 uclibc-ng: enable context functions

Dear Waldemar Brodkorb,

Quoted 11 lines · Waldemar Brodkorb

For mongrel2/libsigsegv we need to enable this in the uClibc-ng config. Tested with ARM:

file output/target/usr/bin/mongrel2
output/target/usr/bin/mongrel2: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped

Should fix:
http://autobuild.buildroot.net/results/a144bc6024415a5272c3cbe60ff636d078d0a555/
http://autobuild.buildroot.net/results/00195d89a115a314bf4916af127407f61cd1b418/
http://autobuild.buildroot.net/results/5ee7e83ebcfa43f6ee0a2a8b9f40f1ae84664aca/

Quoted 4 lines
---
 package/uclibc/uClibc-ng.config |    1 +
 1 file changed, 1 insertion(+)

We don't have this option enabled in uClibc-0.9.33.config. Should I assume that it's because this option doesn't exist in the 0.9.33.x uClibc branch?

Also, why don't we have this option enabled in uClibc-snapshot.config?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 uclibc-ng: enable context functions

Thomas, All,

On 2015-05-06 21:23 +0200, Thomas Petazzoni spake thusly:

Quoted 12 lines · Waldemar Brodkorb
Quoted 11 lines

For mongrel2/libsigsegv we need to enable this in the uClibc-ng config. Tested with ARM:

file output/target/usr/bin/mongrel2
output/target/usr/bin/mongrel2: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped

Should fix:
http://autobuild.buildroot.net/results/a144bc6024415a5272c3cbe60ff636d078d0a555/
http://autobuild.buildroot.net/results/00195d89a115a314bf4916af127407f61cd1b418/
http://autobuild.buildroot.net/results/5ee7e83ebcfa43f6ee0a2a8b9f40f1ae84664aca/

Quoted 8 lines
Quoted 4 lines
---
 package/uclibc/uClibc-ng.config |    1 +
 1 file changed, 1 insertion(+)

We don't have this option enabled in uClibc-0.9.33.config. Should I assume that it's because this option doesn't exist in the 0.9.33.x uClibc branch?

Yes, context stuff is only on master (added 2013-01-09).

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/1 uclibc-ng: enable context functions

In reply to Thomas Petazzoni

Hi Thomas,
Thomas Petazzoni wrote,

Quoted 14 lines

Dear Waldemar Brodkorb,

Quoted 11 lines · Waldemar Brodkorb

For mongrel2/libsigsegv we need to enable this in the uClibc-ng config. Tested with ARM:

file output/target/usr/bin/mongrel2
output/target/usr/bin/mongrel2: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped

Should fix:
http://autobuild.buildroot.net/results/a144bc6024415a5272c3cbe60ff636d078d0a555/
http://autobuild.buildroot.net/results/00195d89a115a314bf4916af127407f61cd1b418/
http://autobuild.buildroot.net/results/5ee7e83ebcfa43f6ee0a2a8b9f40f1ae84664aca/

Quoted 8 lines
Quoted 4 lines
---
 package/uclibc/uClibc-ng.config |    1 +
 1 file changed, 1 insertion(+)

We don't have this option enabled in uClibc-0.9.33.config. Should I assume that it's because this option doesn't exist in the 0.9.33.x uClibc branch?

Right, it was added later:
http://git.uclibc.org/uClibc/commit/extra/Configs/Config.in?id=a8dc90eaaa5e6474beac828558d969b1aafee4af

Quoted 1 line

Also, why don't we have this option enabled in uClibc-snapshot.config?

I don't know how often this file get updated?

BTW: These functions are only available for arm/mips/x86/x86_64.

So mongrel2/libsigsegv need to be fixed to these, when uClibc is choosen.

best regards
Waldemar

#4 lore raw

PATCH 1/1 uclibc-ng: enable context functions

Dear Waldemar Brodkorb,

Quoted 6 lines · Waldemar Brodkorb
Quoted 3 lines

We don't have this option enabled in uClibc-0.9.33.config. Should I assume that it's because this option doesn't exist in the 0.9.33.x uClibc branch?

Right, it was added later:
http://git.uclibc.org/uClibc/commit/extra/Configs/Config.in?id=a8dc90eaaa5e6474beac828558d969b1aafee4af

Ok, thanks.

Quoted 3 lines
Quoted 1 line

Also, why don't we have this option enabled in uClibc-snapshot.config?

I don't know how often this file get updated?

I'd say quite regularly, since it is used for the ARC and Xtensa builds.

Can you send an updated version of your patch that also updates uClibc-snapshot.config ?

Thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com