public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] ld: set correct flags for AIX shared tests
@ 2021-11-09 15:01 CHIGOT, CLEMENT
  2021-11-10  4:38 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: CHIGOT, CLEMENT @ 2021-11-09 15:01 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

Previous flags were aimed to be run with XLC.
Nowadays, only GCC is being tested with GNU toolchain. Moreover,
recent XLC versions might also accept "-shared".

ld/ChangeLog:
2021-11-09  Clément Chigot  <clement.chigot@atos.net>

        * testsuite/ld-shared/shared.exp: Adjust shared flags.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ld-set-correct-flags-for-AIX-shared-tests.patch --]
[-- Type: text/x-patch; name="0001-ld-set-correct-flags-for-AIX-shared-tests.patch", Size: 1333 bytes --]

From 3a0699b9441085ac79e1b8e36faa9ed5391b0c3f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= <clement.chigot@atos.net>
Date: Thu, 11 Mar 2021 11:08:17 +0100
Subject: [PATCH] ld: set correct flags for AIX shared tests
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Previous flags were aimed to be run with XLC.
Nowadays, only GCC is being tested with GNU toolchain. Moreover,
recent XLC versions might also accept "-shared".

ld/ChangeLog:
2021-11-09  Clément Chigot  <clement.chigot@atos.net>

	* testsuite/ld-shared/shared.exp: Adjust shared flags.
---
 ld/testsuite/ld-shared/shared.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
index 655a56da99c..40f417eb690 100644
--- a/ld/testsuite/ld-shared/shared.exp
+++ b/ld/testsuite/ld-shared/shared.exp
@@ -135,7 +135,7 @@ proc shared_test { progname testname main sh1 sh2 dat args } {
     # On AIX, we need to use an export file.
     set shared -shared
     if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } {
-	set shared "-bM:SRE -bE:$tmpdir/xcoff.exp"
+	append shared " -Wl,-bE:$tmpdir/xcoff.exp"
     }
     if { [is_elf_format] && [check_shared_lib_support] } {
 	append shared " -Wl,-z,notext"
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ld: set correct flags for AIX shared tests
  2021-11-09 15:01 [PATCH] ld: set correct flags for AIX shared tests CHIGOT, CLEMENT
@ 2021-11-10  4:38 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2021-11-10  4:38 UTC (permalink / raw)
  To: CHIGOT, CLEMENT; +Cc: binutils

On Tue, Nov 09, 2021 at 03:01:18PM +0000, CHIGOT, CLEMENT via Binutils wrote:
>         * testsuite/ld-shared/shared.exp: Adjust shared flags.

Applied.

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-10  4:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09 15:01 [PATCH] ld: set correct flags for AIX shared tests CHIGOT, CLEMENT
2021-11-10  4:38 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).