From 1cd0dedb29f3e96116c0d853d6441453d6a11cf8 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 16 Apr 2008 23:21:01 +0000 Subject: elfcpp/ * elfcpp.h (DF_1_NOW, DF_1_GLOBAL, DF_1_GROUP, DF_1_NODELETE, DF_1_LOADFLTR, DF_1_INITFIRST, DF_1_NOOPEN, DF_1_ORIGIN, DF_1_DIRECT, DF_1_TRANS, DF_1_INTERPOSE, DF_1_NODEFLIB, DF_1_NODUMP, DF_1_CONLFAT): New enum constants. gold/ * options.h (DEFINE_enable): New macro. (new_dtags): New enable option. (initfirst, interpose, loadfltr, nodefaultlib, nodelete, nodlopen, nodump): New -z options. * layout.cc (Layout:finish_dynamic_section): If new dtags enabled, emit DT_RUNPATH. Also, emit a DT_FLAGS_1 containing any specified -z flags. --- elfcpp/elfcpp.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'elfcpp/elfcpp.h') diff --git a/elfcpp/elfcpp.h b/elfcpp/elfcpp.h index b2ccbf569c..a2a72521f6 100644 --- a/elfcpp/elfcpp.h +++ b/elfcpp/elfcpp.h @@ -688,6 +688,26 @@ enum DF DF_STATIC_TLS = 0x10 }; +// Flags found in the DT_FLAGS_1 dynamic element. + +enum DF_1 +{ + DF_1_NOW = 0x1, + DF_1_GLOBAL = 0x2, + DF_1_GROUP = 0x4, + DF_1_NODELETE = 0x8, + DF_1_LOADFLTR = 0x10, + DF_1_INITFIRST = 0x20, + DF_1_NOOPEN = 0x40, + DF_1_ORIGIN = 0x80, + DF_1_DIRECT = 0x100, + DF_1_TRANS = 0x200, + DF_1_INTERPOSE = 0x400, + DF_1_NODEFLIB = 0x800, + DF_1_NODUMP = 0x1000, + DF_1_CONLFAT = 0x2000, +}; + // Version numbers which appear in the vd_version field of a Verdef // structure. -- cgit v1.2.1