+2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-elf/elf.exp (array_tests): Remove "pr12730".
+ (array_tests_pie): Remove "PIE pr12730".
+ (array_tests_static): Remove "static pr12730".
+
+ * ld-elf/pr12730.cc: Removed.
+ * ld-elf/pr12730.out: Likewise.
+
2011-05-09 Paul Brook <paul@codesourcery.com>
* ld-tic6x/discard-unwind.ld: New.
{"init array" "" "" {init.c} "init" "init.out"}
{"fini array" "" "" {fini.c} "fini" "fini.out"}
{"init array mixed" "" "" {init-mixed.c} "init-mixed" "init-mixed.out" "-I."}
- {"pr12730" "" "" {pr12730.cc} "pr12730" "pr12730.out" "" "c++"}
}
set array_tests_pie {
{"PIE preinit array" "-pie" "" {preinit.c} "preinit" "preinit.out" "-fPIE" }
{"PIE init array" "-pie" "" {init.c} "init" "init.out" "-fPIE"}
{"PIE fini array" "-pie" "" {fini.c} "fini" "fini.out" "-fPIE"}
{"PIE init array mixed" "-pie" "" {init-mixed.c} "init-mixed" "init-mixed.out" "-I. -fPIE"}
- {"PIE pr12730" "-pie" "" {pr12730.cc} "pr12730" "pr12730.out" "-fPIE" "c++"}
}
set array_tests_static {
{"static preinit array" "-static" "" {preinit.c} "preinit" "preinit.out"}
{"static init array" "-static" "" {init.c} "init" "init.out"}
{"static fini array" "-static" "" {fini.c} "fini" "fini.out"}
{"static init array mixed" "-static" "" {init-mixed.c} "init-mixed" "init-mixed.out" "-I."}
- {"static pr12730" "-static" "" {pr12730.cc} "pr12730" "pr12730.out" "" "c++"}
}
# NetBSD ELF systems do not currently support the .*_array sections.
+++ /dev/null
-#include <iostream>
-
-class Hello
-{
-public:
- Hello ()
- {}
-
- ~Hello ()
- {}
-
- void act ()
- { std::cout << "Hello, world!" << std::endl; }
-};
-
-
-template <class T>
-struct Foo
-{
- T* _M_allocate_single_object ()
- {
- return new T;
- }
-};
-
-static void __attribute__ (( constructor )) PWLIB_StaticLoader() {
- Foo<Hello> allocator;
- Hello* salut = allocator._M_allocate_single_object ();
- salut->act ();
-}
-
-
-int
-main (int /*argc*/,
- char* /*argv*/[])
-{
- return 0;
-}