From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24184 invoked by alias); 12 Oct 2013 20:05:31 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 24171 invoked by uid 89); 12 Oct 2013 20:05:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SPF_NEUTRAL autolearn=no version=3.3.2 X-HELO: popelka.ms.mff.cuni.cz Received: from popelka.ms.mff.cuni.cz (HELO popelka.ms.mff.cuni.cz) (195.113.20.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 12 Oct 2013 20:05:29 +0000 Received: from domone.kolej.mff.cuni.cz (popelka.ms.mff.cuni.cz [195.113.20.131]) by popelka.ms.mff.cuni.cz (Postfix) with ESMTPS id 16D2D68102; Sat, 12 Oct 2013 22:05:25 +0200 (CEST) Received: by domone.kolej.mff.cuni.cz (Postfix, from userid 1000) id E77995F96A; Sat, 12 Oct 2013 22:05:24 +0200 (CEST) Date: Sat, 12 Oct 2013 20:05:00 -0000 From: =?utf-8?B?T25kxZllaiBCw61sa2E=?= To: David Miller Cc: libc-ports@sourceware.org Subject: Close bug 11615? Message-ID: <20131012200524.GA9399@domone.podge> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00013.txt.bz2 Hi David, Following patch is for handling broken binaries on mips with RLD_MAP set to 0. This was caused by bug in binutils which was fixed two years ago, see. I wanted to be sure that it is no longer relevant. https://sourceware.org/bugzilla/show_bug.cgi?id=11615 diff --git a/sysdeps/mips/dl-machine.h b/sysdeps/mips/dl-machine.h index 123b4d6..3bed59c 100644 --- a/sysdeps/mips/dl-machine.h +++ b/sysdeps/mips/dl-machine.h @@ -70,7 +70,8 @@ /* If there is a DT_MIPS_RLD_MAP entry in the dynamic section, fill it in with the run-time address of the r_debug structure */ #define ELF_MACHINE_DEBUG_SETUP(l,r) \ -do { if ((l)->l_info[DT_MIPS (RLD_MAP)]) \ +do { if ((l)->l_info[DT_MIPS (RLD_MAP)] && \ + (l)->l_info[DT_MIPS (RLD_MAP)]->d_un.d_ptr) \ *(ElfW(Addr) *)((l)->l_info[DT_MIPS (RLD_MAP)]->d_un.d_ptr) = \ (ElfW(Addr)) (r); \ } while (0)