From 9a17a136439c200b13a69d453f38824b7edc522c Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 18 Jun 2020 10:46:18 +0100 Subject: [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. --- elfcpp/elfcpp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elfcpp/elfcpp.h') 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 -- cgit v1.1