From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from latitanza.investici.org (latitanza.investici.org [82.94.249.234]) by sourceware.org (Postfix) with ESMTPS id 59C253858403 for ; Thu, 30 Dec 2021 21:53:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 59C253858403 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4JQ28B0QLLzGp4J for ; Thu, 30 Dec 2021 21:53:14 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: andrea.monaco@autistici.org) by localhost (Postfix) with ESMTPSA id 4JQ2896jGVzGp49 for ; Thu, 30 Dec 2021 21:53:13 +0000 (UTC) From: Andrea Monaco To: libc-alpha@sourceware.org Subject: Comment cites non-existent fields of struct link_map Date: Thu, 30 Dec 2021 22:53:13 +0100 Message-ID: <87sfu9lpyu.fsf@autistici.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2021 21:53:18 -0000 In dl_main (elf/rtld.c), after creating a struct link_map called main_map for the main executable and filling some fields, there's a comment that says /* At this point we are in a bit of trouble. We would have to fill in the values for l_dev and l_ino. But in general we do not know where the file is. We also do not handle AT_EXECFD even if it would be passed up. But a struct link_map has no fields l_dev and l_ino. Maybe they mean just l_name, or they talk about something totally different? Thanks, Andrea Monaco