summaryrefslogtreecommitdiffstats
path: root/sbe/sbefw
diff options
context:
space:
mode:
authorSachin Gupta <sgupta2m@in.ibm.com>2015-12-21 04:38:13 -0600
committerAmit J. Tendolkar <amit.tendolkar@in.ibm.com>2016-01-11 03:46:47 -0600
commit14aba54fbc2d149eee35c1f0019c6636e9cf494c (patch)
tree9a004d594810b46c9dd9d1f66345dcd5f93e811c /sbe/sbefw
parent66bbad3a702f45a73059384d8c2c98626c6d61d6 (diff)
downloadtalos-sbe-14aba54fbc2d149eee35c1f0019c6636e9cf494c.tar.gz
talos-sbe-14aba54fbc2d149eee35c1f0019c6636e9cf494c.zip
Remove eabi call from main
Change-Id: I5fd3d51ea01033407d47622274607d0b83ed5dc3 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22924 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Amit J. Tendolkar <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'sbe/sbefw')
-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