From bdd2aaf69ea2e8c89f431bdf72516e2d6503891a Mon Sep 17 00:00:00 2001 From: Cl?ment Chigot Date: Thu, 22 Apr 2021 15:31:02 +0100 Subject: fix string table generation for XCOFF64 .debug section bfd * hash.c (struct bfd_strtab_hash): Remove xcoff field. Add length_field_size field. (_bfd_stringtab_init): Change prototype. Adapt to new length_field_size. (_bfd_xcoff_stringtab_init): Likewise. (_bfd_stringtab_add): Likewise. (_bfd_stringtab_emit): Likewise. * libbfd-in.h (_bfd_xcoff_stringtab_init): Change prototype. * libbfd.h: Regenerate. * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Call _bfd_xcoff_stringtab_init with isxcoff64 value. --- bfd/libbfd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/libbfd.h') diff --git a/bfd/libbfd.h b/bfd/libbfd.h index bee1a1f..fba2999 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -766,7 +766,7 @@ extern struct bfd_strtab_hash *_bfd_stringtab_init /* Create an XCOFF .debug section style string table. */ extern struct bfd_strtab_hash *_bfd_xcoff_stringtab_init - (void) ATTRIBUTE_HIDDEN; + (bool isxcoff64) ATTRIBUTE_HIDDEN; /* Free a string table. */ extern void _bfd_stringtab_free -- cgit v1.1