public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Question About 'ar' Output
@ 2022-04-26  3:46 Jon Forrest
  2022-04-26  6:15 ` Jan Beulich
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Forrest @ 2022-04-26  3:46 UTC (permalink / raw)
  To: binutils

(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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-27  6:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26  3:46 Question About 'ar' Output Jon Forrest
2022-04-26  6:15 ` Jan Beulich
2022-04-26 19:17   ` Jon Forrest
2022-04-27  5:48     ` Jan Beulich
2022-04-27  6:28     ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).