From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 2AFEE3855580 for ; Fri, 28 Jul 2023 04:41:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2AFEE3855580 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1bbc06f830aso11076335ad.0 for ; Thu, 27 Jul 2023 21:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690519268; x=1691124068; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=GWk4Mtyok6DPpayeNwit5O/1JslPpS/RrFR+hcKJl/c=; b=Ui8vAktOgmb69GE/mkN9OrcC6kX2KjnMI5UAFOyQ5jvB1+AJsofAljO3VIxJOqKThN ptGkuaKdxO7JO+acB7HCGZCQWJs/hRIo9yF6H9JMET9XSbaDML5I/70knaMgm5rLz2qE 1lm5kVTt9gmL0E9G8kS/OdBs8T0luQbSW0+KTrjhHeIOY88pgfMFkZ38wXV1q5nTQpxy nS/p7F0DWgFKNPbcLC4cCvbcUEbwrNzoNOfxhWU7EMlmzPdCWfOlaopsWoNB38odjBHN XBo7amO3M+f1tSnpiFOkPy8U4J4TPwqVw9UOmghQqJD4nS4iRe1tUdRY0WaF4y1/2VD5 bIRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690519268; x=1691124068; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GWk4Mtyok6DPpayeNwit5O/1JslPpS/RrFR+hcKJl/c=; b=WTCbUvcncnFQM1dVw+mxhs2W2KSyIaEOviMWxNNjpvR3XGtp12zzexRsbO8+DMHg/e rYkQHrTo0B4tK/wkhKifT8zW7BTSiXCMmEyDhdtDtXlcjxTs2Hm/Rh4z/ASqawhHMh1c 2LgIJtdAIrRKg7GXLeE82fv01GKLJ0NifnAzxfAckR8wI8tTkqDfKyvkYMqanMxh6C14 BygQ9zrIPXTVjSv1HOYFozBRr1QobDMMi/17XfwP8NPcQcqeNPhebHxOR0oQbb4y6r8B gwok0KTgrU58HoBBm9R9QOQdE3Oi/rH2TbMnzPl0UkAXAFgbh11f87O3nOvhKkbM2gBD wpUA== X-Gm-Message-State: ABy/qLbgd8PjhI7hjjlPCARnKpz7SEJ9clnngq7zexUYLw8qhi6n5Jwh BTcaszJQ1Sh9q4vcTgw5zjKrI2uGA/I= X-Google-Smtp-Source: APBJJlEp4l6F51gf4pVsL11x6/U5xClgPFAQrYYI8u0/v1QTcwXdwbYS1u7ehFnHHuBl+nLU24UVtg== X-Received: by 2002:a17:902:d4c3:b0:1b8:a936:1915 with SMTP id o3-20020a170902d4c300b001b8a9361915mr851685plg.22.1690519268387; Thu, 27 Jul 2023 21:41:08 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:7a47:81:cfa7:49a5]) by smtp.gmail.com with ESMTPSA id n4-20020a170902e54400b00198d7b52eefsm2465948plf.257.2023.07.27.21.41.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 21:41:07 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 2F02F114166A; Fri, 28 Jul 2023 14:11:05 +0930 (ACST) Date: Fri, 28 Jul 2023 14:11:05 +0930 From: Alan Modra To: binutils@sourceware.org Subject: ldscripts/empty-address vs. xcoff Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3033.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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: The empty-address tests check that if a section is removed by ld due to being empty then properties of that section don't affect following addresses. The xcoff backend doesn't remove the empty .data section created by empty-address-2* and empty-address-3* for some reason, and therefore fails the test. * testsuite/ld-scripts/empty-address-1.d: Accept more symbols. * testsuite/ld-scripts/empty-address-2a.d: xfail for xcoff. * testsuite/ld-scripts/empty-address-2b.d: Likewise. * testsuite/ld-scripts/empty-address-3a.d: Likewise. * testsuite/ld-scripts/empty-address-3b.d: Likewise. diff --git a/ld/testsuite/ld-scripts/empty-address-1.d b/ld/testsuite/ld-scripts/empty-address-1.d index dbaf778024e..210b70f7097 100644 --- a/ld/testsuite/ld-scripts/empty-address-1.d +++ b/ld/testsuite/ld-scripts/empty-address-1.d @@ -5,5 +5,6 @@ 0+0 [AT] _start #... 0+200 [ADT] __data_end +#... 0+200 [ADT] __data_start #pass diff --git a/ld/testsuite/ld-scripts/empty-address-2a.d b/ld/testsuite/ld-scripts/empty-address-2a.d index 4471a1be6a3..a619ea19a07 100644 --- a/ld/testsuite/ld-scripts/empty-address-2a.d +++ b/ld/testsuite/ld-scripts/empty-address-2a.d @@ -1,7 +1,7 @@ #source: empty-address-2.s #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2a.t #nm: -n -#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* +#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* [is_xcoff_format] #... 0+0 T _start #... diff --git a/ld/testsuite/ld-scripts/empty-address-2b.d b/ld/testsuite/ld-scripts/empty-address-2b.d index 8dfe888b63d..c9b97b8b809 100644 --- a/ld/testsuite/ld-scripts/empty-address-2b.d +++ b/ld/testsuite/ld-scripts/empty-address-2b.d @@ -1,7 +1,7 @@ #source: empty-address-2.s #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2b.t #nm: -n -#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* +#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* [is_xcoff_format] #... 0+0 T _start #... diff --git a/ld/testsuite/ld-scripts/empty-address-3a.d b/ld/testsuite/ld-scripts/empty-address-3a.d index b3135bf9231..fe87ebc34ac 100644 --- a/ld/testsuite/ld-scripts/empty-address-3a.d +++ b/ld/testsuite/ld-scripts/empty-address-3a.d @@ -1,6 +1,7 @@ #source: empty-address-3.s #ld: -T empty-address-3a.t #nm: -n +#xfail: [is_xcoff_format] #... 0+0 T _start diff --git a/ld/testsuite/ld-scripts/empty-address-3b.d b/ld/testsuite/ld-scripts/empty-address-3b.d index 1e68e29b428..0d9babef6f7 100644 --- a/ld/testsuite/ld-scripts/empty-address-3b.d +++ b/ld/testsuite/ld-scripts/empty-address-3b.d @@ -1,6 +1,7 @@ #source: empty-address-3.s #ld: -T empty-address-3b.t #nm: -n +#xfail: [is_xcoff_format] #... 0+0 T _start -- Alan Modra Australia Development Lab, IBM