PNaCl dynamic loading: Extend pnacl-translate to be able to translate PSOs

Add a "-pso" option to tell pnacl-translate to treat the input as a PSO
and translate it to an ELF DSO.

In principle, pnacl-translate could auto-detect the difference between a
pexe and a PSO, but that would involve opening the file to check which
symbols it defines, which might slow down pnacl-translate unnecessarily.

The minimal test for this just checks that the DSO is created
successfully.  I've also tested this against the PNaCl dynamic loader
implementation that I'll add in a follow-on change.


Review URL:

git-svn-id: svn:// fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
1 file changed
tree: 0d6f700388de5d9fcce858545b4c11d1d5a71ae3
  1. site_tools/