diff --git a/ld/ChangeLog b/ld/ChangeLog
index 01d1fdc1f83..6bfd3025b2e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,15 @@
+2018-02-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* testsuite/ld-i386/lea1d.d: Replace -Sw with -SW.
+	* testsuite/ld-i386/lea1e.d: Likewise.
+	* testsuite/ld-i386/lea1f.d: Likewise.
+	* testsuite/ld-x86-64/lea1g.d: Likewise.
+	* testsuite/ld-x86-64/lea1h.d: Likewise.
+	* testsuite/ld-x86-64/lea1i.d: Likewise.
+	* testsuite/ld-x86-64/lea1j.d: Likewise.
+	* testsuite/ld-x86-64/lea1k.d: Likewise.
+	* testsuite/ld-x86-64/lea1l.d: Likewise.
+
 2018-02-03  Nick Clifton  <nickc@redhat.com>
 
 	PR 22762
diff --git a/ld/testsuite/ld-i386/lea1d.d b/ld/testsuite/ld-i386/lea1d.d
index 0b583d2cd5a..ba5f7e2b7cb 100644
--- a/ld/testsuite/ld-i386/lea1d.d
+++ b/ld/testsuite/ld-i386/lea1d.d
@@ -1,7 +1,7 @@
 #source: lea1.s
 #as: --32 -mrelax-relocations=yes
 #ld: -Bsymbolic -shared -melf_i386
-#readelf: -Sw
+#readelf: -SW
 
 #failif
 #...
diff --git a/ld/testsuite/ld-i386/lea1e.d b/ld/testsuite/ld-i386/lea1e.d
index 253943d5c4b..643931b3051 100644
--- a/ld/testsuite/ld-i386/lea1e.d
+++ b/ld/testsuite/ld-i386/lea1e.d
@@ -1,7 +1,7 @@
 #source: lea1.s
 #as: --32 -mrelax-relocations=yes
 #ld: -pie -melf_i386
-#readelf: -Sw
+#readelf: -SW
 
 #failif
 #...
diff --git a/ld/testsuite/ld-i386/lea1f.d b/ld/testsuite/ld-i386/lea1f.d
index 1b773189e03..a4a2098f5a1 100644
--- a/ld/testsuite/ld-i386/lea1f.d
+++ b/ld/testsuite/ld-i386/lea1f.d
@@ -1,7 +1,7 @@
 #source: lea1.s
 #as: --32 -mrelax-relocations=yes
 #ld: -melf_i386
-#readelf: -Sw
+#readelf: -SW
 
 #failif
 #...
diff --git a/ld/testsuite/ld-x86-64/lea1g.d b/ld/testsuite/ld-x86-64/lea1g.d
index df0abd8894c..6018c3ea9e8 100644
--- a/ld/testsuite/ld-x86-64/lea1g.d
+++ b/ld/testsuite/ld-x86-64/lea1g.d
@@ -1,7 +1,7 @@
 #source: lea1.s
 #as: --64
 #ld: -Bsymbolic -shared -melf_x86_64
-#readelf: -Sw
+#readelf: -SW
 
 #failif
 #...
diff --git a/ld/testsuite/ld-x86-64/lea1h.d b/ld/testsuite/ld-x86-64/lea1h.d
index 3c9860bc87c..106022e3130 100644
--- a/ld/testsuite/ld-x86-64/lea1h.d
+++ b/ld/testsuite/ld-x86-64/lea1h.d
@@ -1,7 +1,7 @@
 #source: lea1.s
 #as: --64
 #ld: -pie -melf_x86_64
-#readelf: -Sw
+#readelf: -SW
 
 #failif
 #...
diff --git a/ld/testsuite/ld-x86-64/lea1i.d b/ld/testsuite/ld-x86-64/lea1i.d
index 9a91a101fde..2776dc4aee0 100644
--- a/ld/testsuite/ld-x86-64/lea1i.d
+++ b/ld/testsuite/ld-x86-64/lea1i.d
@@ -1,7 +1,7 @@
 #source: lea1.s
 #as: --64
 #ld: -melf_x86_64
-#readelf: -Sw
+#readelf: -SW
 
 #failif
 #...
diff --git a/ld/testsuite/ld-x86-64/lea1j.d b/ld/testsuite/ld-x86-64/lea1j.d
index a8cfc194b57..7763ee41197 100644
--- a/ld/testsuite/ld-x86-64/lea1j.d
+++ b/ld/testsuite/ld-x86-64/lea1j.d
@@ -1,7 +1,7 @@
 #source: lea1.s
 #as: --x32
 #ld: -Bsymbolic -shared -melf32_x86_64
-#readelf: -Sw
+#readelf: -SW
 
 #failif
 #...
diff --git a/ld/testsuite/ld-x86-64/lea1k.d b/ld/testsuite/ld-x86-64/lea1k.d
index bb02506c22a..8de52c0f387 100644
--- a/ld/testsuite/ld-x86-64/lea1k.d
+++ b/ld/testsuite/ld-x86-64/lea1k.d
@@ -1,7 +1,7 @@
 #source: lea1.s
 #as: --x32
 #ld: -pie -melf32_x86_64
-#readelf: -Sw
+#readelf: -SW
 
 #failif
 #...
diff --git a/ld/testsuite/ld-x86-64/lea1l.d b/ld/testsuite/ld-x86-64/lea1l.d
index 1df2bc1243d..3312bce901d 100644
--- a/ld/testsuite/ld-x86-64/lea1l.d
+++ b/ld/testsuite/ld-x86-64/lea1l.d
@@ -1,7 +1,7 @@
 #source: lea1.s
 #as: --x32
 #ld: -melf32_x86_64
-#readelf: -Sw
+#readelf: -SW
 
 #failif
 #...