ELF: Updated comments for ET_EXEC and ET_DYN
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 25 May 2020 18:26:48 +0000 (11:26 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 25 May 2020 18:26:48 +0000 (11:26 -0700)
include/elf/common.h has

 #define ET_EXEC         2       /* Executable file */
 #define ET_DYN          3       /* Shared object file */

These predate PIE:

https://groups.google.com/forum/#!topic/generic-abi/mBKlSNldFW4

Updated comments to

 #define ET_EXEC         2       /* Position-dependent executable file */
 #define ET_DYN          3       /* Position-independent executable or
                                    shared object file */

* elf/common.h: Update comments for ET_EXEC and ET_DYN.

include/ChangeLog
include/elf/common.h

index c309780544e8ef18855eea631b915a108b6497fc..53f50e513f4459f6d73f12a4c8bee05c7251ad75 100644 (file)
@@ -1,3 +1,7 @@
+2020-05-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf/common.h: Update comments for ET_EXEC and ET_DYN.
+
 2020-05-20  Nelson Chu  <nelson.chu@sifive.com>
 
        * opcode/riscv.h: Include "bfd.h" to support bfd_boolean.
index 26e6fbc8e6882c26d90a7186c7f5c22de6d8456d..4d94c4fd5b34c3d59409950ae6141aa308695bf9 100644 (file)
@@ -91,8 +91,9 @@
 
 #define ET_NONE                0       /* No file type */
 #define ET_REL         1       /* Relocatable file */
-#define ET_EXEC                2       /* Executable file */
-#define ET_DYN         3       /* Shared object file */
+#define ET_EXEC                2       /* Position-dependent executable file */
+#define ET_DYN         3       /* Position-independent executable or
+                                  shared object file */
 #define ET_CORE                4       /* Core file */
 #define ET_LOOS                0xFE00  /* Operating system-specific */
 #define ET_HIOS                0xFEFF  /* Operating system-specific */
This page took 0.024817 seconds and 4 git commands to generate.