From d7703d3176d225d5743b21811d888619eba39e82 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 21 Jan 2022 10:20:50 -0300 Subject: malloc: Remove LD_TRACE_PRELINKING usage from mtrace The fix for BZ#22716 replacde LD_TRACE_LOADED_OBJECTS with LD_TRACE_PRELINKING so mtrace could record executable address position. To provide the same information, LD_TRACE_LOADED_OBJECTS is extended where a value or '2' also prints the executable address as well. It avoid adding another loader environment variable to be used solely for mtrace. The vDSO will be printed as a default library (with '=>' pointing the same name), which is ok since both mtrace and ldd already handles it. The mtrace script is changed to also parse the new format. To correctly support PIE and non-PIE executables, both the default mtrace address and the one calculated as used (it fixes mtrace for non-PIE exectuable as for BZ#22716 for PIE). Checked on x86_64-linux-gnu. Reviewed-by: Siddhesh Poyarekar --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 9bef105..88815bc 100644 --- a/NEWS +++ b/NEWS @@ -193,6 +193,10 @@ Deprecated and removed features, and other changes affecting compatibility: removal of the LD_TRACE_PRELINKING, and LD_USE_LOAD_BIAS, environment variables and their functionality in the dynamic loader. +* The LD_TRACE_PRELINKING environment variable has been removed. Similar + functionality to obtain the program mapping address can be achieved by + using LD_TRACE_LOADED_OBJECTS to value of 2. + Changes to build and runtime requirements: * The audit module interface version LAV_CURRENT is increased to enable -- cgit v1.1