From patchwork Sun Mar 13 07:59:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 5157 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1788C433EF for ; Sun, 13 Mar 2022 07:59:35 +0000 (UTC) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mx.groups.io with SMTP id smtpd.web12.13258.1647158375291988131 for ; Sat, 12 Mar 2022 23:59:35 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hkmRQ56v; spf=pass (domain: gmail.com, ip: 209.85.216.46, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f46.google.com with SMTP id 15-20020a17090a098f00b001bef0376d5cso11768687pjo.5 for ; Sat, 12 Mar 2022 23:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FDkXbBCXX0fXW4qA39yB0TTO6PZzLQHVGiFW5m4J75o=; b=hkmRQ56vxacxNO19FWmWwdmbd9v4CJpuBfj1tuoeTYXIaJe34z69xqd/Qq9PFo1UE6 a5J1lmSfpOaZwE5mOhuLmj87B6hocoJjTyMNG1y5z2+7tROHAShrNEyBMzNL4M6Q5XBy HJO6p4NPFsEXSHN4KPFc7xO/Zz8mJcAwqXWMIscTgX8FXy2b8UuGns5jUNsQkD7SN1wL 0aJaUbmedyBd812R+hExOhPowhvKvRVTMDUcvBWM4jjNl4/rRnfa4lkotnRX5l7J5iQs tfUTM7c0zgBKbcmnriublUbUxUmrES4ibLF3/FnbliHKy1jlObd7tWqXE4ec/0BpOfaJ xm+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FDkXbBCXX0fXW4qA39yB0TTO6PZzLQHVGiFW5m4J75o=; b=LdVrzOEs42GjlVmzxNy9HJOjcM2/lNJjv7RKCn8o3XYoRh3DucaxetDfEYGTv8gl/v bKczydylH5ttYWZbdzrf40WxzsCiWSbcAv4jjbRM6AZeZz1jcbRo4IpFhgSUwk25kBfz hDVsnvT9DgN0jICEpPAwVk8ETVKI/E5cbRUCpkUpwfwPSxzh5MUa/UE7nPTwryhrtm/V 7QK0goXt6mZkV0Cpop5XKE0Kh+xxTc78XeAK3vAF7L0DfOKE5R6lzd5M4WOTI7b74sSP C9+ZAmuBkI/UmyEE61ylALy2+b0avgaLz2KF4Y+RxT7PynT4nYsxPD+9g4wOO6Ou+1LU msAA== X-Gm-Message-State: AOAM5308iNNjISFD7lwGc2amPwP9rSoRxWEYj51F7/fpsCtX4dLtIgTd jNdcJ6Irkj4KELyPcaGwmrHlguH3ublUXw== X-Google-Smtp-Source: ABdhPJwH36/rsVA6EIiwgZQwqLNwTQYayP3kveNj34wxVlbOF7Sja2SKm6lr8HAwQj3Y+VFMxSicRg== X-Received: by 2002:a17:902:e943:b0:14f:4a2b:203 with SMTP id b3-20020a170902e94300b0014f4a2b0203mr18572819pll.113.1647158374457; Sat, 12 Mar 2022 23:59:34 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::781b]) by smtp.gmail.com with ESMTPSA id g28-20020a63111c000000b00374646abc42sm12958928pgl.36.2022.03.12.23.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Mar 2022 23:59:34 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 1/3] gcompat: Do not use static-pie on ppc Date: Sat, 12 Mar 2022 23:59:30 -0800 Message-Id: <20220313075932.3031649-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 13 Mar 2022 07:59:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/163102 It fails currently with binutils 2.38 powerpc-yoe-linux-musl-ld: read-only segment has dynamic relocations Signed-off-by: Khem Raj --- ...Static-PIE-does-not-work-on-musl-ppc.patch | 30 +++++++++++++++++++ meta/recipes-core/musl/gcompat_git.bb | 7 +++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-core/musl/gcompat/0001-make-Static-PIE-does-not-work-on-musl-ppc.patch diff --git a/meta/recipes-core/musl/gcompat/0001-make-Static-PIE-does-not-work-on-musl-ppc.patch b/meta/recipes-core/musl/gcompat/0001-make-Static-PIE-does-not-work-on-musl-ppc.patch new file mode 100644 index 00000000000..1d731163d07 --- /dev/null +++ b/meta/recipes-core/musl/gcompat/0001-make-Static-PIE-does-not-work-on-musl-ppc.patch @@ -0,0 +1,30 @@ +From 01180e78fe9568e7fb2673ba61801c42f0f70115 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 11 Mar 2022 10:37:51 -0800 +Subject: [PATCH] make: Static PIE does not work on musl/ppc + +Fixes linker error e.g. +"read-only segment has dynamic relocations" + +Upstream-Status: Inappropriate [OE specific] +Signed-off-by: Khem Raj +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index cbb7634..69ee228 100644 +--- a/Makefile ++++ b/Makefile +@@ -76,7 +76,7 @@ ${LIBGCOMPAT_NAME}: ${LIBGCOMPAT_OBJ} + ${LIBGCOMPAT_OBJ}: ${LIBGCOMPAT_INCLUDE} + + ${LOADER_NAME}: ${LOADER_OBJ} +- ${CC} ${CFLAGS} ${LDFLAGS} -static-pie -o ${LOADER_NAME} ${LOADER_OBJ} ++ ${CC} ${CFLAGS} ${LDFLAGS} -static -o ${LOADER_NAME} ${LOADER_OBJ} + + .c.o: + ${CC} ${CPPFLAGS} ${CFLAGS} -c -D_BSD_SOURCE \ +-- +2.35.1 + diff --git a/meta/recipes-core/musl/gcompat_git.bb b/meta/recipes-core/musl/gcompat_git.bb index cab1a97a84d..962bcd8c75f 100644 --- a/meta/recipes-core/musl/gcompat_git.bb +++ b/meta/recipes-core/musl/gcompat_git.bb @@ -7,8 +7,11 @@ HOMEPAGE = "https://git.adelielinux.org/adelie/gcompat" LICENSE = "NCSA" LIC_FILES_CHKSUM = "file://LICENSE;md5=eb33ef4af05a9c7602843afb7adfe792" -SRC_URI = "git://git.adelielinux.org/adelie/gcompat.git;protocol=https;branch=current" - +SRC_URI = "git://git.adelielinux.org/adelie/gcompat.git;protocol=https;branch=current \ + " +SRC_URI:append:powerpc = "\ + file://0001-make-Static-PIE-does-not-work-on-musl-ppc.patch \ + " PV = "1.0.0+1.1+git${SRCPV}" SRCREV = "4d6a5156a6eb7f56b30d93853a872e36dadde81b" From patchwork Sun Mar 13 07:59:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 5158 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1E39C433F5 for ; Sun, 13 Mar 2022 07:59:36 +0000 (UTC) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mx.groups.io with SMTP id smtpd.web08.13262.1647158376136796499 for ; Sat, 12 Mar 2022 23:59:36 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cNwzTYiA; spf=pass (domain: gmail.com, ip: 209.85.210.173, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f173.google.com with SMTP id u17so9456156pfk.11 for ; Sat, 12 Mar 2022 23:59:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jIAiK6Fc0/3FCmajY9i9sV4yuc81GhUDmf1CU7/gX3g=; b=cNwzTYiA3yGjOFnyNRi/8m3q5ki1WkRfLoT2bfy1+1uQwdxAUXbMZkLtxsStDXVGC5 4arJvfZItxOIXp90YO5zfoS3poTNoI3wHi4f3hfENUW68ZpoJYNh+cZUgIHY2axVsxBH KP/gbig9+8aO2JIDxELOxX51ZjeIUgPUEzugyj6H2pPa/t1LsDF52G9qPQvIfIHpC6xV 8YancQCuk8L4dkJfh1/ncaDnqxXuy10FELlCWYjuX3OdNfAdjAgFzhBaWQaikDiCkxVq 8+8PmIdXwnwfH6SlvbUXJQ9WXlP+IVFiziB5DQBwosz2BLzzYaIi9YJ4eKtP5OthxRZc px1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jIAiK6Fc0/3FCmajY9i9sV4yuc81GhUDmf1CU7/gX3g=; b=7QgV4dnbGDZQDFjD2Js17brSCL9v/kUBo/8N1U4dP8LGlCiKHdPIa9zKstGjcFlFzG HrZPrtoKRwQqUDSq36niNFA1LEvhiSd+EmksZz3rnQi3gukduNHXNIr+Z/4o1MjAnyd5 HE2Ox9B5mrLERu9VBN4oHu5NxJBH3Led5NJo0pDiKo6+nPhB5DUSTdj3YmZMY6ip3fBx ltFqckrz5NTYVyqUI6pxPCNg6thb0lfyMZ9kyh9Io5g/s6EtuDLu7CAUyhJiZgYKJ8yQ Y47QW6753Z7DdYE3usHMS+g11wEwkJfl1TEba4+d5P143lA1I9MtunspsQPCHVlPCBP4 cNZw== X-Gm-Message-State: AOAM530kahdE1+JX4wstf8UUQUXZtVVSQLX6fPQygHPPA3n17ZmaHhgQ pl+B2agK/jfpVRYpUdhbzfociB+n9n1S4Q== X-Google-Smtp-Source: ABdhPJxyrrinWgmaz3+QSU6vqiW1sy4Y72rZeZNc+Lf2fdfPCoAuw77nBCYx6qfgAwqHn6gTSbng7w== X-Received: by 2002:a05:6a00:140b:b0:4e1:2cbd:30ba with SMTP id l11-20020a056a00140b00b004e12cbd30bamr18153585pfu.46.1647158375343; Sat, 12 Mar 2022 23:59:35 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::781b]) by smtp.gmail.com with ESMTPSA id g28-20020a63111c000000b00374646abc42sm12958928pgl.36.2022.03.12.23.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Mar 2022 23:59:34 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 2/3] linux-yocto: Ignore textrels for ppc64 kernel Date: Sat, 12 Mar 2022 23:59:31 -0800 Message-Id: <20220313075932.3031649-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220313075932.3031649-1-raj.khem@gmail.com> References: <20220313075932.3031649-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 13 Mar 2022 07:59:36 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/163103 Signed-off-by: Khem Raj --- meta/recipes-kernel/linux/linux-yocto_5.15.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-kernel/linux/linux-yocto_5.15.bb b/meta/recipes-kernel/linux/linux-yocto_5.15.bb index b9715e71eec..9a147023e83 100644 --- a/meta/recipes-kernel/linux/linux-yocto_5.15.bb +++ b/meta/recipes-kernel/linux/linux-yocto_5.15.bb @@ -66,3 +66,6 @@ KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}" KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}" KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}" + +INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel" + From patchwork Sun Mar 13 07:59:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 5159 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0A2AC433FE for ; Sun, 13 Mar 2022 07:59:37 +0000 (UTC) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mx.groups.io with SMTP id smtpd.web08.13263.1647158376877486972 for ; Sat, 12 Mar 2022 23:59:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XG+Xw1Un; spf=pass (domain: gmail.com, ip: 209.85.215.173, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f173.google.com with SMTP id t14so11149588pgr.3 for ; Sat, 12 Mar 2022 23:59:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2HAHzxvKM7zE4oJmye5WnXVluNoR8gqcz1h5xH5oQuE=; b=XG+Xw1UnjcIhDE/SbZ8LBhXdwo21CL5ea2uk7AMR+EBlTiwccXUU9wkBLx3ddNifPl /VDAtheMa+w05zp2RPpxCpQTRR3KHvhKR+T9xSAMQLftp5RS/yV85r+8LOPaLARS68RG cZ6BgyyMRglr5NM7y8pPN4VzLlPQWzsABfunkK2kYKZXvvz+NbjWi7ue92tTCOoJKFYN dL0O4UF/mEr4GYWgXYCopQxMB3OyS7L1Ndjk8IsBiTlRmuVGovT7Dt4DbhFqWNFCPZR+ rZVb0c9gWZvFYr65l7JlOd4UD06vYswbDB3abf4bnr+zyEorseHuiJfqFxZeMVFUB2iV hgkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2HAHzxvKM7zE4oJmye5WnXVluNoR8gqcz1h5xH5oQuE=; b=PXpcShHgg54xUT/FM3thlqSyUXO2YGrigVa93Tve+yAhz0ekN7GLLxuvE09SLzbgMN krYBRi9tgNb5AGNwjvaxs0SkRWgexWz9ErFSViw+NuSJ1F0nwQ6ZoLbdOSsS77HAsTsy zxlWy+ltkOrkwwuYC712LLtDvnxww/PmwzvNZHaY0va28ZTN3GOxeTylZL/PuUZQtbfQ LL7KAP+2veLVITJJH3i5xsGGkuXB9ymVFt0+nocoZsffSr1/IiR8gPwrDag74IV913+q c5N0CIYEkh+MtCJbNgyEfhLOIadUWw4jxDSDKw5vTqt8y7JXLPc/hZlqGFtSGG60JQRr gpKw== X-Gm-Message-State: AOAM530epXDo+HtVkIwI2liYHg9xcfDJI6KMcN4+iLUp7rNFlQKZg+62 Vg8X4IIlcixM8RRMmZl79Ae3tLgtFkyP7w== X-Google-Smtp-Source: ABdhPJwf2q/qQTju0MHnLzhNtrdYM5N71ZcJLq6vhS4wHUB1N77nndK6DdthLgiMuYEjblPiSdcGLA== X-Received: by 2002:a05:6a00:2405:b0:4e1:5008:adcc with SMTP id z5-20020a056a00240500b004e15008adccmr18655968pfh.35.1647158376155; Sat, 12 Mar 2022 23:59:36 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::781b]) by smtp.gmail.com with ESMTPSA id g28-20020a63111c000000b00374646abc42sm12958928pgl.36.2022.03.12.23.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Mar 2022 23:59:35 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 3/3] binutils: Bump to latest 2.38 release branch Date: Sat, 12 Mar 2022 23:59:32 -0800 Message-Id: <20220313075932.3031649-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220313075932.3031649-1-raj.khem@gmail.com> References: <20220313075932.3031649-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 13 Mar 2022 07:59:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/163104 Fixes building ppc32 kernels Brings following fixes * 2d92604cd30 Revert "Check thin archive element file size against archive header" * ed9b2e40ebf binutils 2.38 vs. ppc32 linux kernel * 40d32f56f63 Updated Serbian translations for the bfd, gold, ld and opcodes directories * 6aa1b7df2fc ld: Keep indirect symbol from IR if referenced from shared object * ae1cab7d3f3 i386: Update I386_NEED_DYNAMIC_RELOC_TYPE_P for DT_TEXTREL * df9071487a8 PR28882, build failure with gcc-4.2 due to use of 0b literals * caa6172de4b x86: Disallow invalid relocation against protected symbol Signed-off-by: Khem Raj --- meta/recipes-devtools/binutils/binutils-2.38.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/binutils/binutils-2.38.inc b/meta/recipes-devtools/binutils/binutils-2.38.inc index 4ce74f94bfa..3544c0c7e7c 100644 --- a/meta/recipes-devtools/binutils/binutils-2.38.inc +++ b/meta/recipes-devtools/binutils/binutils-2.38.inc @@ -18,7 +18,7 @@ SRCBRANCH ?= "binutils-2_38-branch" UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P\d+_(\d_?)*)" -SRCREV ?= "a96f7ba94b69b588bf524624ff2410b31420c957" +SRCREV ?= "6938a3aca19044aeb9bc4b9564e04f9092a701ed" BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${SRCBRANCH};protocol=git" SRC_URI = "\ ${BINUTILS_GIT_URI} \