From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2131.outbound.protection.outlook.com [40.107.255.131]) by sourceware.org (Postfix) with ESMTPS id EAB533858D28 for ; Mon, 3 Jul 2023 04:43:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EAB533858D28 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=L5KstvCnT+FjlzXK3vQ1I6Fgp9OXbTz6SU83sCzoaC9+PTRIcdUXjRSVhESNYA9zNxyvyj/DPDTjQzBlPigrLXQdSK4ooBMsvxLq14AUNoHjnbwtCx0MUj/Rrac0QWDirA8OIVR41zTFKWxxwWZNJ6p3cEyzekkqDsyy8eDxPAmIoCaKFLeAbAVMy5os61SsO5BQT1BBcNBDpOCHuTV6T+8KQO6Wk1Nc9og2GdA/3cBUFOUR6czxehG9Z4Gk6UFfs+aqiXkJr0iejvA/BaGYzo1+MLvPedyJU1Ev9JS8gDsaJ1pylxNL42IeYMBqSXmLFdGS+K/aM7+/q3mK11Fd9w== 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=8HVWFmULSqarkVomo/R50RYy34JHlYQAusrFVbqbzPk=; b=WrrDIaUdBOQ/c2CDkcb9tctj72gM6em8IGBiyaBMOBXNknkmvhQCEJ/gkiJWAsKwsOs1cp8xakghkyaZwvoeYtqgxQetS6mhHzkIR/yaX+J8L+KDYpWKAsgW2hx3vNo/L3tBE3xp/ghbS5sI902HB4PMcj2C78FpWLsFGjyImEBKayz/VtsTBgc7qcZElbxoDd0XzL2kajOcSgk7ht5lctzoT2XQhOCn64Z5S4PRalMu7rvp9Q7Rb/AElQYdIx3VsUWyykVHR9lYOJ2Gef+SVYAED8zKgazz7BEDBI00zutfwm4Rydf8zfPdfWC3K4cYYL+lD7MQpLB4+v0NrEkY9g== 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=8HVWFmULSqarkVomo/R50RYy34JHlYQAusrFVbqbzPk=; b=eJH/+vYDFTl4pxxO2jx4wodb4WXzv5LZD8iSoQSQQZjOBqNL1dtN5yBbPt5By/tyybAZnSOHRn0MwEw4MRObkHnj9Ak2WnPaIJTyXYVf998pZ2btt55gNUR0JlwI0Lqpb5g9V1U/Og5KFtfy30Ro4/rrfGMBQBS91qWSmvHcc9s= 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 KL1PR0401MB4163.apcprd04.prod.outlook.com (2603:1096:820:37::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Mon, 3 Jul 2023 04:43:45 +0000 Received: from TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::d2b4:bc09:619a:118c]) by TYZPR04MB6117.apcprd04.prod.outlook.com ([fe80::d2b4:bc09:619a:118c%6]) with mapi id 15.20.6544.024; Mon, 3 Jul 2023 04:43:44 +0000 From: YunQiang Su To: binutils@sourceware.org Cc: macro@orcam.me.uk, YunQiang Su Subject: [PATCH] ld: fix plugin tests for MIPS PIC Date: Mon, 3 Jul 2023 12:43:21 +0800 Message-Id: <20230703044321.2951358-1-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.30.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0211.apcprd06.prod.outlook.com (2603:1096:4:68::19) To TYZPR04MB6117.apcprd04.prod.outlook.com (2603:1096:400:25a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR04MB6117:EE_|KL1PR0401MB4163:EE_ X-MS-Office365-Filtering-Correlation-Id: 652e0939-788f-47f9-6076-08db7b8014e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1DtBm3Ed7V+hvpWUfOSqJ1xxQGgKmB5cD87VjWUeydqY+Wi24JvIsbP71D7R2p1e2OK+4uuU1mv5/9PBDlgDTkTamB2EA1msZdKPfuQPGaNzUXj3C3QUSAPT8AGdlzSahKvVWkyyhz7O03xfPlCPcVkSsrcRrmu4kayyQedpmptKS1qQ1aIOVge9x6q8/Poo0qlg0kJxAZjU6wvsLJzhNgufsfYhn4XVUmbdE6R6jNsLmHqzzl5qOUFZDiIYxzDvNJ/c8mDkLTHCF7jI5unN54LRa+dVAJR87Z/yo0/LNu5bpfRc2jFhQ7vBjlA2T3BtVYYT5KOEly37ImIFGGWBkCzvooddr3ReeNNeP6/CH0KSSTkUgOOho+aIxzIaR8xgLz9UDs+RkBOgaTn/gFi9tOyLsrgfNMIWS3whBjpWs5c6mULZRNd+ABEoThChNdfVHpE6Cdbll74PGL+4fSFrUO3ULzsChNoW28zWUDcm8L+ZCD9fAYVPP1HKC8B3IBRXAObi0r6ZjFw5ZwKML9zMMHEoWqSW5rxRNyKK7RI/x5nk2Ym7V3fYzLLtwXMnDHN/Gz10Tn0JJlZ2RqmLAXZfGy3WehjQJkMP4pH0ZbRho0HdfKCnfaTDYxli6u6uTWcb 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:(13230028)(376002)(366004)(136003)(39830400003)(346002)(396003)(451199021)(478600001)(6666004)(5660300002)(8676002)(8936002)(2906002)(36756003)(86362001)(38350700002)(38100700002)(66556008)(66946007)(66476007)(4326008)(6916009)(316002)(41300700001)(107886003)(1076003)(6506007)(26005)(2616005)(186003)(6512007)(52116002)(6486002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?MSmltO+4Mk6lQDm8RZnWBUd4CaUtYseyy33Ops0qBqzZZHRdwESDH+8fFVe9?= =?us-ascii?Q?YxcByaxEDNrzxulwCRMKs94/Rngri3+lQ0KALTzDZ5oo9g8qKMdsMouoWER/?= =?us-ascii?Q?u5t13lzWIRoYHVdn5Cglp3PZp5pZW6O48mRJSvg9jN34ZWXj86C/95tPmjs7?= =?us-ascii?Q?Mk1AW+bxFEd77UCX96ZK/GN3IT7SQaHtWEgYCR4XPOX2G+l1u+2Wku5X61Tg?= =?us-ascii?Q?fEee4myLuvxge/bjBbqRNEGe07pw4CU65dDL67eoXtxCnaX18GofTVd5wLQ/?= =?us-ascii?Q?Z68WIQtHFmSkswHny0mBbRuEKOI6HE9QklPnuj7Z4B5rSmdQMrItFNPsKf8d?= =?us-ascii?Q?tjOQo9Rnd6TzA9kzmSy/CA31pGNUjxL6tSC5uSc8ITlTCTa7yF2vBa64jeQK?= =?us-ascii?Q?k1hpVsH3PWpP4bOsBYk4nnDBrgOrqUYWQ79jU4Zzq5hSTQs7hn6OXnWqsidP?= =?us-ascii?Q?UWIuBtwO2tXSj9QViGISO3EuXX2S0OXc6w8GvhZGYrtHaiDgKzUpNq0ezmHl?= =?us-ascii?Q?dH4oShkWuPzrJ8RR3bJ9ohv23BhRdIxgyQQ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JocDdjPOnPCMLS16kNsrZcUj48ZVkffGNnvwKcSD/rWaVuB0UKcVyoyZs?= =?us-ascii?Q?T3FktbAz1+dZ5spYM13aBDcbr+w+esO8U+8RPYBgJlrBuFsIcNnZ+xPiA/Xw?= =?us-ascii?Q?W1RDBZNw8T8v9aGOZdHysyiTt5+h7UuDkSzk1clW42gjKfb6iwhvRWttm6F5?= =?us-ascii?Q?9A=3D=3D?= X-OriginatorOrg: cipunited.com X-MS-Exchange-CrossTenant-Network-Message-Id: 652e0939-788f-47f9-6076-08db7b8014e7 X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB6117.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2023 04:43:44.1420 (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: jr0wJlyMPY7AQK7HoWIZbe+0R/gdQxunQ+8/c4Ti5BcAsIG8RQJDMs5O5jcfxgtNyvTbzT4VH1U5wysymFuGE0/ytkmHMIP43tUJ8EkvSBs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0401MB4163 X-Spam-Status: No, score=-13.1 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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On MIPS, for PIC objects, symbols may reference 2 times: once from the caller, and once from GOT. Thus ld may complains 2 times about "undefined reference". So we add a new "#?" line to every effected testsuite. --- ld/testsuite/ld-plugin/plugin-14.d | 1 + ld/testsuite/ld-plugin/plugin-15.d | 1 + ld/testsuite/ld-plugin/plugin-16.d | 1 + ld/testsuite/ld-plugin/plugin-20.d | 1 + ld/testsuite/ld-plugin/plugin-21.d | 1 + ld/testsuite/ld-plugin/plugin-22.d | 1 + ld/testsuite/ld-plugin/plugin-23.d | 1 + ld/testsuite/ld-plugin/plugin-6.d | 1 + ld/testsuite/ld-plugin/plugin-7.d | 1 + ld/testsuite/ld-plugin/plugin-8.d | 1 + 10 files changed, 10 insertions(+) diff --git a/ld/testsuite/ld-plugin/plugin-14.d b/ld/testsuite/ld-plugin/plugin-14.d index bd8ef65a204..1209713d5ee 100644 --- a/ld/testsuite/ld-plugin/plugin-14.d +++ b/ld/testsuite/ld-plugin/plugin-14.d @@ -30,5 +30,6 @@ hook called: claim_file tmpdir/text.o \[@0/.* not claimed hook called: all symbols read. .*: tmpdir/main.o: in function `main': .*main.c.*: undefined reference to `\.?func' +#?.*main.c.*: undefined reference to `\.?func' hook called: cleanup. #... diff --git a/ld/testsuite/ld-plugin/plugin-15.d b/ld/testsuite/ld-plugin/plugin-15.d index 1647500e98f..a5304abeb0b 100644 --- a/ld/testsuite/ld-plugin/plugin-15.d +++ b/ld/testsuite/ld-plugin/plugin-15.d @@ -31,5 +31,6 @@ hook called: claim_file tmpdir/text.o \[@0/.* not claimed hook called: all symbols read. .*: tmpdir/main.o: in function `main': .*main.c.*: undefined reference to `\.?func' +#?.*main.c.*: undefined reference to `\.?func' hook called: cleanup. #... diff --git a/ld/testsuite/ld-plugin/plugin-16.d b/ld/testsuite/ld-plugin/plugin-16.d index f1ee03a4768..a166fcbdbb4 100644 --- a/ld/testsuite/ld-plugin/plugin-16.d +++ b/ld/testsuite/ld-plugin/plugin-16.d @@ -35,5 +35,6 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY .*: tmpdir/main.o: in function `main': .*main.c.*: undefined reference to `\.?func' +#?.*main.c.*: undefined reference to `\.?func' hook called: cleanup. #... diff --git a/ld/testsuite/ld-plugin/plugin-20.d b/ld/testsuite/ld-plugin/plugin-20.d index e3c724df636..109971add2d 100644 --- a/ld/testsuite/ld-plugin/plugin-20.d +++ b/ld/testsuite/ld-plugin/plugin-20.d @@ -4,4 +4,5 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* .*: tmpdir/main.o: in function `main': .*main.c.*: undefined reference to `\.?func' +#?.*main.c.*: undefined reference to `\.?func' hook called: cleanup. diff --git a/ld/testsuite/ld-plugin/plugin-21.d b/ld/testsuite/ld-plugin/plugin-21.d index 0b85f7151e4..e9586d541af 100644 --- a/ld/testsuite/ld-plugin/plugin-21.d +++ b/ld/testsuite/ld-plugin/plugin-21.d @@ -4,4 +4,5 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* .*: tmpdir/main.o: in function `main': .*main.c.*: undefined reference to `\.?func' +#?.*main.c.*: undefined reference to `\.?func' hook called: cleanup. diff --git a/ld/testsuite/ld-plugin/plugin-22.d b/ld/testsuite/ld-plugin/plugin-22.d index 381ac03c052..f87f2a5cb23 100644 --- a/ld/testsuite/ld-plugin/plugin-22.d +++ b/ld/testsuite/ld-plugin/plugin-22.d @@ -4,4 +4,5 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* .*: tmpdir/main.o: in function `main': .*main.c.*: undefined reference to `\.?func' +#?.*main.c.*: undefined reference to `\.?func' hook called: cleanup. diff --git a/ld/testsuite/ld-plugin/plugin-23.d b/ld/testsuite/ld-plugin/plugin-23.d index 0b6c25c1d1e..d4fdb74bc67 100644 --- a/ld/testsuite/ld-plugin/plugin-23.d +++ b/ld/testsuite/ld-plugin/plugin-23.d @@ -4,4 +4,5 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.* .*: tmpdir/main.o: in function `main': .*main.c.*: undefined reference to `\.?func' +#?.*main.c.*: undefined reference to `\.?func' hook called: cleanup. diff --git a/ld/testsuite/ld-plugin/plugin-6.d b/ld/testsuite/ld-plugin/plugin-6.d index 41f44fbc37e..a969a27793a 100644 --- a/ld/testsuite/ld-plugin/plugin-6.d +++ b/ld/testsuite/ld-plugin/plugin-6.d @@ -30,5 +30,6 @@ hook called: claim_file tmpdir/text.o \[@0/.* not claimed hook called: all symbols read. .*: tmpdir/main.o: in function `main': .*main.c.*: undefined reference to `\.?func' +#?.*main.c.*: undefined reference to `\.?func' hook called: cleanup. #... diff --git a/ld/testsuite/ld-plugin/plugin-7.d b/ld/testsuite/ld-plugin/plugin-7.d index b202edc863e..2222302dc5b 100644 --- a/ld/testsuite/ld-plugin/plugin-7.d +++ b/ld/testsuite/ld-plugin/plugin-7.d @@ -31,5 +31,6 @@ hook called: claim_file tmpdir/text.o \[@0/.* not claimed hook called: all symbols read. .*: tmpdir/main.o: in function `main': .*main.c.*: undefined reference to `\.?func' +#?.*main.c.*: undefined reference to `\.?func' hook called: cleanup. #... diff --git a/ld/testsuite/ld-plugin/plugin-8.d b/ld/testsuite/ld-plugin/plugin-8.d index 0a38ddb1e4e..f29df64c368 100644 --- a/ld/testsuite/ld-plugin/plugin-8.d +++ b/ld/testsuite/ld-plugin/plugin-8.d @@ -35,5 +35,6 @@ Sym: '_?func' Resolution: LDPR_PREVAILING_DEF Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY .*: tmpdir/main.o: in function `main': .*main.c.*: undefined reference to `\.?func' +#?.*main.c.*: undefined reference to `\.?func' hook called: cleanup. #... -- 2.30.2