Revert the change for PR ld/r13909
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 22 May 2012 15:55:01 +0000 (15:55 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 22 May 2012 15:55:01 +0000 (15:55 +0000)
bfd/

PR ld/13909
* elf32-i386.c (elf_i386_create_dynamic_sections): Revert the
last change.
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.

ld/testsuite/

2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13909
* ld-i386/i386.exp: Revert the last change.
* ld-x86-64/x86-64.exp: Likewise.

* ld-i386/dummy.s: Removed.
* ld-i386/pr13909.d: Likewise.
* ld-x86-64/pr13909.d: Likewise.

bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-i386/dummy.s [deleted file]
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr13909.d [deleted file]
ld/testsuite/ld-x86-64/pr13909.d [deleted file]
ld/testsuite/ld-x86-64/x86-64.exp

index a92ebe894bfbc2dbd98dc9a16229b059ccafc108..88030e74388f0248f784aa3b5e4055c6ea095243 100644 (file)
@@ -1,3 +1,10 @@
+2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13909
+       * elf32-i386.c (elf_i386_create_dynamic_sections): Revert the
+       last change.
+       * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
+
 2012-05-22  Alan Modra  <amodra@gmail.com>
 
        * elflink.c (bfd_elf_discard_info): Look for next .eh_frame if
index e0d7fff451f93c67ad184e88aa91cda5c889fb42..84299ceb9e925a9d0ca0a70a6cccf32a3101dffd 100644 (file)
@@ -1016,8 +1016,7 @@ elf_i386_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
 
   if (!info->no_ld_generated_unwind_info
       && htab->plt_eh_frame == NULL
-      && htab->elf.splt != NULL
-      && bfd_get_section_by_name (dynobj, ".eh_frame") != NULL)
+      && htab->elf.splt != NULL)
     {
       flagword flags = get_elf_backend_data (dynobj)->dynamic_sec_flags;
       htab->plt_eh_frame
index 27354dfa94c00d9c9465284ca7e47395a7012407..1f490d41cb71c982a7a59b4a8dc1e467e483057e 100644 (file)
@@ -980,8 +980,7 @@ elf_x86_64_create_dynamic_sections (bfd *dynobj,
 
   if (!info->no_ld_generated_unwind_info
       && htab->plt_eh_frame == NULL
-      && htab->elf.splt != NULL
-      && bfd_get_section_by_name (dynobj, ".eh_frame") != NULL)
+      && htab->elf.splt != NULL)
     {
       const struct elf_x86_64_backend_data *const abed
        = get_elf_x86_64_backend_data (dynobj);
index b05b8d7e805cb99d8f51f94dafe0489faeef021c..c3ad1abc053581340aa1d4aa6878e69f537603da 100644 (file)
@@ -1,3 +1,13 @@
+2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/13909
+       * ld-i386/i386.exp: Revert the last change.
+       * ld-x86-64/x86-64.exp: Likewise.
+
+       * ld-i386/dummy.s: Removed.
+       * ld-i386/pr13909.d: Likewise.
+       * ld-x86-64/pr13909.d: Likewise.
+
 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/13909
diff --git a/ld/testsuite/ld-i386/dummy.s b/ld/testsuite/ld-i386/dummy.s
deleted file mode 100644 (file)
index 403f980..0000000
+++ /dev/null
@@ -1 +0,0 @@
-# Dummy
index 982e09f50f221ad58ac3dde10d9a59971a0d1df3..47f918fa187fafcbffe5508a36b971474c1623d2 100644 (file)
@@ -233,7 +233,6 @@ run_dump_test "pr12718"
 run_dump_test "pr12921"
 run_dump_test "pr12570a"
 run_dump_test "pr12570b"
-run_dump_test "pr13909"
 
 if { !([istarget "i?86-*-linux*"]
        || [istarget "i?86-*-gnu*"]
diff --git a/ld/testsuite/ld-i386/pr13909.d b/ld/testsuite/ld-i386/pr13909.d
deleted file mode 100644 (file)
index 388fd56..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#name: PR ld/13909
-#source: dummy.s
-#as: --32
-#ld: -melf_i386 -shared
-#readelf: -S --wide
-
-#failif
-#...
- +\[ [0-9]\] .eh_frame +PROGBITS +[0-9a-f]+ +[0-9a-f]+ 0+ +.*
-#...
diff --git a/ld/testsuite/ld-x86-64/pr13909.d b/ld/testsuite/ld-x86-64/pr13909.d
deleted file mode 100644 (file)
index 137c61f..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#name: PR ld/13909
-#source: dummy.s
-#as: --64
-#ld: -melf_x86_64 -shared
-#readelf: -S --wide
-
-#failif
-#...
- +\[ [0-9]\] .eh_frame +PROGBITS +[0-9a-f]+ +[0-9a-f]+ 0+ +.*
-#...
index 42203bb2fdac7d0db6841fc06837b96f42972575..7d2934f9b5213a53f0b8c11d33056e36430ae54e 100644 (file)
@@ -208,7 +208,6 @@ run_dump_test "pr12921"
 run_dump_test "pr13947"
 run_dump_test "pr12570a"
 run_dump_test "pr12570b"
-run_dump_test "pr13909"
 
 if { ![istarget "x86_64-*-linux*"] && ![istarget "x86_64-*-nacl*"]} {
     return