From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3333 invoked by alias); 6 May 2014 18:11:34 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 3294 invoked by uid 48); 6 May 2014 18:11:30 -0000 From: "srk31 at srcf dot ucam.org" To: glibc-bugs@sourceware.org Subject: [Bug manual/16262] Semantics of dladdr don't quite match documentation Date: Tue, 06 May 2014 18:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: manual X-Bugzilla-Version: 2.17 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: srk31 at srcf dot ucam.org X-Bugzilla-Status: NEW 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: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-05/txt/msg00038.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16262 --- Comment #8 from Stephen Kell --- Thanks very much to Michael Kerrisk for noticing and fixing this (before I even got around to reporting it to man-pages :-). I've also produced a (lightly tested) patch to glibc which optionally enables the alternative behaviour. It is requested using the flags argument to dladdr1(). I realise there mightn't be much enthusiasm for the use cases of this patch -- my symbol-iteration case, or for porting glibc to non-ELF platforms (where this behaviour is the only one that's portable). But I thought I'd post it anyway. The patch attached applies to git as of commit d359bcc2adc063bae511b1a42a01a301b53c4d39 (15th Jan 2014). -- You are receiving this mail because: You are on the CC list for the bug.