2

By reading ELF header of a binary file in android system, I find that most executable files under /system/bin are ET_DYN, i.e., shared libraries. For example, the /system/bin/ls, lsmod, kill files are typed ET_DYN. In my opinion, these files are executable, and should be ET_EXEC type. So my question is: in android system, why executable files from Linux OS are compiled to ET_DYN type?

shijun zhao
  • 383
  • 3
  • 13

1 Answers1

1

i.e., shared libraries

They are not: they are position-independent executables.

Employed Russian
  • 199,314
  • 34
  • 295
  • 362