summaryrefslogtreecommitdiffhomepage
path: root/src/arbits
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-04 19:33:09 +0000
committermidipix <writeonce@midipix.org>2024-02-04 19:56:33 +0000
commit8a77f66005f77d9f8173c1e646ff521517d9c452 (patch)
tree2f6d70a318d30bb869f8dac092e52a72e2aad86e /src/arbits
parentfcfea7a7220dcd73e945197079c7bd8d67a4cade (diff)
downloadslibtool-8a77f66005f77d9f8173c1e646ff521517d9c452.tar.bz2
slibtool-8a77f66005f77d9f8173c1e646ff521517d9c452.tar.xz
struct slbt_archive_meta: store reference to the (optional) long names member.
Diffstat (limited to 'src/arbits')
-rw-r--r--src/arbits/slbt_archive_meta.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arbits/slbt_archive_meta.c b/src/arbits/slbt_archive_meta.c
index dae7202..1af0ab8 100644
--- a/src/arbits/slbt_archive_meta.c
+++ b/src/arbits/slbt_archive_meta.c
@@ -830,6 +830,12 @@ int slbt_get_archive_meta(
/* pe/coff armap attributes (second linker member) */
(void)m->armeta.a_armap_pecoff;
+ /* reference to the long names member */
+ if (arlongnames)
+ for (idx=0; idx<nentries && !m->armeta.a_arref_longnames; idx++)
+ if (m->memberv[idx]->ar_member_data == arlongnames)
+ m->armeta.a_arref_longnames = m->memberv[idx];
+
/* member vector */
m->armeta.a_memberv = m->memberv;