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 BE8 linker support


On Thu, 2004-04-01 at 01:51, Paul Brook wrote:
> The attached patch adds linker support for creating arm BE8 format 
> executables. These consist of big-endian data and little-endian code.
> 
> Ok?
> 
> Paul
> 
> 2004-03-31  Paul Brook  <paul@codesourcery.com>
> 
> 	* bfd/bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
> 	* bfd/elf32-arm.h (struct elf32_elf_section_map): New.
> 	(struct _arm_elf_section_data): New.
> 	(elf32_arm_section_data): Define.
> 	(struct elf32_arm_link_hash_table): Add byteswap_code.
> 	(elf32_arm_link_hash_table_create): Initialize byteswap_code.
> 	(bfd_elf32_arm_process_before_allocation): Add byteswap_code.
> 	(elf32_arm_post_process_headers): Set EF_ARM_BE8.
> 	(elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
> 	elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
> 	(bfd_elf32_new_section_hook, elf_backend_write_section,
> 	elf_backend_link_output_symbol_hook): Define.
> 	* ld/emultempl/armelf.em (byteswap_code): Add.
> 	(arm_elf_before_allocation): Pass extra parameter.
> 	(PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
> 	(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
> 	(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
> 	* ld/emultempl/armelf_oabi.em: Pass extra parameter.
> 	* ld/ld.texinfo: Document --be8.

OK.

Note that BE-8 mode generation will probably be a bit buggy until
mapping symbol generation is fixed
(http://sources.redhat.com/ml/binutils/2004-03/msg00352.html); but
that's stuck in Copyright-limbo just at this time.


R.


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