From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13375 invoked by alias); 10 Nov 2013 17:22:26 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 13297 invoked by uid 48); 10 Nov 2013 17:22:21 -0000 From: "ilmalakhov at yandex dot ru" To: glibc-bugs@sourceware.org Subject: [Bug libc/16150] New: __mpn_mul_1 and others resolve to VIS3 optimized routines at hosts without VIS3 insns available in non-shared case Date: Sun, 10 Nov 2013 17:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.18 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ilmalakhov at yandex dot ru X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg00079.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16150 Bug ID: 16150 Summary: __mpn_mul_1 and others resolve to VIS3 optimized routines at hosts without VIS3 insns available in non-shared case Product: glibc Version: 2.18 Status: NEW Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: ilmalakhov at yandex dot ru CC: drepper.fsp at gmail dot com Hi There seems to be a misprint in `sysdeps/sparc/sparc64/multiarch/mul_1.S' and a number of similar files added by the commit `32fcb36dbf4f729d0b0e6d5c386fd1d68486463d', which makes statically-linked programs executing at hosts lacking VIS3 insns crash with SIGILL. As one can see, the resolver function below returns a pointer to `__mpn_mul_1_vis3' in non-shared case even if `(_dl_hwcap & HWCAP_SPARC_VIS3) == 0'. $ cat sysdeps/sparc/sparc64/multiarch/mul_1.S . . . ENTRY(__mpn_mul_1) .type __mpn_mul_1, @gnu_indirect_function . . . set HWCAP_SPARC_VIS3, %o1 andcc %o0, %o1, %g0 be 1f . . . 1: # ifdef SHARED sethi %gdop_hix22(__mpn_mul_1_generic), %o1 xor %o1, %gdop_lox10(__mpn_mul_1_generic), %o1 # else set __mpn_mul_1_vis3, %o1 # endif -- You are receiving this mail because: You are on the CC list for the bug.