[binutils-gdb] ELF: Updated comments for ET_EXEC and ET_DYN
H.J. Lu
hjl@sourceware.org
Mon May 25 18:28:21 GMT 2020
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=68dc60e6a7cf8924a97a23d3c8a73703c2ff79d5
commit 68dc60e6a7cf8924a97a23d3c8a73703c2ff79d5
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon May 25 11:26:48 2020 -0700
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.
Diff:
---
include/ChangeLog | 4 ++++
include/elf/common.h | 5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/include/ChangeLog b/include/ChangeLog
index c309780544e..53f50e513f4 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -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.
diff --git a/include/elf/common.h b/include/elf/common.h
index 26e6fbc8e68..4d94c4fd5b3 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 */
More information about the Binutils-cvs
mailing list