[PATCH v3 0/6] elf: Use mmap to map in section contents

Alan Modra amodra@gmail.com
Wed Mar 6 23:00:12 GMT 2024


On Wed, Mar 06, 2024 at 12:47:25PM -0800, H.J. Lu wrote:
> Changes in v3:

I ran my target tests against this version and found two regressions.
mipsisa32r2el-elf  +FAIL: MIPS eh-frame 3
mipstx39-elf  +FAIL: MIPS eh-frame 3

The keep_memory change causes this code in
bfd/elfxx-mips.c:_bfd_mips_elf_eh_frame_address_size to fail:

      if (sec->reloc_count > 0
	  && elf_section_data (sec)->relocs != NULL
	  && (ELF32_R_TYPE (elf_section_data (sec)->relocs[0].r_info)
	      == R_MIPS_64))
	return 8;

Yes, the test also fails with --no-keep-memory so this is really a bug
in the mips backend, but we should try to not break this code.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list