From owner-freebsd-ports-bugs@freebsd.org Wed Nov 15 19:48:45 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2921CDE5554 for ; Wed, 15 Nov 2017 19:48:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1653C77D32 for ; Wed, 15 Nov 2017 19:48:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAFJmiDi032718 for ; Wed, 15 Nov 2017 19:48:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 223688] lang/luajit: Ensure the .strtab section written by bcsave.lua is the correct size Date: Wed, 15 Nov 2017 19:48:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: osa@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2017 19:48:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223688 Bug ID: 223688 Summary: lang/luajit: Ensure the .strtab section written by bcsave.lua is the correct size Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: osa@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: osa@FreeBSD.org Flags: maintainer-feedback?(osa@FreeBSD.org) Created attachment 188029 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188029&action= =3Dedit Fix lang/luajit object file .strtab size When luajit writes a ELF object file (using the -b option), it sets the siz= e of the .strtab section one byte too short. In function bcsave_elfobj(), the offset of the .rodata section after .strtab is already calculated correctly, but the size of .strtab itself is one byte too small. Even though there is= a zero byte after the last string in the table, the short size causes lld (the LLVM linker) to show an error message similar to: ld: error: obj/bytecode.o: string table non-null terminated See also https://github.com/LuaJIT/LuaJIT/pull/366, and bug 214864 (specifically the benchmarks/wrk failure). --=20 You are receiving this mail because: You are the assignee for the bug.=