From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9FE863858C74; Tue, 4 Oct 2022 02:39:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9FE863858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664851143; bh=JMX2eUCIfS/v5TXvQRb6ceB7/OhSFhSbeaZqQXEk1Uw=; h=From:To:Subject:Date:From; b=tu8bdhB7x5KDJhcf66Y2gldB9Rz4vtOOVjeGqEIxKPGCLlyCVqiaQLJjuM3tlfCSK IUEEHLQgDG34cCNn/2ooR/adyi035f+WRsyP8KciixQM4anN4G2MEzW6ccB/7goWhI ++3akT0X5M8QbR1NuKOuBMKopXLlJpimDlBzc/Jk= From: "rui314 at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29651] New: glibc can't handle IRELATIVE in .rel.plt only on ARM32 and PPC Date: Tue, 04 Oct 2022 02:39:02 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rui314 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29651 Bug ID: 29651 Summary: glibc can't handle IRELATIVE in .rel.plt only on ARM32 and PPC Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: rui314 at gmail dot com CC: drepper.fsp at gmail dot com Target Milestone: --- It looks like glibc is inconsistent in terms of whether it accepts IRELATIVE relocations in .rel.plt or not. The majority of its ports support it, thoug= h it rejects it with the "unexpected PLT reloc type" error on ARM32 and PPC64. Compare=20 https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dsysdeps/x86_64/dl-ma= chine.h;h=3D005d089501fa78654e16103de9ec901af7be4ff2;hb=3DHEAD#l530 with https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dsysdeps/arm/dl-machi= ne.h;h=3Db0521c15496b9967a1c00a0ca7214bad2337be14;hb=3DHEAD#l498 as an example. ARM doesn't handle R_ARM_IRELATIVE in .rel.plt. Among the targets that support GNU IFUNC, the following implementations acc= ept IRELATIVE relocations in .rel.plt: sysdeps/aarch64/dl-machine.h sysdeps/i386/dl-machine.h sysdeps/s390/s390-32/dl-machine.h sysdeps/s390/s390-64/dl-machine.h sysdeps/sparc/sparc32/dl-machine.h sysdeps/sparc/sparc64/dl-machine.h sysdeps/x86_64/dl-machine.h The following don't: sysdeps/arm/dl-machine.h sysdeps/powerpc/powerpc64/dl-machine.h So I guess this is a bug in ARM32 and PPC64 ports of glibc? --=20 You are receiving this mail because: You are on the CC list for the bug.=