From patchwork Thu Aug 17 03:40:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YunQiang Su X-Patchwork-Id: 135843 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp436836vqi; Wed, 16 Aug 2023 20:41:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRiWY6QFhgU07xH2HdnD8sED4L/c+FPPBfO0FWG4hccoIALo5lKdXq3DXFmwN/oUYTM1QV X-Received: by 2002:a05:6512:1114:b0:4f8:d385:41bd with SMTP id l20-20020a056512111400b004f8d38541bdmr3509907lfg.8.1692243691573; Wed, 16 Aug 2023 20:41:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1692243691; cv=pass; d=google.com; s=arc-20160816; b=AZeOQQxe1B8/hrTMoK9LG1Y07Ys/RwWGsYgmyn3F/1ng6cBikO1LaaOBuMKbO8gLBc 6PuUpHDIIE3fwK+7o9Bq295v3zI/xJk2KDYZHpaX+ryBvZjXA6pj/1v/KsRPOJpZYI5d jCb5NLgQv2KmjFwb+ipY1ANU3+sAtYC9vMQ7fWu3u3PbU6rZZmMOfOXMrZASTegBwLy5 ClpAWJCrfGOG5Oi86z/uVHBu6DfyiJ1HrYmJ8UcLo+j+kgorVNpenXEFluOaamr+yfJN KvRwyTlSfgzShc/i3OmcWTjUJs60VcVNfVg02htmBdX3WNBpXtHhPtzRh2d/5McNikoS UmWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature:dmarc-filter:delivered-to; bh=QDExHSgc1RWvRCkLuI48T1/2i0RXkrexsim4AW7vhA0=; fh=0NwO3MJvRkU9F9ly91mLfYbdwF2CRx+fWrL5eSkZkGY=; b=vnG5wKn1mmlKPJu8YImTLBaBoy2e5ua66wtKTcS5jsQIIM1sq7F556ZZDWxiA7nV6Y LxWzGTHOkO1gWAHbTP98l3ltb9+lqKTSF5BJNP0MntnSDI6R3R8OPv+vfrMGywAvrBoQ hbWSWOgE+efwwEGLfoqZmLY2+HyJJCEMZSkUhIxZxNBl0GvZRUoPJD9+72vg9C152xth ky+c9T4y0E8XweWeINnTcLcFNBwY7qTFbTIA73PzURBrN6TuBDyqj7DJDT7nw6ISf8T2 7a6zcrVeptJcshknrDhV3xtLsIfTGfNWyoXCYbsRxqndhi9zQ6exqw9E5gDPKy+07ARw 4Pbg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=ED5EyL+n; arc=pass (i=1 spf=pass spfdomain=cipunited.com dkim=pass dkdomain=cipunited.com dmarc=pass fromdomain=cipunited.com); 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" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id qp15-20020a170907206f00b00991f5560a1dsi12345923ejb.32.2023.08.16.20.41.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 20:41:31 -0700 (PDT) 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=@cipunited.onmicrosoft.com header.s=selector1-cipunited-onmicrosoft-com header.b=ED5EyL+n; arc=pass (i=1 spf=pass spfdomain=cipunited.com dkim=pass dkdomain=cipunited.com dmarc=pass fromdomain=cipunited.com); 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A797638560A7 for ; Thu, 17 Aug 2023 03:41:29 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2103.outbound.protection.outlook.com [40.107.215.103]) by sourceware.org (Postfix) with ESMTPS id 25A4E3858C2A for ; Thu, 17 Aug 2023 03:41:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 25A4E3858C2A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cipunited.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cipunited.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VD7v5uiKY1ZYcQQiySbPfmcRbssw/s+0gYTG96zCl5T2Vb/LeWzVfYHltRcQxQ/I3WIeIcrZnMU7yuCcr2YTQXHk4N+7nZdtgOg8yqlAUTAy/CNqb5R93QgEDgafDuz2fwdfaRuVSYP569nvkxai4LyQ8EEbbnJL8PB+LwKcdYF+TSglulVmMTcJk//PbY2cgFPm3qHRqTfp500EL8zhaU0aOCxyVjZnIort+T9tXA7EYDlbbcESKFp7M10CiG1N4HYyldw8G1/VbBEQ20Qv0UOOnh0vFJyUt7n8B5LpQz+k9d3dMiar6Gzql2LCGCfKsyIvWmklFfNeNExFuy+WqA== 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=QDExHSgc1RWvRCkLuI48T1/2i0RXkrexsim4AW7vhA0=; b=eAT+biyG5QYGB6fooKKqJs280q4ZPPclgslj9CiBX77zQ2eEv1NTV7K5DgJEeg8Nr18rIdoExBYyv92lOvSKF5pUk738RC1+NoC6iNeeA5As0idz05INWI3Ty+h0y2dSAFzorvRXesZktoZEHZ6USYtKTjGXO80HYsTT6OZuZnktnLnPSxhGNOO28e5TMh0RnrJWsEYgH7fwCv5uPcuaYR9eqrVN0pV4y92Uabw/qvnPuElajpWlEYCbIFfXDGJyXwiEQRjZXc7kqRWIM2nt1+IyBdXDLkQogzOARU0W6Q803wpN/jW0Y66V/EU2NWAdOkLdnn9de4X+g8QhqCFlrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cipunited.com; dmarc=pass action=none header.from=cipunited.com; dkim=pass header.d=cipunited.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cipunited.onmicrosoft.com; s=selector1-cipunited-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QDExHSgc1RWvRCkLuI48T1/2i0RXkrexsim4AW7vhA0=; b=ED5EyL+nQ+eJUHE/B8oozGWzKahy7mReiaCNwY5PGPY9iPiTv4OW/41kGMUx9lpftZH2G5rKo5r2dUM9G3RYZXzahJ2nQaboosHvmUoHSoLZKftnXTVTCJ5gmBrJ+MqaOmZfsiQVacpNnrr8tWz8VLYlou7FSqVyK4Nafbm22mU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cipunited.com; Received: from TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) by SG2PR04MB4073.apcprd04.prod.outlook.com (2603:1096:0:e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.30; Thu, 17 Aug 2023 03:41:14 +0000 Received: from TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::b15:a53e:604e:a735]) by TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::b15:a53e:604e:a735%3]) with mapi id 15.20.6678.031; Thu, 17 Aug 2023 03:41:14 +0000 From: YunQiang Su To: macro@orcam.me.uk Cc: binutils@sourceware.org, nickc@redhat.com, YunQiang Su Subject: [PATCH] MIPS: fix readelf -S bintest test for N64 triples Date: Thu, 17 Aug 2023 11:40:46 +0800 Message-Id: <20230817034046.438336-1-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: FR0P281CA0149.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:96::16) To TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6117:EE_|SG2PR04MB4073:EE_ X-MS-Office365-Filtering-Correlation-Id: 53f6dbc2-6a07-45c7-0414-08db9ed3ce26 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: id0bo6Oaoqidam2c3bjjzsl3JtTCsawHmTqJ3Jc7XyURGQhwnxqKhmmIqA5IKwq1db/6BI0DqocCCKHILWpRNlVXO3Wnk9UuFA91XpPUwsScbJ1vfa1gUaWdF0BM7ZirjuKF7CR/mrdcYzerZc4dKEJn8+0/F6ZghL12VV7Iv/fAbBYQKt5agy320wXHpXj6hZgE9PStE9iB7p13coTFEbr2obJY/YAOkTTESlMhhnnU4i4eSiWlWhXmsKluhmJyVQkluADFZcxGc5MfG8VtQwqTc63SMMMG3qJvDB6aPr+zcIjit1XBt6xZcCwDaM1G9H9ZdxRXBgukSDJaJntOnsMwdnH6tjBDMy7bCr3vVIa03XY/dODU3GjmPr6PodGOW6oeeknNH33WaxDmSJ+JHrSXy7PBs8IxiITS34IrL4FDrQEOK9MaeUCNkJKjucWJc3qBvpFEwR3I+HjeGDhyEDCHCpETkRGwtMVaUGsTo+L3WckU/psl7rllsPbNCAJeUqrckUv1rWwj/KnVUgJLSs2OrjW0nyy/PkrecpAaiJumBBSMQC/3EkDtZVYArVCdT9TW9h+8B3vxeozTgOSV9IkFBqL0CGve5jiWBMiskX2WErIEuCLUrYvo9ofOpakf X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR04MB6117.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(39830400003)(136003)(396003)(366004)(346002)(1800799009)(186009)(451199024)(6916009)(38100700002)(38350700002)(66556008)(66476007)(316002)(478600001)(66946007)(2906002)(41300700001)(8676002)(4326008)(8936002)(5660300002)(6512007)(52116002)(6506007)(6486002)(6666004)(107886003)(1076003)(26005)(2616005)(86362001)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ypj/3mfKgAJlN+U2XXcgEaFKLadiffOVi33JwFS4Qa6Y4g3XTMhGBY+NKK3VFfMyd2RUCdi4XgtKA9nBNIA01p+rBwMQHQD3O9bm2jy0tAMfgQoTiib+mCO9mCG8CthcGjVzS3Bk4tAkgZ/whInl6EhMYG09tJFOnvGrmCQ6hOB/ifYP62kJKIwHzUIBAdbCitzu9FABMZjt5NdWreHj6/WAPpSqZKNnlpaILdQY+UVQuANhnh8m9w64EqstORwoqmV6ZiFe73w0u6fUHieH3dbw5bYu9bBwA6srG0AP7AIiM8P0NBCn0VUZcA2CA6z4ue0F9hoFG2VN7Lp7ALsgYPZfgpUeByDdJAeSD2exZhjVIvyly/TAfyitD9WKtHkYF+zC8vkzELhmjygrbPlOcqNn4f4Z5HY5xkGiy4XBls93BvVph0Jtiyxjy55al6S2SJdV+WL0s4ld9mqZshEim+VIsSHkXkVq6kwm4kHjYYqCK1zRQ91BFuP5hmMarMegAtDoNXwjnmcMUHWt09/gZp2SV7tiVMimVguTqEmsNpEeVZjhpngFSfjpU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.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53f6dbc2-6a07-45c7-0414-08db9ed3ce26 X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6117.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2023 03:41:13.9873 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e31cf5b5-ee69-4d5f-9c69-edeeda2458c0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cAmuh8XBoibWGHUV8HFDYjMiLV9tufpxfATjT7FmA9dGukLAvrHT63E9zYFh/ib+gaBqDFOoN3aFS1dXIp21JXpTyokDMB+UaAL6BWr13Ao= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR04MB4073 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, 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: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774446121397545988 X-GMAIL-MSGID: 1774446121397545988 MIPS N64 has different section layout. Let's add a new file readelf.s-64-tmips. It can fix this test fail on mips64*-linux-gnuabi64 and mips64*-openbsd. --- .../testsuite/binutils-all/readelf.s-64-tmips | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 binutils/testsuite/binutils-all/readelf.s-64-tmips diff --git a/binutils/testsuite/binutils-all/readelf.s-64-tmips b/binutils/testsuite/binutils-all/readelf.s-64-tmips new file mode 100644 index 00000000000..5c19027d0b7 --- /dev/null +++ b/binutils/testsuite/binutils-all/readelf.s-64-tmips @@ -0,0 +1,25 @@ +There are .* section headers, starting at offset .*: + +Section Headers: + +\[Nr\] Name +Type +Address +Offset + +Size +EntSize +Flags +Link +Info +Align + +\[ 0\] +NULL +0000000000000000 +00000000 + +0000000000000000 +0000000000000000 +0 +0 +0 + +\[ 1\] .text +PROGBITS +0000000000000000 +00000040 + +00000000000000.. +0000000000000000 +AX +0 +0 +.* + +\[ 2\] .rel.+text +REL. +0+ +0+.* + +000000000000001. +000000000000001. +I +. +1 +8 + +\[ 3\] .data +PROGBITS +0000000000000000 +000000(48|50) + +0000000000000010 +0000000000000000 +WA +0 +0 +.* + +\[ 4\] .bss +NOBITS +0000000000000000 +00000060 + +0000000000000000 +0000000000000000 +WA +0 +0 +.* +# .MIPS.options, .MIPS.abiflags, .pdr, .gnu.attributes here +#... + +\[ .\] .symtab +SYMTAB +0000000000000000 +0+.* + +0+.* +0000000000000018 +10 +10 +8 + +\[10\] .strtab +STRTAB +0000000000000000 +0+.* + +0+.* +0000000000000000 .* +0 +0 +1 + +\[11\] .shstrtab +STRTAB +0000000000000000 +[0-9a-f]+ + +00000000000000.. +0000000000000000 .* +0 +0 +.* +Key to Flags: +#...