From 1be3ee97232661295b95528e71f405624cd0d1e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vivek=20Das=C2=A0Mohapatra?= <vivek@collabora.co.uk>
Date: Fri, 19 May 2017 20:06:38 +0100
Subject: [PATCH] set_elf_constraints is now called from init_ldlibs

---
 capsule/capsule-dlmopen.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/capsule/capsule-dlmopen.c b/capsule/capsule-dlmopen.c
index 90132a10e..1eb53e060 100644
--- a/capsule/capsule-dlmopen.c
+++ b/capsule/capsule-dlmopen.c
@@ -663,9 +663,6 @@ _dso_iterate_sections (ldlibs_t *ldlibs, int idx)
                  ldlibs->needed[idx].dso,
                  ldlibs->needed[idx].path );
 
-    if( idx == 0 )
-        set_elf_constraints( ldlibs );
-
     while((scn = elf_nextscn( ldlibs->needed[idx].dso, scn )) != NULL)
     {
         GElf_Shdr shdr = {};
-- 
GitLab