android: fix the "end of text" sentinel with lld.

For code ordering (and --madvise-random-executable-code), we put a
sentinel function at the end of .text. This doesn't work anymore with
lld, as the ordering file doesn't support wildcards.
Use a different mechanism (putting the sentinel code in its own section)
when lld is used.

Bug: 778087
Change-Id: Ie5395cb0d454f2798fccbb15f93ca6e3c0035aef
Reviewed-on: https://chromium-review.googlesource.com/868431
Commit-Queue: Benoit L <lizeb@chromium.org>
Reviewed-by: Matthew Cary <mattcary@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Reviewed-by: Egor Pasko <pasko@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#529490}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2b31dbb2b212be2402e583d0ce53d30fb7892a5c
1 file changed
tree: 038685f4d27bff44b29c67a3a0c70a1a49757175
  1. tools/