[PATCH] bfd: fix string table generation for XCOFF64 .debug section

CHIGOT, CLEMENT clement.chigot@atos.net
Wed Apr 21 13:37:32 GMT 2021


String table inside XCOFF64 .debug section needs a 4-byte length field
instead of a 2-byte length like on XCOFF32.

bfd/ChangeLog:
2021-04-19  Clément Chigot  <clement.chigot@atos.net>

	* 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bfd-fix-string-table-generation-for-XCOFF64-.debug-s.patch
Type: application/octet-stream
Size: 5297 bytes
Desc: 0001-bfd-fix-string-table-generation-for-XCOFF64-.debug-s.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20210421/1c23c02d/attachment.obj>


More information about the Binutils mailing list