From patchwork Wed Jan 4 21:41:09 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: 39123 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5369519wrt; Wed, 4 Jan 2023 13:41:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXtE1UnevbvzN+VDVp8LGezsTQ0OzA08y9+6bl8edmy7fCuGOexfEx2UHPPs1hvAB89wWDkK X-Received: by 2002:a17:906:99d1:b0:7ad:cf9c:b210 with SMTP id s17-20020a17090699d100b007adcf9cb210mr39566815ejn.18.1672868492573; Wed, 04 Jan 2023 13:41:32 -0800 (PST) Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ga33-20020a1709070c2100b0084c4942ea8esi26791762ejc.268.2023.01.04.13.41.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 13:41:32 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=rWJAtBRc; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 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 8CEF23858D39 for ; Wed, 4 Jan 2023 21:41:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CEF23858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672868491; bh=uXiKYwMbi+hbCDeIg+BtY06JtdR6fW3MhFYI7ainihs=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=rWJAtBRcLar/TZi8rttr66uNYDWTh9nqtCj/qoww3vRvV15O8YlfkEGQioFO/4suH t0CVL64bfapDGsRrWvLnANM7jd3r7vThAaSjIFWOUnATuJIeN3GBxsPsR8Sgqo8KwU kjp2z385hjv6ces5+Z07c92kxQlXWfY0Cw2p+5Ng= 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 54B673858D35 for ; Wed, 4 Jan 2023 21:41:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 54B673858D35 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 304FO9k2000335 for ; Wed, 4 Jan 2023 21:41:23 GMT Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mtbgqqn6u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 04 Jan 2023 21:41:22 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 304KM5iW028937 for ; Wed, 4 Jan 2023 21:41:21 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2103.outbound.protection.outlook.com [104.47.70.103]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3mweprxqw2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 04 Jan 2023 21:41:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MSQAijczsjGMBTSK+mRasUx0nxuMqNlpnJEI5nVj+Mk/KT2IqNIc0HA424KNPkIJZmTUYyFcpovWNHf7n6RnFL/4tiAxvnkX9zELIzlPiFoY6t8gMYeML498aWDwu24ASb4wL+KOoOpvZ4sevR0yW4/BoDs3ODp20OZTPPkC5d+v71KWUEcksbJGCMgVOeISsNADOV0RS304PB1Fz5CFB3jhmi4SprGfIyE0zUVIEFWNUkVozyS1Z00x/Sa79N3X35OfiTPHZE6pDY/TMI9uuu/jglRTftpLWnNKgpGt0WC6GHYMOf+l6jNBjW3T/XCI+AiTK7HlXaMTareQN8YGQQ== 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=uXiKYwMbi+hbCDeIg+BtY06JtdR6fW3MhFYI7ainihs=; b=lxXP/bRQitugbCSzt8D8/bpKpOlt3kLc58REXXQlipftYgoj1pjlyvCISjB9Pg8jt3HSVc3WyJmGDLW7qsDCbZPS31OndxqXQwiXCGHtv1X/dTFXyBrkD041X/p71IztOZwyykGH6Y8tjZeCAJZMQvtCKfXqEZE8AjlGcyhrm8qLc0WtHOIkFpxTV3vuGCCXh4soTZLJzuy+/hU3qcFigi3I4scStt4PIAfx50e2dHftFTLxzdCB8uudl3+1OKV1qypX7jjXlbyFVLnK5QAWnxsrBb5ev/acNPQuOs1H1Bu5aBLS/DQodfMOOQJDB4btrbq1agGtv/nwSmd864Zn7g== 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 DM6PR10MB4314.namprd10.prod.outlook.com (2603:10b6:5:216::23) 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 21:41:19 +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 21:41:19 +0000 To: binutils@sourceware.org Cc: "Guillermo E. Martinez" Subject: [PATCHv2] Fix sim/testsuite/bpf due to linker warnings Date: Wed, 4 Jan 2023 15:41:09 -0600 Message-Id: <20230104214109.51006-1-guillermo.e.martinez@oracle.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230104041219.794237-1-guillermo.e.martinez@oracle.com> References: <20230104041219.794237-1-guillermo.e.martinez@oracle.com> X-ClientProxiedBy: DM6PR03CA0084.namprd03.prod.outlook.com (2603:10b6:5:333::17) To MWHPR10MB1407.namprd10.prod.outlook.com (2603:10b6:300:23::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR10MB1407:EE_|DM6PR10MB4314:EE_ X-MS-Office365-Filtering-Correlation-Id: 6fb60f61-71cf-4aba-a49e-08daee9c6a80 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PJncsb65rzfANisaXdSjFD0s6gk7fc0jcqJuNL6iexfz7Pmuw/8LavELkZqz9S4YuUpnioouEC3b6ZkxGwrewi8JDTRLF6sRBiYJrhzI4sGbhAkCKILu+M0RMeV0OOgbWAFJJB+jdl+sqpNBfibn3gkGvKMIPwDJHVShqYg/QOyVaa7D/T4Aok8phiN6jj+pEFPIAN6Ai4spxN/wiOL422JjRI49RrKjq7kEQ1UWXGPkOLRdHbs1sYwkGAV2+CCSrZqQAWOTSvMSucaqZK4O8didgTwB9zNch0KY33Qlok6YIu8pLDt6xB3kDW/6SFxs1PJY4IwsdJtQYVwkL67e+C7fRs7+6MDMBc3Kq5guKKNmJ5IRPs0gkQpQ1bM95HsM5iW8k/khnFMR4QvoVpmpcj9e1iZlFwpzkAkfo/B9w/1ViBoQkiqQm2v3KoIfv1uEtnGradruvKaWFZ6gpVcf4yH2CmM3U+CaXxsNbMVxH86EZSyrNTYfAwr67xJ00Riaae10M6yObSwhPUkepvF2REF4LZDZokibUaTgtz0WndPpcIuGga+e5gOFTgfqHmQ3J74HlhzDnfb2LDrePucpGYpbDlvA17SMKisAQ+T9NCq9nw27EpGVY656ZFK26lww0wzmve+AiylFxCIgv9TDNulcaQt+zrtqi1r+8gcRwJ0= 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)(136003)(346002)(376002)(39860400002)(366004)(396003)(451199015)(103116003)(36756003)(8936002)(38100700002)(2906002)(5660300002)(41300700001)(83380400001)(86362001)(66946007)(966005)(6916009)(6486002)(66556008)(107886003)(478600001)(6666004)(4326008)(66476007)(316002)(1076003)(186003)(8676002)(6506007)(6512007)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LIMbeWXo9tf7i3yRN2F7kRDzMlv9iVGyYkFSWU/qRE4Viymmrvwx9VH4SxuIfT9zHxYtGlBtf2BUKYQBI1c2tFBr6c3MIqo2wyhkQxNwx7am1O5UVfsfUuexvZE1t157+GwDRPJYrl3DumwXOZW2hu9w6hpap2HB5FWY5sxST4/j5m00mMjJS4pmXo54tRuW5yA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pZou6KDc2kya1vC9VeLzQIGVdobN850paiWJyNbpRh5hZZUa5+31+sNDUKFhv/bfY9QbAjizoD2pG4dHnmX8senL2qSzMDLTwJCC0dBJKojQ8mNbF0iK1fVcwhHZMqr3nXyvIGtvB X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fb60f61-71cf-4aba-a49e-08daee9c6a80 X-MS-Exchange-CrossTenant-AuthSource: MWHPR10MB1407.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2023 21:41:19.6877 (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: DJJsNzEZ6XRtwQzVOpxkRuPsJLo0M8lWTGMNX92NhP39Mh4qsGzoqr0w8Es012odqZ9XNZUkiYcSkqUpA554RqugPCSf90F41OPkuByZpC4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB4314 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_07,2023-01-04_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 phishscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301040176 X-Proofpoint-GUID: sjdXY-7scENI1Py38xvWTih1EahfgwTx X-Proofpoint-ORIG-GUID: sjdXY-7scENI1Py38xvWTih1EahfgwTx 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?1754129752631832979?= Hello, This is the patch-v2 to fix the bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29954 Changes from v1: + Remove LDFLAGS_FOR_TARGET and its assignment. 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 Adjusting `--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. --- sim/testsuite/bpf/allinsn.exp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sim/testsuite/bpf/allinsn.exp b/sim/testsuite/bpf/allinsn.exp index 98f0346776a..1da0b9756c7 100644 --- a/sim/testsuite/bpf/allinsn.exp +++ b/sim/testsuite/bpf/allinsn.exp @@ -6,10 +6,7 @@ sim_init set all_machs "bpf" global SIMFLAGS_FOR_TARGET -set SIMFLAGS_FOR_TARGET "--memory-size=4Mb" - -global LDFLAGS_FOR_TARGET -set LDFLAGS_FOR_TARGET "-Ttext=0x0" +set SIMFLAGS_FOR_TARGET "--memory-size=10Mb" foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] { # If we're only testing specific files and this isn't one of them, skip it.