[PATCH] add section caches to coff_data_type
Tom Tromey
tom@tromey.com
Thu May 4 12:16:17 GMT 2023
>>>>> Oleg Tolmatcev via Binutils <binutils@sourceware.org> writes:
> Hello all,
> final patch to ld. All the patches together improve linking
> performance from 9 minutes to 1 minute when linking rpcs3 in debug
> mode with BUILD_LLVM=ON.
> + pe->coff.section_by_index
> + = htab_create (10, htab_hash_section_index, htab_eq_section_index, NULL);
> + pe->coff.section_by_target_index = htab_create (
> + 10, htab_hash_section_target_index, htab_eq_section_target_index, NULL);
I think something has to call htab_delete on these to avoid a memory leak.
Tom
More information about the Binutils
mailing list