Alan Modra 1594e052d4 xgate cleanup
elf32-xgate.c contains many functions that are only stubs and
elf32-xgate.h contains unused declarations.  While this might be
reasonable for the initial commit of a port with subsequent work
fleshing out the stubs, xgate has only had two minor target specific
patches since the initial commit over six years ago.  The rest of the
changes have been general maintenance work applied to all ELF targets,
and some of this work could have been avoided if the stubs hadn't been
there.  So this patch removes all the stubs.

I've kept the functionality of the old elf32_xgate_add_symbol_hook,
implemented in elf32_xgate_backend_symbol_processing.  Presumably,
that's to set the symbol st_target_internal flag for use in
elf32-m68hc1x.c:elf32_m68hc11_relocate_section.

The empty elf32_xgate_relocate_section meant that xgate had no linker.
Or at least, no linker relocation processing.  Deleting the
elf_backend_relocate_section define means the target will now use the
generic linker reloc processing.  How good that is will depend on the
accuracy of the reloc howtos..

I haven't updated the ld testsuite to xfail tests expected to fail
for generic elf targets.

bfd/
	* elf32-xgate.h: Delete.
	* elf32-xgate.c: Delete unnecessary forward declarations, add two
	that are now needed.
	(xgate_elf_bfd_link_hash_table_create)
	(xgate_elf_bfd_link_hash_table_free)
	(xgate_elf_set_mach_from_flags, struct xgate_scan_param)
	(stub_hash_newfunc, elf32_xgate_add_symbol_hook)
	(elf32_xgate_setup_section_lists, elf32_xgate_size_stubs)
	(elf32_xgate_build_stubs, elf32_xgate_check_relocs)
	(elf32_xgate_relocate_section, _bfd_xgate_elf_set_private_flags)
	(elf32_xgate_post_process_headers): Delete.
	(elf32_xgate_backend_symbol_processing): New function.
	(xgate_elf_ignore_reloc, xgate_elf_special_reloc)
	(_bfd_xgate_elf_print_private_bfd_data): Make static.
	(ELF_TARGET_ID, elf_info_to_howto, elf_backend_check_relocs)
	(elf_backend_relocate_section, elf_backend_object_p)
	(elf_backend_final_write_processing, elf_backend_can_gc_sections)
	(elf_backend_post_process_headers, elf_backend_add_symbol_hook)
	(bfd_elf32_bfd_link_hash_table_create)
	(bfd_elf32_bfd_set_private_flags)
	(xgate_stub_hash_lookup): Don't define.
	(elf_backend_symbol_processing): Define.
	* elf-bfd.h (elf_target_id): Delete XGATE_ELF_DATA.
ld/
	* emulparams/xgateelf.sh (TEMPLATE_NAME) Set to generic.
	(EXTRA_EM_FILE): Set to genelf.
2018-07-10 23:59:07 +09:30
..
2017-10-12 23:30:43 +10:30
2017-07-19 09:56:55 +02:00
2017-07-19 09:56:55 +02:00
2017-07-19 09:56:55 +02:00
2016-12-02 10:44:29 +00:00
2018-02-26 10:51:12 +10:30
2018-02-26 10:51:12 +10:30
ld/
2011-05-13 18:15:33 +00:00
ld/
2011-05-13 18:15:33 +00:00
2018-06-07 09:07:32 +09:30
ld/
2011-05-13 18:15:33 +00:00
ld/
2011-05-13 18:15:33 +00:00
2013-08-26 22:18:07 +00:00
2017-11-12 07:25:36 -08:00
2013-06-24 23:55:46 +00:00
2011-10-25 11:18:16 +00:00
2015-01-28 16:25:18 +10:30
2013-04-25 13:22:52 +00:00
2013-04-25 13:22:52 +00:00
2017-02-20 19:33:28 +10:30
2017-01-02 22:44:29 +10:30
2012-09-13 22:24:51 +00:00
2017-02-20 19:33:28 +10:30
2017-02-20 19:33:28 +10:30
2014-12-06 16:45:22 +01:00
2018-03-07 13:05:12 -08:00
2017-10-12 23:30:43 +10:30
2015-04-23 09:49:19 +09:30
2013-08-26 22:18:07 +00:00
2017-11-12 07:25:36 -08:00
2017-11-12 07:25:36 -08:00
ld/
2013-08-23 22:38:42 +00:00
2013-01-10 20:08:03 +00:00
2013-08-26 22:18:07 +00:00
2017-11-12 07:25:36 -08:00
2017-10-12 23:30:43 +10:30
2017-10-12 23:30:43 +10:30
2017-01-02 22:42:45 +10:30
2014-07-27 08:51:20 -04:00
2013-12-13 11:52:32 +00:00
2013-12-13 11:52:32 +00:00
2015-04-08 04:55:23 -07:00
2016-12-31 12:04:11 +10:30
2015-09-22 11:12:51 +02:00
2017-10-12 23:30:43 +10:30
2018-07-10 23:59:07 +09:30

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

The files in this directory are read by genscripts.sh as shell commands.
They set parameters for the emulations.

Copyright (C) 2012-2018 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.