a1c248069deee17c01bb35c84d5134091c954600
[coreboot.git] / util / crossgcc / patches / gcc-4.4.2_less-junk-in-crtbegin.patch
1 --- t/gcc-4.4.2/gcc/crtstuff.c  Fr. Apr 10 01:23:07 2009
2 +++ gcc-4.4.2/gcc/crtstuff.c    Di. Jul 28 16:43:28 2009
3 @@ -204,6 +204,7 @@
4    = { (func_ptr) (-1) };
5  #endif /* __DTOR_LIST__ alternatives */
6
7 +#if 0
8  #ifdef USE_EH_FRAME_REGISTRY
9  /* Stick a label at the beginning of the frame unwind info so we can register
10     and deregister it with the exception handling library code.  */
11 @@ -219,6 +220,7 @@
12    __attribute__ ((unused, section(JCR_SECTION_NAME), aligned(sizeof(void*))))
13    = { };
14  #endif /* JCR_SECTION_NAME */
15 +#endif
16
17  #if defined(INIT_SECTION_ASM_OP) || defined(INIT_ARRAY_SECTION_ASM_OP)
18
19 @@ -309,6 +311,7 @@
20    }
21  #endif /* !defined(FINI_ARRAY_SECTION_ASM_OP) */
22
23 +#if 0
24  #ifdef USE_EH_FRAME_REGISTRY
25  #ifdef CRT_GET_RFIB_DATA
26    /* If we used the new __register_frame_info_bases interface,
27 @@ -320,6 +323,7 @@
28      __deregister_frame_info (__EH_FRAME_BEGIN__);
29  #endif
30  #endif
31 +#endif
32
33    completed = 1;
34  }
35 @@ -333,6 +337,7 @@
36    = { __do_global_dtors_aux };
37  #endif /* !defined(FINI_SECTION_ASM_OP) */
38
39 +#if 0
40  #if defined(USE_EH_FRAME_REGISTRY) || defined(JCR_SECTION_NAME)
41  /* Stick a call to __register_frame_info into the .init section.  For some
42     reason calls with no arguments work more reliably in .init, so stick the
43 @@ -364,6 +369,7 @@
44      }
45  #endif /* JCR_SECTION_NAME */
46  }
47 +#endif
48
49  #ifdef INIT_SECTION_ASM_OP
50  CRT_CALL_STATIC_FUNCTION (INIT_SECTION_ASM_OP, frame_dummy)