aboutsummaryrefslogtreecommitdiff
path: root/elfcpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-06-18 10:46:18 +0100
committerNick Clifton <nickc@redhat.com>2020-06-18 10:46:18 +0100
commit9a17a136439c200b13a69d453f38824b7edc522c (patch)
tree47061f8acc088f9f273365bd54641f6eb6608e5d /elfcpp
parent581bea2c99751391fc49d104d5eacb85bfb63c96 (diff)
downloadbinutils-9a17a136439c200b13a69d453f38824b7edc522c.zip
binutils-9a17a136439c200b13a69d453f38824b7edc522c.tar.gz
binutils-9a17a136439c200b13a69d453f38824b7edc522c.tar.bz2
[PATCH] gold: Set DF_1_PIE for -pie
PR gold/26039 * layout.cc (Layout::finish_dynamic_section): Set DF_1_PIE. elfcpp/ * elfcpp.h (enum DF_1): New enum member DF_1_PIE.
Diffstat (limited to 'elfcpp')
-rw-r--r--elfcpp/ChangeLog5
-rw-r--r--elfcpp/elfcpp.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog
index a0d1e00..dc37f65 100644
--- a/elfcpp/ChangeLog
+++ b/elfcpp/ChangeLog
@@ -1,3 +1,8 @@
+2020-06-18 Fangrui Song <i@maskray.me>
+
+ PR gold/26039
+ * elfcpp.h (enum DF_1): New enum member DF_1_PIE.
+
2020-06-06 Alan Modra <amodra@gmail.com>
* powerpc.h: Rename
diff --git a/elfcpp/elfcpp.h b/elfcpp/elfcpp.h
index 339faad..9c7c629 100644
--- a/elfcpp/elfcpp.h
+++ b/elfcpp/elfcpp.h
@@ -913,7 +913,8 @@ enum DF_1
DF_1_INTERPOSE = 0x400,
DF_1_NODEFLIB = 0x800,
DF_1_NODUMP = 0x1000,
- DF_1_CONLFAT = 0x2000
+ DF_1_CONLFAT = 0x2000,
+ DF_1_PIE = 0x08000000
};
// Version numbers which appear in the vd_version field of a Verdef