This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARM BPABI PT_DYNAMIC segment


Hi Mark,

This patch implements changes relating to the ARM BPABI PT_DYNAMIC
segment.  There should be a PT_DYNAMIC segment, even though the
.dynamic section is not marked SEC_ALLOC.  Furthermore, DT_HASH,
DT_STRTAB, etc. need to use file offsets, not VMA addresses.  I had to
create a new linker script so as to get the VMA address for .hash,
etc., set to zero in the ELF output file, as required, since these
sections are not loaded at runtime under the BPABI.

OK?

2004-09-03 Mark Mitchell <mark@codesourcery.com>

	* elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it.
	* elf.c (_bfd_elf_make_dynamic_segment): New function, split out
	from ...
	(map_sections_to_segments): ... here.  Use it.  Assign a file
	position to the .dynamic section if it is not loadable, but part
	of the PT_DYNAMIC segment.
	* elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
	offsets, not VMAs, for the BPABI.  Do not fill in the header in
	the .got.plt section for the BPABI.
	* elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a
	PT_DYNAMIC segment.
	(elf_backend_want_got_plt): Define to zero for Symbian OS.

2004-09-03 Mark Mitchell <mark@codesourcery.com>

	* emulparams/armsymbian.sh: Use armbpabi script.
	* scripttempl/armbpabi.sc: New script.

Approved - please apply ... but - it would be nice if there was a linker test for this feature to make sure that it works/continues to work. You could add it to the ld/testsuite/ld-arm directory.


Cheers
  Nick



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]