From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id E2D353858C52 for ; Tue, 26 Apr 2022 03:50:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E2D353858C52 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1njCDC-0002DQ-BZ for binutils@sourceware.org; Tue, 26 Apr 2022 05:50:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: binutils@sourceware.org From: Jon Forrest Subject: Question About 'ar' Output Date: Mon, 25 Apr 2022 20:46:25 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FORGED_MUA_MOZILLA, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2022 03:50:05 -0000 (GNU ar version 2.37-10.fc35) As a learning exercise, I'm trying to duplicate some of what the 'ar' command does. (There's nothing wrong with 'ar'). I have a .a library that ar shows has the following content: % ar t libctf.a libctf_la-ctf-archive.o libctf_la-ctf-dump.o libctf_la-ctf-create.o libctf_la-ctf-decl.o libctf_la-ctf-error.o libctf_la-ctf-hash.o libctf_la-ctf-labels.o [rest omitted] When I run my test program I see / // /0 /25 /47 /71 /93 [rest omitted] When I look at my .a library using 'od' I can see the names starting with '/' characters. I can also see the names starting with 'libctf'. I don't understand what the slash names are, nor how they're mapped to the real names. I tried looking at the 'ar' source code but I didn't see anything that jumped out at me. What am I missing? Cordially, Jon Forrest