summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbe/sbefw/sbemain.C10
1 files changed, 2 insertions, 8 deletions
diff --git a/sbe/sbefw/sbemain.C b/sbe/sbefw/sbemain.C
index 622d9eb3..041dc0fe 100644
--- a/sbe/sbefw/sbemain.C
+++ b/sbe/sbefw/sbemain.C
@@ -60,9 +60,8 @@ extern "C"
extern void (*ctor_start_address)() __attribute__ ((section (".rodata")));
extern void (*ctor_end_address)() __attribute__ ((section (".rodata")));
// This function will be used to do any C++ handling required before doing
-// any main job. Ideally the call to this function should get generated by
-// compiler. But as this is not happening in our codebase,
-// we are calling it explicitly in our main code.
+// any main job. Call to this function should get generated by
+// compiler.
void __eabi()
{
void(**ctors)() = &ctor_start_address;
@@ -239,11 +238,6 @@ uint32_t main(int argc, char **argv)
SBE_ENTER(SBE_FUNC);
int l_rc = 0;
- //@NOTE: This should be first function to call as this will do
- //C++ initialisation. We may want to move it to loader butPK is not
- // initialised at that time and some constroctors may depend on pk code.
- __eabi();
-
// @TODO via RTC : 128818
// Explore on reclaiming the stack
// used by this Initialization code
OpenPOWER on IntegriCloud