GoogleGit

commitc9084427aa15259c8bfb9b13b979597a4abd1805[log][tgz]
authorNick Kralevich <nnk@google.com>Fri Jun 21 12:31:33 2013 -0700
committerNick Kralevich <nnk@google.com>Fri Jun 21 15:33:15 2013 -0700
tree3034d0cab47807e06a4d0ff17d3ad4b555753cb5
parent6819773103495a6fd81f024dc6711771320ae4ec[diff]
linker: Emit a warning on text relocations

Text relocations unnecessarily mark pages as dirty, preventing them
from being swapped out, wasting memory. Also, text relocations
prevent the code from running on certain hardened systems.

Print a message in logcat and stderr when we see a text relocation,
to encourage developers to fix their code.

Change-Id: I6051a7463911e090ae5727a355397d539669d5b9
1 file changed
tree: 3034d0cab47807e06a4d0ff17d3ad4b555753cb5
  1. .gitignore
  2. ABI-bugs.txt
  3. Android.mk
  4. CleanSpec.mk
  5. libc/
  6. libdl/
  7. libm/
  8. libstdc++/
  9. libthread_db/
  10. linker/
  11. tests/