OSDN Git Service

Cope with argv[0] being null in the dynamic linker.
authorElliott Hughes <enh@google.com>
Thu, 23 Feb 2017 01:31:41 +0000 (17:31 -0800)
committerElliott Hughes <enh@google.com>
Thu, 23 Feb 2017 01:37:52 +0000 (17:37 -0800)
commit30a36273ab761fb07892f7816b4873b6c48a0cea
tree98b9470ffdf08c56244bb66f2e595d8fda498ede
parentc9a840ac76c7cdbe6028ac91cdb8eb6698f0a854
Cope with argv[0] being null in the dynamic linker.

Somewhat unsurprisingly, very few commands are happy to be run like this,
in particular multiplexed commands like toybox. But that's no reason for
the linker to get in the way too.

Bug: http://b/33276926
Test: new test
Change-Id: I6dd71ea0183f4da83571039c2198ebb6ed38520e
linker/linker_logger.cpp
tests/unistd_test.cpp