Commit Graph

34366 Commits

Author SHA1 Message Date
Alan Modra 9c1d81c102 Long branch stubs, multiple stub sections.
* emultempl/ppc64elf.em: Include ldctor.h.
	(stub_file): New var.
	(group_size): New var.
	(ppc_create_output_section_statements): New function.
	(struct hook_stub_info): New.
	(hook_in_stub): New function.
	(ppc_add_stub_section): New function.
	(ppc_layout_sections_again): New function.
	(build_section_lists): New function.
	(gld${EMULATION_NAME}_finish): Rewrite.
	(real_func): New var.
	(ppc_for_each_input_file_wrapper): New function.
	(ppc_lang_for_each_input_file): New function.
	(lang_for_each_input_file): Define.
	(PARSE_AND_LIST_PROLOGUE): Define.
	(PARSE_AND_LIST_LONGOPTS): Define.
	(PARSE_AND_LIST_OPTIONS): Define.
	(PARSE_AND_LIST_ARGS_CASES): Define.
	(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2002-05-01 02:34:54 +00:00
Alan Modra 721956f4fe * elf64-ppc.c (CROR_151515, CROR_313131): Define.
(ppc64_elf_relocate_section): Use them.  Don't look for plt calls
	on R_PPC64_ADDR24 relocs.  Require a nop or no link reg on plt
	call branches.  Correct undefined weak destination.
	(ppc64_elf_func_desc_adjust): Always create at least one blr in
	.sfpr, and correct case where either only savef* or restf* is
	needed.

	Long branch stubs, multiple stub sections.
	* elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
	(ppc64_elf_next_input_section): Declare.
	* elf64-ppc.c: Move linker-only prototypes.
	(STUB_SUFFIX): Define.
	(enum ppc_stub_type): New.
	(struct ppc_stub_hash_entry): New.
	(struct ppc_branch_hash_entry): New.
	(struct ppc_link_hash_entry): Add stub_cache, oh.
	(struct ppc_link_hash_table): Add stub_hash_table etc.  Remove
	sstub.  Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
	Rename plt_overflow to stub_error.
	(ppc_stub_hash_lookup): Define.
	(ppc_branch_hash_lookup): Define.
	(stub_hash_newfunc): New function.
	(branch_hash_newfunc): New function.
	(link_hash_newfunc): Init new fields.
	(ppc64_elf_link_hash_table_create): Likewise.
	(ppc64_elf_link_hash_table_free): New function.
	(ppc_stub_name): New function.
	(ppc_get_stub_entry): New function.
	(ppc_add_stub): New function.
	(create_linkage_sections): Use bfd_make_section_anyway.  Create
	.branch_lt and .rela.branch_lt sections.  Don't create .stub.
	(ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
	and set up for plt call stubs.  Link func and func desc syms.
	(ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
	(func_desc_adjust): Avoid hash lookup when func desc sym available
	via shortcut, and set links when processing.
	(ppc64_elf_hide_symbol): Likewise.
	(allocate_dynrelocs): Don't allocate stub section here.
	(ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
	Remove sstub code.
	(ppc_type_of_stub): New function.
	(build_one_stub): Delete.
	(ppc_build_one_stub): New function.
	(ppc_size_one_stub): New function.
	(ppc64_elf_setup_section_lists): New function.
	(ppc64_elf_next_input_section): New function.
	(group_sections): New function.
	(get_local_syms): New function.
	(ppc64_elf_size_stubs): Rewrite.
	(ppc64_elf_build_stubs): Rewrite.
	(ppc64_elf_relocate_section): Look up stub entry for REL24
	relocs.  Don't propagate REL14* to dynamic objects.  Look for long
	branch stubs if REL14* or REL24 relocs won't reach.
	(bfd_elf64_bfd_link_hash_table_free): Define.
2002-05-01 02:34:20 +00:00
Alan Modra 7d4a12d20f * ppc-opc.c: Add "tlbsx." and "tlbsxe." for booke. 2002-05-01 01:22:00 +00:00
Michael Snyder 94c30b78db 2002-04-30 Michael Snyder <msnyder@redhat.com>
* arm-tdep.c: Whitespace clean-ups.
2002-05-01 00:57:51 +00:00
Alan Modra 200dbde8db * config/tc-i386.c (extra_symbol_chars): Add '[' to the list. 2002-05-01 00:53:55 +00:00
Alan Modra 3f3cdb0302 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
backwards to prevent cascading errors.
2002-05-01 00:33:09 +00:00
Michael Snyder 880d85fa11 2002-04-30 Michael Snyder <msnyder@redhat.com>
* arm-tdep.c (arm_skip_prologue): Fix thinko; two lines
	should have been removed as part of 4/24 change.
2002-05-01 00:30:02 +00:00
gdbadmin 356a93ba4b *** empty log message *** 2002-05-01 00:00:33 +00:00
Alan Modra ac6f77a8d3 daily update 2002-05-01 00:00:04 +00:00
Kevin Buettner 6f5987a63d * rs6000-tdep.c: Added comment describing how fpscr register
numbers were chosen.
2002-04-30 23:36:11 +00:00
Tom Rix aa67bccfe2 Add support for AIX -blibpath and -bnolibpath. 2002-04-30 23:29:21 +00:00
Michael Snyder 47f21bcc3d 2002-04-30 Michael Snyder <msnyder@redhat.com>
* gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2002-04-30 21:12:30 +00:00
Michael Snyder 1a113c93e5 2002-04-30 Michael Snyder <msnyder@redhat.com>
* gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2002-04-30 19:01:57 +00:00
Mark Mitchell 94349e12d2 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
(eelf32ppcwindiss.c): New target.
	* Makefile.in: Regenerated.
	* configure.tgt: Add support for powerpc-*-windiss.
	* emulparams/elf32ppcwindiss.sh: New file.
2002-04-30 17:49:01 +00:00
Mark Mitchell 9b2b7d6941 * configure.in: Add support for powerpc-*-windiss.
* configure: Regenerated.
2002-04-30 17:47:11 +00:00
Mark Mitchell 09c2219b6b * bfd/config.bfd: Add support for powerpc-*-windiss. 2002-04-30 17:42:34 +00:00
Mark Mitchell 5f2848315f * config.guess: Updated to 2002-04-26's version.
* config.sub: Updated to 2002-04-26's version.
2002-04-30 17:40:45 +00:00
Richard Sandiford 33a301baa7 * ld-scripts/map-address.exp: New test.
* ld-scripts/map-address.[td]: New files for it.
2002-04-30 09:23:14 +00:00
Richard Sandiford 7b17f854f7 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
* ldexp.c (exp_print_token): Add "infix_p" argument.
	(exp_print_tree): Update accordingly.
2002-04-30 09:21:27 +00:00
Tom Rix 07b678c0c3 Fix a problem with static linking with cross tools. 2002-04-30 04:32:51 +00:00
DJ Delorie bd5f7da29f * config/mh-cxux: remove dead code
* config/mh-dgux386: remove dead code
* config/mh-hp300: remove dead code
* config/mh-hpux: remove dead code
* config/mh-hpux8: remove dead code
* config/mh-irix5: remove dead code
* config/mh-irix6: remove dead code
* config/mh-ncr3000: remove dead code
* config/mh-ncrsvr43: remove dead code
* config/mh-necv4: remove dead code
* config/mh-sco: remove dead code
* config/mh-solaris: remove dead code
* config/mh-sysv: remove dead code
* config/mh-sysv4: remove dead code
* config/mh-sysv5: remove dead code
* config/mh-irix4: remove, contains only dead code
* configure.in: delete reference to absent file
2002-04-30 03:30:24 +00:00
DJ Delorie a0c4f3a039 * configure.in: replace '[' with 'test' 2002-04-30 03:17:27 +00:00
DJ Delorie d5ec694ceb * configure.in (h8300*-*-rtems*): Disable libf2c and libgcj.
(sparc-*-elf*, sparc64-*-elf*): Disable libgcj.
2002-04-30 02:49:33 +00:00
DJ Delorie 66f1ba4f3f * configure.in: Eliminate references to gash.
* Makefile.in: Eliminate references to gash.
2002-04-30 02:42:31 +00:00
DJ Delorie e5e4b5c167 * configure.in: Remove useless references to 'pic' makefile fragments.
* config/mt-armpic: Delete.
* config/mt-elfalphapic: Delete.
* config/mt-i370pic: Delete.
* config/mt-ia64pic: Delete.
* config/mt-m68kpic: Delete.
* config/mt-papic: Delete.
* config/mt-ppcpic: Delete.
* config/mt-s390pic: Delete.
* config/mt-sparcpic: Delete.
* config/mt-x86pic: Delete.
2002-04-30 02:34:18 +00:00
DJ Delorie 7c3ab50c69 * configure.in: Remove useless references to 'pic' makefile fragments. 2002-04-30 02:28:43 +00:00
DJ Delorie bbc025f510 * configure.in: (*-*-windows*) Finish removing. 2002-04-30 02:19:55 +00:00
DJ Delorie 33babf59e2 * configure.in: Eliminate redundant test for libgui. 2002-04-30 02:14:16 +00:00
Elena Zannoni 9a6f53fe3b 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
* hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
	(DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
	(hpread_symfile_init, hpread_lookup_type): Substitute throughout.
2002-04-30 02:06:25 +00:00
Kevin Buettner 11ed25acd7 Don't use BFD-private data to determine that an object file is 64-bit xcoff. 2002-04-30 00:26:44 +00:00
gdbadmin 7f7ceaf7bd *** empty log message *** 2002-04-30 00:00:33 +00:00
Alan Modra ebd6292812 daily update 2002-04-30 00:00:05 +00:00
Andrew Cagney ae23240503 5.2 released. 2002-04-29 23:22:16 +00:00
Anthony Green 0a31027751 New test cases for java support. 2002-04-29 21:33:03 +00:00
Michal Ludvig 91fd20f71f 2002-04-29 Michal Ludvig <mludvig@suse.cz>
* x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
	* x86-64-tdep.c (i386_gdbarch_init): Ditto.
	(x86_64_register_info_table): Added comments with register numbers.
2002-04-29 18:27:31 +00:00
Nick Clifton d1b0a5b4a9 Handle CLASS_IGNORE and ARG_NIM4. 2002-04-29 16:50:29 +00:00
Elena Zannoni 2dc5091bdf Commit the correct ChangeLog entry, this time!
2002-04-29  Elena Zannoni  <ezannoni@redhat.com>

	* rs6000-tdep.c (rs6000_extract_return_value,
	rs6000_store_return_value): Handle returning vectors.
	(rs6000_gdbarch_init): Use
	ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
	* ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
	New function.
	(ppc_sysv_abi_use_struct_convention): Deal with functions returning
	vectors.
	(ppc_sysv_abi_push_arguments): Handle vector parameters.
	* ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
2002-04-29 15:14:16 +00:00
Elena Zannoni ace1378a15 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (rs6000_extract_return_value,
	rs6000_store_return_value): Handle returning vectors.
	(rs6000_gdbarch_init): Use
	ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
	* ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
	New function.
	(ppc_sysv_abi_use_struct_convention): Deal with functions returning
	vectors.
	(ppc_sysv_abi_push_arguments): Handle vector parameters.
	* ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
2002-04-29 15:10:06 +00:00
Pierre Muller 2b9848d845 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
* hpread.c (hpread_psymtab_to_symtab_1,
	hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
	with fprintf_unfiltered (gdb_stderr,...).
2002-04-29 11:08:26 +00:00
Pierre Muller f8d17dc5b4 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
* remote-array.c (printf_monitor, write_monitor,
	array_insert_breakpoint, array_remove_breakpoint ):
	Replace fprintf (stderr,...
	with fprintf_unfiltered (gdb_stderr,....
	* remote-es.c: Likewise.
	* remote-os9k.c: Likewise.
	* remote-st.c: Likewise.
2002-04-29 11:01:13 +00:00
Alan Modra 7ba93af661 daily update 2002-04-29 00:00:04 +00:00
gdbadmin c32699cc1d *** empty log message *** 2002-04-29 00:00:03 +00:00
Tom Rix dbe341c625 Rewrite xcoff*_ppc_relocate_section. 2002-04-28 14:34:39 +00:00
Alan Modra 819e64205a * config/tc-s390.c (md_parse_option): Formatting. 2002-04-28 12:34:02 +00:00
Alan Modra 985142a4c6 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
* elf32-hppa.c (elf32_hppa_final_link): Formatting.
2002-04-28 12:29:46 +00:00
Alan Modra 0f3f3d8bfb * config/tc-i386.c: Formatting fixes, add missing space in error
message.
2002-04-28 12:19:46 +00:00
Alan Modra 596dafeba1 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
* Makefile.in: Regenerate.
	* mpw-elfmips.c: Delete.
	* mpw-eppcmac.c: Delete.
	* mpw-esh.c: Delete.
	* mpw-idtmips.c: Delete.
2002-04-28 12:05:07 +00:00
Andreas Schwab 2f2f1ad1fe * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
linux-proc.o and gcore.o.
2002-04-28 00:30:01 +00:00
Alan Modra 201f5c0309 daily update 2002-04-28 00:00:05 +00:00
gdbadmin 1e93968d22 *** empty log message *** 2002-04-28 00:00:03 +00:00