IRT: Replace __attribute__((constructor)) with explicit call in _start()

The previous change to IrtInit() lets us remove the IrtInit()
definition from plugin_main_nacl.cc on the Chrome side.  This change
will let us remove the call to IrtInit() from plugin_main_nacl.cc as
well.

The __attribute__((constructor)) function reportedly wasn't getting
run in the ARM build.  Doing an explicit call to IrtInit() is cleaner
and doesn't rely on linker tricks.

This requires declaring irt_support_private's dependency on libsrpc
etc. in library_deps.py so that tests/irt_compatibility continues to
link.  (Previously, its custom IRT wasn't including the IrtInit()
call.)

Also clean up the build so that irt_entry.o isn't treated specially.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3186
TEST=run_irt_compatibility_test_irt run_random_test_irt + Chrome trybots

Review URL: https://codereview.chromium.org/19571003

git-svn-id: svn://svn.chromium.org/native_client/trunk/src/native_client/site_scons@11819 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
1 file changed
tree: 76b6b0301f1da46ec6b6f6d891a63c8f706b8a34
  1. site_tools/
  2. gyp_extract.py
  3. site_init.py
  4. usage_log.py