From owner-freebsd-bugs@freebsd.org Thu Jul 2 19:53:04 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 137F535EDCB for ; Thu, 2 Jul 2020 19:53:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49yTKW6swHz4FhK for ; Thu, 2 Jul 2020 19:53:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id EBDCC35EDCA; Thu, 2 Jul 2020 19:53:03 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EBA3F35ED4D for ; Thu, 2 Jul 2020 19:53:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49yTKW5yrjz4Fvl for ; Thu, 2 Jul 2020 19:53:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 97C111FDAD for ; Thu, 2 Jul 2020 19:53:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 062Jr3FV011089 for ; Thu, 2 Jul 2020 19:53:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 062Jr3nj011088 for bugs@FreeBSD.org; Thu, 2 Jul 2020 19:53:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 247724] ld-elf.so.1: Unsupported relocation type 42 in non-PLT relocations [clang, llvm-devel-11.0.d20200519] Date: Thu, 02 Jul 2020 19:53:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nicholas.h.briggs@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.mimetype 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-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2020 19:53:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247724 Bug ID: 247724 Summary: ld-elf.so.1: Unsupported relocation type 42 in non-PLT relocations [clang, llvm-devel-11.0.d20200519] Product: Base System Version: 12.1-RELEASE Hardware: i386 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: nicholas.h.briggs@gmail.com Attachment #216152 text/plain mime type: Created attachment 216152 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D216152&action= =3Dedit C source test case The attached test case, ifunc.c (a test case from valgrind) compiled with $ clang-devel --version clang version 11.0.0=20 Target: i386-portbld-freebsd12.1 Thread model: posix InstalledDir: /usr/local/llvm-devel/bin (package info: llvm-devel-11.0.d20200519) $ clang-devel -o ifunc ifunc.c generates: $ ./ifunc ld-elf.so.1: [...]/ifunc: Unsupported relocation type 42 in non-PLT relocat= ions $ readelf -r ifunc Relocation section (.rel.dyn): r_offset r_info r_type st_value st_name 00403918 0000002a R_386_IRELATIVE 00000000=20 Relocation section (.rel.plt): r_offset r_info r_type st_value st_name 00403908 00000307 R_386_JUMP_SLOT 004017e0 _init_tls 0040390c 00000607 R_386_JUMP_SLOT 004017f0 exit 00403910 00000407 R_386_JUMP_SLOT 00401800 atexit 00403914 00000707 R_386_JUMP_SLOT 00401810 printf The same code compiled with clang8 (default compiler on 12.1-RELEASE) shows $ readelf -r ifunc Relocation section (.rel.plt): r_offset r_info r_type st_value st_name 0040201c 00000307 R_386_JUMP_SLOT 00401380 _init_tls 00402020 00000607 R_386_JUMP_SLOT 00401390 exit 00402024 00000407 R_386_JUMP_SLOT 004013a0 atexit 00402028 00000707 R_386_JUMP_SLOT 004013b0 printf 0040202c 0000002a R_386_IRELATIVE 00000000 --=20 You are receiving this mail because: You are the assignee for the bug.=