NetBSD Problem Report #16983

Received: (qmail 14959 invoked from network); 23 May 2002 04:23:27 -0000
Message-Id: <20020523042326.8F98A7D6B@yeah-baby.shagadelic.org>
Date: Wed, 22 May 2002 21:23:26 -0700 (PDT)
From: thorpej@shagadelic.org
Reply-To: thorpej@shagadelic.org
To: gnats-bugs@gnats.netbsd.org
Subject: ld.elf_so is lame about how it handles program sections
X-Send-Pr-Version: 3.95

>Number:         16983
>Category:       bin
>Synopsis:       ld.elf_so is lame about how it handles program sections
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 23 04:24:00 +0000 2002
>Closed-Date:    Thu Jul 06 00:16:42 +0000 2023
>Last-Modified:  Thu Jul 06 00:16:42 +0000 2023
>Originator:     Jason R Thorpe
>Release:        NetBSD 1.5ZC
>Organization:
Wasabi Systems, Inc.
>Environment:


System: NetBSD yeah-baby.shagadelic.org 1.5ZC NetBSD 1.5ZC (YEAH-BABY-XP) #8: Sat May 4 15:32:58 PDT 2002 thorpej@yeah-baby.shagadelic.org:/u1/netbsd/src/sys/arch/i386/compile/YEAH-BABY-XP i386
Architecture: i386
Machine: i386
>Description:
	_rtld_digest_phdr() in headers.c asserts that there are exactly
	2 PT_LOAD sections in the shared object.  This is not always true.

>How-To-Repeat:
	Code inspection.  Or lose badly with a shared object with
	other than 2 PT_LOAD sections.

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 23 Sep 2018 13:50:47 +0000
State-Changed-Why:
I suspect it doesn't do this any more, but I'm not sure.


From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/16983 (ld.elf_so is lame about how it handles program
 sections)
Date: Sun, 23 Sep 2018 22:20:15 +0300

 revision 1.62
 date: 2017-06-23 18:29:21 +0300;  author: joerg;  state: Exp;  lines: +11 -12;  commitid: 9duF2Q9DPoICLvWz;
 branches:  1.62.4;
 Remove old assert that only two segments exist. The rest of the code has
 been changed to cope with more and at least Go actively creates them.
 Adjust the mapping size computation to use the maximum and not depend on
 PT_LOAD segments to be in order.

 -uwe

State-Changed-From-To: feedback->closed
State-Changed-By: uwe@NetBSD.org
State-Changed-When: Sun, 23 Sep 2018 19:42:43 +0000
State-Changed-Why:
Fixed (See above).


State-Changed-From-To: closed->open
State-Changed-By: uwe@NetBSD.org
State-Changed-When: Tue, 25 Sep 2018 11:48:09 +0000
State-Changed-Why:
There is still this limitation in _rtld_map_object which makes ldd complain
about such objects.


State-Changed-From-To: open->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Thu, 06 Jul 2023 00:16:42 +0000
State-Changed-Why:
fixed in https://mail-index.netbsd.org/source-changes/2023/01/06/msg142652.html


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.