From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13875 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Doug Crawford Newsgroups: gmane.linux.lib.musl.general Subject: luajit musl ppc32 bss-plt Date: Wed, 27 Feb 2019 05:17:56 +0000 (UTC) Message-ID: <120872320.5764335.1551244676399@mail.yahoo.com> References: <120872320.5764335.1551244676399.ref@mail.yahoo.com> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5764334_622372306.1551244676397" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="231448"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-13891-gllmg-musl=m.gmane.org@lists.openwall.com Wed Feb 27 06:19:30 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1gyrcv-000y7s-LN for gllmg-musl@m.gmane.org; Wed, 27 Feb 2019 06:19:29 +0100 Original-Received: (qmail 6007 invoked by uid 550); 27 Feb 2019 05:19:27 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 5975 invoked from network); 27 Feb 2019 05:19:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1551244754; bh=z/m8EtGhOWq16R8xy0RVGhNakT2BvXFui1hAbT8ylUU=; h=Date:From:To:Subject:References:From:Subject; b=I9nRnvtdgtYp692esoR2BpzCloUUjdUAdajCAUFXBDpv8eN9VmUt8H5fA+HE+23Z2Ah5DSi1r6SciABm0q7tQtnyu2RFcVAYVlsidB2SVARD6KIS/AzVm4w99Aau8xSKzccMbJIfE9daoSOyu8KK+w5IdpgIHvDB3EN+66hKGToVi//c2+pYC+qoTl4Fm9pHthB7yNf444p/Nt5Kj3Ozsboq1hstdvPqsO2IMUzJi+gfGarU/145rSdXc/EILfY5UFcJtouUhLLgljenwVbP6YMdRi5nJoqm6TuaIKNdmAboLGx7gknUs3feqx3Sk1w6F13N8YHvbHmo1sDeON8ksw== X-YMail-OSG: MGZrFGcVM1nyTPsNwBJeA6WNWainSj62uWqattFIao7CQrAShGi80P4QICYY8nJ HfZcIbgGpsjidwhnjTj7TDAl8LFXWYYV0zuFdh3pgHLt4V8VGQtPM5Or1SwY9wyq83qSMv6DeI6v 4DbKowJeLv8BreL7z.3hyb3.3lkRw4KUupQgmT0VSMdg6D57O0HXRo4bqM7vYPg7XohNAzx8.8EQ Lw8964O4N0jTlJAooJ47z593Vd68W1NQ6q4hFS6GtK.cEi3st06YIEazpKHuU8BV0vNVIkjpQSPm fh5XOlxtIo3bORdL7Veots0HmakUDHPIsiEZ9MieYqkPswoehT1MNFgCxdzgryDFYo3Z5H_C00d. QWc4aHAFhsJdMjQTXoV5XPhX3ErL5VXzjB1sOjquMNIQmAklb3kyZRcpbqUnV2LdVAEYqPhwyrJB s_JLeynEToxC.MWduMBG5poG07KI13AfFAp719tHh8hjCjjeCIKpgOZP5D.Gk9aUKiE_oP60dR5O oe87IPZ7gjpXRA67J2cX9uToo939T4t50jLDFIm_2r4VFx9aAhVHnSugq861XdMGzsosV0eeIDYl 7lI2SlcvqU7WsfYVc0e6i4u97xSr8rpPFVuYn2r782mD0xmRV9rj0k_zpDfpJQundODOuR1_sOSD b5rMIgswaxjm6CL_WvNPLYL0vapVboL4Si_xYMJBK872urEoRjsVg__az865tAw0r2eYx6pDurNY Do4xr4jDi7l9Mnmb434S3yeBEvSuhTMj1lbz.78nf2.RzPPk77ryCMC_kz6R07jhiKKPd4wy8Q7. bT3s_3SEm_exqREkeXk965t9ZIZCVLjKHMCbRq0.ew X-Mailer: WebService/1.1.13123 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36 Xref: news.gmane.org gmane.linux.lib.musl.general:13875 Archived-At: ------=_Part_5764334_622372306.1551244676397 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Just wondering if anyone else was successful in running luajit with musl on= ppc32. I have pretty much everything else working on our ppc32 target with musl ex= cept=C2=A0luajit which segfaults very early in __register_frame_info@got.pl= t During the luajit build I noticed this output:DYNLINK=C2=A0 =C2=A0libluajit= .so../powerpc-buildroot-linux-musl/bin/ld: bss-plt forced due to lj_vm.o I am guessing that something in luajit-2.0.5/src/lj_vm.s is forcing the lin= ker to use the=C2=A0older bss-plt. But, musl only supports secure-plt so th= is probably is not going to work. Here is the gdb backtrace when I run luajit: Core was generated by `luajit'.Program terminated with signal SIGSEGV, Segm= entation fault.#0=C2=A0 0xb793b168 in ?? ()(gdb) set solib-search-path targ= et/usr/lib/Reading symbols from /home/dev/atc/buildroot/output/eb8248/targe= t/usr/lib/libluajit-5.1.so.2.1.0...done.(gdb) bt#0=C2=A0 0xb793b168 in __re= gister_frame_info@got.plt ()=C2=A0 =C2=A0from /home/dev/atc/buildroot/outpu= t/eb8248/target/usr/lib/libluajit-5.1.so.2.1.0#1=C2=A0 0xb78c1628 in frame_= dummy ()=C2=A0 =C2=A0from /home/dev/atc/buildroot/output/eb8248/target/usr/= lib/libluajit-5.1.so.2.1.0#2=C2=A0 0xb78c119c in _init () from /home/dev/at= c/buildroot/output/eb8248/target/usr/lib/libluajit-5.1.so.2.1.0#3=C2=A0 0xb= 79a9184 in do_init_fini ()=C2=A0 =C2=A0from /opt/toolchain/ctng-7.4.0-power= pc-603e-linux-musl/powerpc-603e-linux-musl/sysroot/lib/ld-musl-powerpc.so.1= #4=C2=A0 0xb795bf50 in libc_start_main_stage2 ()=C2=A0 =C2=A0from /opt/tool= chain/ctng-7.4.0-powerpc-603e-linux-musl/powerpc-603e-linux-musl/sysroot/li= b/ld-musl-powerpc.so.1#5=C2=A0 0xb795bfc0 in __libc_start_main ()=C2=A0 =C2= =A0from /opt/toolchain/ctng-7.4.0-powerpc-603e-linux-musl/powerpc-603e-linu= x-musl/sysroot/lib/ld-musl-powerpc.so.1#6=C2=A0 0x10000eec in _start_c ()#7= =C2=A0 0x10000eb8 in _start () ------=_Part_5764334_622372306.1551244676397 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Just wondering if = anyone else was successful in running luajit with musl on ppc32.

I have pretty much everything else working on = our ppc32 target with musl except 
luajit which segfaults ve= ry early in __register_frame_info@got.plt

=
During the luajit build I noticed this output:
=
DYNLINK   libluajit.so
../powerpc-buil= droot-linux-musl/bin/ld: bss-plt forced due to lj_vm.o

=
I am guessing that something in luajit-2.0.5/src/lj_vm.s is forcing the linker to use the 
older bss-plt. But, musl o= nly supports secure-plt so this probably is not going to work.
Here is the gdb backtrace when I run luajit:

Core was generated by `luajit'.
Program term= inated with signal SIGSEGV, Segmentation fault.
#0  0xb793b1= 68 in ?? ()
(gdb) set solib-search-path target/usr/lib/
Reading symbols from /home/dev/atc/buildroot/output/eb8248/target/usr/lib/= libluajit-5.1.so.2.1.0...done.
(gdb) bt
#0  0xb793= b168 in __register_frame_info@got.plt ()
   from /home/= dev/atc/buildroot/output/eb8248/target/usr/lib/libluajit-5.1.so.2.1.0
=
#1  0xb78c1628 in frame_dummy ()
   from /hom= e/dev/atc/buildroot/output/eb8248/target/usr/lib/libluajit-5.1.so.2.1.0
#2  0xb78c119c in _init () from /home/dev/atc/buildroot/output/= eb8248/target/usr/lib/libluajit-5.1.so.2.1.0
#3  0xb79a9184 = in do_init_fini ()
   from /opt/toolchain/ctng-7.4.0-po= werpc-603e-linux-musl/powerpc-603e-linux-musl/sysroot/lib/ld-musl-powerpc.s= o.1
#4  0xb795bf50 in libc_start_main_stage2 ()
&n= bsp;  from /opt/toolchain/ctng-7.4.0-powerpc-603e-linux-musl/powerpc-6= 03e-linux-musl/sysroot/lib/ld-musl-powerpc.so.1
#5  0xb795bf= c0 in __libc_start_main ()
   from /opt/toolchain/ctng-= 7.4.0-powerpc-603e-linux-musl/powerpc-603e-linux-musl/sysroot/lib/ld-musl-p= owerpc.so.1
#6  0x10000eec in _start_c ()
#7 = 0x10000eb8 in _start ()

------=_Part_5764334_622372306.1551244676397--