aboutsummaryrefslogtreecommitdiff
path: root/include/elf
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-05-25 11:26:48 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-05-25 11:26:48 -0700
commit68dc60e6a7cf8924a97a23d3c8a73703c2ff79d5 (patch)
tree29dd2cb8d6c9734e4ef1a98bd9749727ed2a30d7 /include/elf
parent043e2e02c0f4af920edca74247ff8e743126d723 (diff)
downloadgdb-68dc60e6a7cf8924a97a23d3c8a73703c2ff79d5.zip
gdb-68dc60e6a7cf8924a97a23d3c8a73703c2ff79d5.tar.gz
gdb-68dc60e6a7cf8924a97a23d3c8a73703c2ff79d5.tar.bz2
ELF: Updated comments for ET_EXEC and ET_DYN
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.
Diffstat (limited to 'include/elf')
-rw-r--r--include/elf/common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/elf/common.h b/include/elf/common.h
index 26e6fbc..4d94c4f 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -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 */