From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5F1153858C52; Wed, 22 Mar 2023 16:58:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F1153858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679504315; bh=iz+oNej58P3dGPc1fL/LFRNeiqYzs5yPkc0C+7pCD3A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Z7IMvpxrvthLiaO7cu1j3L+y51Pql+KsCmnA6xbj+l5eu2PwC2N9RDv5hMvwxM+A9 kTX4CCD73wVZl6WNlljmZQmzJ9O7BwEyaV9RukRN+YpozjG4ljha8MUHlYxuHSpZVW dut8HQIojnhF2AzG+9TBg19RIOwYAHJErlxU5zv0= From: "jemarch at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107848] libbpf: ELF relo #0 in section #7 has unexpected type 12 Date: Wed, 22 Mar 2023 16:58:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jemarch at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107848 Jose E. Marchesi changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Jose E. Marchesi --- This was due to a binutils bug. Fixed by the following binutils upstream commits: commit 5f784ec9277e9303eee3ce366c40ce9fa3203f3e Author: Cupertino Miranda Date: Fri Mar 17 15:29:36 2023 +0000 Changed ld and gas BPF tests Recent BPF patch removed and renamed the list of relocations based on the limitations of BPF instruction set. This patch is a correction to the tests. commit 551fde0ae1691a74e1fdfb2bd33e8453106c0c87 Author: Cupertino Miranda Date: Fri Mar 17 15:27:02 2023 +0000 Reloc howto access broken for BPF Forgot to change the logic to access the reloc howto from bpf_elf_relocate_section. Problem was introduced in previous BPF commit. commit 5e4c7a839d1c0d68a4a518cf2dc8e87925575e58 Author: Cupertino Miranda Date: Thu Mar 16 08:39:52 2023 +0000 BPF relocations review / refactoring - Removed not needed relocations. - Renamed relocations to match llvm and linux kernel. Relocation changes: R_BPF_INSN_64 =3D> R_BPF_64_64 R_BPF_INSN_DISP32 =3D> R_BPF_64_32 R_BPF_DATA_32 =3D> R_BPF_64_ABS32 R_BPF_DATA_64 =3D> R_BPF_64_ABS64=