From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 581D73851C3A; Sun, 7 Feb 2021 22:33:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 581D73851C3A From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug general/27366] 0.183: test suite is failing on linking dwfl-proc-attach Date: Sun, 07 Feb 2021 22:33:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2021 22:33:13 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27366 --- Comment #3 from Mark Wielaard --- I see you are using -flto=3Dauto. Sadly LTO isn't supported at the moment. Although it would be nice if it didn't totally break with -flto-partition= =3Dnone. The problem with lto might be: /* HACK. This is a simple workaround for a combination of old glibc and valgrind. libdw will try to dlopen libdebuginfod this causes some unsuppressable memory leak warnings when the process is multi-threaded under valgrind because of some bad backtraces. So simply override dlopen and always return NULL so libdebuginfod (and libcurl) are never loaded. This test doesn't rely on libdebuginfod anyway. */ void *dlopen (void) { return NULL; } Maybe it needs some __attribute__((__used__)) to make sure it is kept aroun= d? --=20 You are receiving this mail because: You are on the CC list for the bug.=