From patchwork Wed Jan 4 04:12:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Guillermo E. Martinez" X-Patchwork-Id: 38733 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4957405wrt; Tue, 3 Jan 2023 20:12:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXt+3OrcUQpuPn0gY7dSkFxm1nAVCcxutN3/svbe4be0l1aOiZV58Afo4iG3pC3Qo9ZKSDfv X-Received: by 2002:a17:907:8b95:b0:84c:95c7:304b with SMTP id tb21-20020a1709078b9500b0084c95c7304bmr19870466ejc.14.1672805560381; Tue, 03 Jan 2023 20:12:40 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id gs6-20020a1709072d0600b007cebad0e757si31419534ejc.194.2023.01.03.20.12.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 20:12:40 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=SLAit3Ad; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 316993858C62 for ; Wed, 4 Jan 2023 04:12:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 316993858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672805559; bh=CPUuz0CFrfhlP5S6FmZ3dgMqGA17f2pcCCRSBPgqLlA=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=SLAit3Ad5TybXEqTnzLisXSCrlTo2iO6m2KvKiciP9sFDW8AQCGX+b2ryOe2tKcYV r7vyseS/aACgJfg9EMyroRBWbVB4O3TlNZEHVcO6MVMC7SsVrh4Szth6GbQCmN6c3k YBKwNnG/C7OD0P6fjSkuuM+gVObjds/tqldLrplk= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id 979113858D1E for ; Wed, 4 Jan 2023 04:12:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 979113858D1E Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 303Jn8jV006056 for ; Wed, 4 Jan 2023 04:12:28 GMT Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mtbv2wpym-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 04 Jan 2023 04:12:27 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 3043Siee028552 for ; Wed, 4 Jan 2023 04:12:27 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2044.outbound.protection.outlook.com [104.47.57.44]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3mw1k898k7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 04 Jan 2023 04:12:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y2zZmRbclEY/c/xSYMhxuaNpl6AIsNWazzk2o2ZnGl/LUjm+MybAIOUxql5d9FSwsDXFoBmanQHmpYUQ2wSYb5rRcK5OqGc/Bi3JQ9xVakVF6RHKfhCkbHx5wRk/Nm7MQTwdEAxuR5iWpS3zvgFsN5mkUkqd3O0CBdq+Jd4gZbTde9ZNM8/QvrBO6tIq9vNHHFGvtB19WtaDZ6CrPCTU7N/HNI6jGbAnkUFW48YFsVFnaYyOwpI81iag4YE6ZTe5UaxU4KU854Y/p72D2zGjJXYPuKAM3XNswR2MpKIeQK3J2Tr+9nEg0+O4S9QY3I//NIYdSWwy+X1OnZf6H5LOAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CPUuz0CFrfhlP5S6FmZ3dgMqGA17f2pcCCRSBPgqLlA=; b=hEahwmhyjM/gdaDs8bxdXQIkQR3Qj+kqcOlr4cjR2UqynJ16ehTWASjHV7uoIpixdMrRaGkD2JYC4dSYfwvauBajSRkDxz0a4o6iVjQBGkxgeMZLrXk/j68RIVRhh2LIVD4DTJf5no+kjDzor/lRs0TXk1XiGrJkAXSY6VibQQ7EPVLFqH88Lom0jWFDGy9nFJsX9o2dlhL4TukARvSvQlcXeiHanrJp8mL6i17NDEOUQl+Hu1QnHqB32+03QHLTd+XO4+mgVfykQkLicRHEBbHDLU3JZFnxgz5nauwKeYs++2f84OMlckT9UJbP9kZBVQqw4SDJf7ny5k4dlAE3Mg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from MWHPR10MB1407.namprd10.prod.outlook.com (2603:10b6:300:23::20) by DM6PR10MB4380.namprd10.prod.outlook.com (2603:10b6:5:223::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Wed, 4 Jan 2023 04:12:25 +0000 Received: from MWHPR10MB1407.namprd10.prod.outlook.com ([fe80::70df:cb31:cf08:5b12]) by MWHPR10MB1407.namprd10.prod.outlook.com ([fe80::70df:cb31:cf08:5b12%9]) with mapi id 15.20.5944.019; Wed, 4 Jan 2023 04:12:24 +0000 To: binutils@sourceware.org Cc: jose.marchesi@oracle.com, "Guillermo E. Martinez" Subject: [PATCH] Fix sim/testsuite/bpf due to linker warnings Date: Tue, 3 Jan 2023 22:12:19 -0600 Message-Id: <20230104041219.794237-1-guillermo.e.martinez@oracle.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: DS7PR03CA0043.namprd03.prod.outlook.com (2603:10b6:5:3b5::18) To MWHPR10MB1407.namprd10.prod.outlook.com (2603:10b6:300:23::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR10MB1407:EE_|DM6PR10MB4380:EE_ X-MS-Office365-Filtering-Correlation-Id: fadcda78-30be-4306-d61e-08daee09e255 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5zg3pphfMrhgqNNngMDFid3fBJ1BjnPUrghw9XjbEn5WOv5Z9Sas5TEdsg1xkchfKqSaVNuzosIlXEfo+ZZQ/bj957U6LwQ4z3FZxJu6N1DLxToz4YZW2ihzJYWGhaSGmZiOnzYyLpmqKXodwv5GldUZLaZ5XQKCqbvcPSWSzJvA7SeifwUqyTknC0JaNki/MpQUpxiZeQCUKB99zv8OfJW3PGbWaIh2O5aNyu+T28vXfpeUWlHBTs4N/3RnHdEYGtovodaHCVh4Fs8D5UzDZT/Z7V2mSjBlkcuEeE9N/BXv0jGEKAwDqhxySx85cFkjBlSOUzZhjQYySZM9sIdmWqwjBrr8mzXqiGRXND6aeHBuJhG9OipWr+iL1OAnPJlWEFmjDhr24ApNLBvbhL5gnfRsYAYIMMJ3oI/fJTXMOdg7XPKIAlpBVrX9cf3xHnnDXd2sB7RmmCAADpM+59vh19vVptzCq4twCAVSb1aE2jUgUBtwaA9utRtDs1d4owypn8JtHJESWilnBPzPWnuncMI0+uQ6yc/KXYnIkaVrJxvS1aA4D4FvGaUc0+ghkVVbkOaHcscNAcwAvFPFqZ/9uIHngSa9+c5guzAln+ipGF/i3Xcjx7kv6cNG9VM9nAaczYBdjag5VyGQjLeF779Iz9spF9OeWyTNKlmRBUOcVR0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR10MB1407.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(366004)(396003)(376002)(346002)(136003)(39860400002)(451199015)(1076003)(6512007)(186003)(83380400001)(2616005)(86362001)(103116003)(36756003)(38100700002)(2906002)(6916009)(316002)(8676002)(8936002)(41300700001)(4326008)(5660300002)(66476007)(66556008)(966005)(107886003)(66946007)(6666004)(6486002)(478600001)(6506007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZyTTOg7yp8RmKZComgvL5b72Eil/Lrd/648SykRwuAy7VGvYrKwlI6bCJefsveB8Sqa5nsQeSh26x45/3Y1TGyPj5OBu0jxRGaQba63YrJrfDsWig6Aa/LMG34duPGCiwYMFRYXOOxHbqD6hjz2L7H6t1GI4Oyavus+vvAxpTwrockV6sVFkOgWQxwbBm2Y/hxro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pvns3A58Yl8ayGSiPvGqXdyPIY+O2TCfzbLwa4t5tu3YPgNwCeYyi6xhi5hh+zM037oJrW+0yDpxqYsec8AqX7IaKDKWKZEcMuNf0PM7teEyitNof4wto/qj1E/2bDSLHAjWbKIEWgFBOJCTsFVjl5yjIkRV5IcHjozUep95g X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: fadcda78-30be-4306-d61e-08daee09e255 X-MS-Exchange-CrossTenant-AuthSource: MWHPR10MB1407.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2023 04:12:24.8551 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: omByLDhfyYS4+Sp+hNvaP0BvO3A73AvIQei9XJXPIqCOUj4OzFoKBhUvir2MNFdGn6So4zvRu+Xt9WkMEsHrlqKL8b/9NVKHS2VzGeYGJUQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB4380 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-04_01,2023-01-03_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 mlxscore=0 bulkscore=0 phishscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301040033 X-Proofpoint-GUID: 8rMYl_VDBJ3GIGL72Oiun2qGRnhIuRiL X-Proofpoint-ORIG-GUID: 8rMYl_VDBJ3GIGL72Oiun2qGRnhIuRiL X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "Guillermo E. Martinez via Binutils" From: "Guillermo E. Martinez" Reply-To: "Guillermo E. Martinez" Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754063763733792009?= X-GMAIL-MSGID: =?utf-8?q?1754063763733792009?= Hello, This patch is meant to fix bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29954 Please let know your thoughts. I'll really appreciate them!, guillermo --- On a bpf-*-* testsuite fails: ./ld/ld-new: warning: test has a LOAD segment with RWX permissions Adding `--no-warn-rwx-segments' option to linker and set `--memory-size=10Mb' to the simulator bpf testsuite passes. Tested on bpf-*-*: Bug 29954: https://sourceware.org/bugzilla/show_bug.cgi?id=29954 sim/testsuite: * bpf/allinsn.exp (SIMFLAGS_FOR_TARGET): Adjust sim flags. (LDFLAGS_FOR_TARGET): Adjust ld flags. --- sim/testsuite/bpf/allinsn.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/testsuite/bpf/allinsn.exp b/sim/testsuite/bpf/allinsn.exp index 98f0346776a..758ecc1b414 100644 --- a/sim/testsuite/bpf/allinsn.exp +++ b/sim/testsuite/bpf/allinsn.exp @@ -6,10 +6,10 @@ sim_init set all_machs "bpf" global SIMFLAGS_FOR_TARGET -set SIMFLAGS_FOR_TARGET "--memory-size=4Mb" +set SIMFLAGS_FOR_TARGET "--memory-size=10Mb" global LDFLAGS_FOR_TARGET -set LDFLAGS_FOR_TARGET "-Ttext=0x0" +set LDFLAGS_FOR_TARGET "--no-warn-rwx-segments" foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] { # If we're only testing specific files and this isn't one of them, skip it.