* 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.
This commit is contained in:
David S. Miller 2008-04-16 23:21:01 +00:00
parent dacec2a8bd
commit 7c41443585
5 changed files with 109 additions and 0 deletions

View file

@ -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.