From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27112 invoked from network); 16 Oct 2023 01:22:59 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 16 Oct 2023 01:22:59 -0000 Received: (qmail 3775 invoked by uid 550); 16 Oct 2023 01:22:55 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 26252 invoked from network); 16 Oct 2023 01:07:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google-2018; t=1697418420; x=1698023220; darn=lists.openwall.com; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=sqSVqYRyh+jN1fS84NYCEgcT6lqOZrZhbp2KDZ8YWLk=; b=IiCXVwy/0ToPml1hCIH6oNlOQndxcqfgC/RMSptrf1n9qyf87G2hPlTpHjEJjcRwl0 PB7wASPMYO5+brIAneai0HFofvRCgTapdhtwNO/gX8uZLe65nWlxNJsFeHNbj4oX0Sq2 be2of/40DvKx9h2j1A3DqMWM/jdlmkNSK9kOWVe8uhFLSOSH5WBmJsLmH3tLDvBTDSCe g9weMQaxWvACKIY7o7NeJ3l7oQv0AGodjX11IQwtV/rlulKv/gIGbl49xj/tRrpWk5K+ Cd7LaY2MINDmvoJUQSMSTAk8mvA4vMcN7+WWaDm4SKdb+oMXz2NhiAPvz2n3K8sVdFp7 dcbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697418420; x=1698023220; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sqSVqYRyh+jN1fS84NYCEgcT6lqOZrZhbp2KDZ8YWLk=; b=NXp8+hcEZzx8Xu9Mp0FptasFppMxfJPN1215j1+yc1aWnPHeLwCxzgpTRiEggoFIRw zJQe/GndNefziXvc2eE2J2CekoOaiumdeJ2gaHr6XrjAhdqPfAnXFdkKSZFX0Cx08kVz FsBoFYOGCQNoz8y7WOs4giaSz9lj+VGRg3fanxg/YRh+OUeSfzFjSDTZyeV2gHYku+NE XO6CwKAPvkKCaT0eK+2CsDgEYt82TDQjlnaVUNfQJCw+v9EzdlwAYE/frbcS0hGsI5Qv IdQKARW2CiVlBZyPi+Z6FEZViuc5VRB9lLiLQ4x7Iou9f00tDJBczbmjeNQe+S6XfpeL yopA== X-Gm-Message-State: AOJu0YzMgS0J6DqYHpfEOKtXOjoDHmEsjutYiOyfgNaIuHFzarGEqgsq KhaX+sp+Rl/0sQoRHoLszeRh+C1phEYEjK+vUeDDJ6YiAp4tZ1sgfL0m0g== X-Google-Smtp-Source: AGHT+IFShfrc7PAOkVhOQ4R6ZRKjb6cF6jPXKmZt5mtxr3HJPPmglqj6EZAw+zjemC/1mVH0y23BWvM+hbdm9fw9y68= X-Received: by 2002:a05:6a20:9152:b0:160:83e1:712f with SMTP id x18-20020a056a20915200b0016083e1712fmr37406806pzc.23.1697418420137; Sun, 15 Oct 2023 18:07:00 -0700 (PDT) MIME-Version: 1.0 From: Farid Zakaria Date: Sun, 15 Oct 2023 18:06:48 -0700 Message-ID: To: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="000000000000f80cbf0607cb056d" Subject: [musl] Getting access to section data during dynlink.c --000000000000f80cbf0607cb056d Content-Type: text/plain; charset="UTF-8" Hi! I'd like to read some section data during dynlink.c Does anyone have any good suggestions on the best way to do so? I believe most ELF files ask for the load to start from the start of the ELF file. I see in dynlink.c the kernel sends AT_PHDR as an auxiliary vector -- Should I try applying a fixed offset from it to get to the start of the ehdr ? Any advice is appreciated. Please include me in the CC for the reply. I can't recall if I've subscribed. --000000000000f80cbf0607cb056d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi!

I'd like to read some section d= ata during dynlink.c
Does anyone have any good suggestions on the= best way to do so?
I believe most ELF files ask for the load to start f= rom the start of the ELF file.

I see in dynlink.c = the kernel sends=C2=A0AT_PHDR as an auxiliary vector --
Should I = try applying a fixed offset from it to get to the start of the ehdr ?
Any advice is appreciated.

Please include me in = the CC for the reply.
I can't recall if I've subscribed.
--000000000000f80cbf0607cb056d--