fix-vtv-link-order.patch (737B)
1put vtv_end.o in front of postdep_objects_CXX 2having it after crtendS.o leads to missing zero termination in eh_frame section 3 4This is in line with comment in libgcc/vtv_end.c: 5 6 When the GCC driver inserts vtv_start.o into the link line (just 7 after crtbegin.o) it also inserts vtv_end.o into the link line, 8 just before crtend.o. 9 10--- libstdc++-v3/configure 11+++ libstdc++-v3/configure 12@@ -15443,7 +15443,7 @@ 13 14 if test "$enable_vtable_verify" = yes; then 15 predep_objects_CXX="${predep_objects_CXX} ${glibcxx_builddir}/../libgcc/vtv_start.o" 16- postdep_objects_CXX="${postdep_objects_CXX} ${glibcxx_builddir}/../libgcc/vtv_end.o" 17+ postdep_objects_CXX="${glibcxx_builddir}/../libgcc/vtv_end.o ${postdep_objects_CXX}" 18 fi 19 20