changelog-9193
来自「基于4个mips核的noc设计」· 代码 · 共 1,606 行 · 第 1/5 页
TXT
1,606 行
Fri Dec 31 16:23:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) Minor cleanups suggested by CodeCenter. * aoutx.h, coffgen.c, ecoff.c, ecofflink.c, elf.c, libbfd.c, linker.c, reloc.c, section.c, srec.c: Added /*ARGSUSED*/ as appropriate. * aoutx.h (struct external_exec): Removed unnecessary declaration. (NAME(aout,some_aout_object_p)): Set some tdata pointers to NULL. (adjust_z_magic): Removed useless variable data_vma. (stringtab_init): Initialize hash_zero. (add_to_stringtab): Removed unused fourth argument. (NAME(aout,swap_std_reloc_out)): Removed useless variable r_addend. (aout_link_input_section): Added some casts. * archive.c (get_extended_arelt_filename, do_slurp_coff_armap, bfd_ar_hdr_from_filesystem, bsd_write_armap, coff_write_armap): Minor code rewriting to make it more C like. (do_slurp_bsd_armap): Added some casts. * ecoff.c (ecoff_write_object_contents): Removed useless variable scn_base. (ecoff_write_armap): Added some casts. Use "" rather than "\0". * ecofflink.c (bfd_ecoff_write_debug): Added a cast. * libaout.h (struct internal_exec): Removed unnecessary declaration. * linker.c (_bfd_generic_indirect_link_order): Added a cast. * opncls.c (new_bfd): Removed a cast. * reloc.c (bfd_generic_get_relocated_section_contents): Added some casts. * srec.c (internal_srec_write_object_contents): Removed useless variable bytes_written.Fri Dec 31 11:46:13 1993 David J. Mackenzie (djm@thepub.cygnus.com) * i386mach3.c (N_TXTADDR): Don't define after all. (TEXT_START_ADDR): Don't include exec header size in value.Thu Dec 30 15:47:54 1993 David J. Mackenzie (djm@thepub.cygnus.com) * i386mach3.c (N_TXTADDR): Define.Thu Dec 30 13:37:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) Extensive changes to move the bulk of the linker into BFD so that more efficient backend code can be written for specific object files. Only existing efficient backend is a.out. * seclet.c, seclet.h: Removed. * hash.c, linker.c, genlink.h: New files. * bfd-in.h: Removed bfd_error_vector. Declared hash table structures and functions. (JUMP_TABLE): Removed bfd_seclet_link, added bfd_link_hash_table_create, bfd_link_add_symbols and bfd_final_link. * All backends: Changed accordingly. * bfd-in2.h: Rebuilt. * bfd.c (struct _bfd): Added link_next and archive_pass fields. Removed ld_symbols field. (bfd_nonrepresentable_section, bfd_undefined_symbol, bfd_reloc_value_truncated, bfd_reloc_is_dangerous, bfd_error_vector): Removed. (bfd_default_error_trap, bfd_error_trap, bfd_error_nonrepresentabltrap): Removed. (bfd_get_relocated_section_contents): Pass link_info. Pass link_order instead of seclet. Pass symbols. (bfd_relax_section): Pass link_info. (bfd_seclet_link): Removed. (bfd_link_hash_table_create, bfd_link_add_symbols, bfd_final_link): New macros. * libbfd-in.h: If __GNUC__ is defined and alloca is not, define alloca as __builtin_alloca. Declare internal linking functions. * libbfd.h: Rebuilt. * libbfd.c (bfd_seek): Comment out fseek assertion. It's worked for months. * reloc.c (reloc_howto_type): Added error_message argument to special_function field. Changed all callers and all definitions. (bfd_get_reloc_size): Make argument a const pointer. (bfd_perform_relocation): Add error_message argument to hold string set if return value if bfd_reloc_dangerous. Changed all callers. (_bfd_final_link_relocate, _bfd_relocate_contents): New functions. * section.c (asection): Renamed seclets_head and seclets_tail to link_order_head and link_order_tail. * targets.c (bfd_target): Replaced seclet argument with link_info and link_order and symbols arguments in bfd_get_relocated_section_contents. Added symbols argument to bfd_relax_section. Removed bfd_seclet_link. Added bfd_link_hash_table_create, bfd_link_add_symbols and bfd_final_link. * libaout.h (struct aoutdata): Added external_syms, external_sym_count, external_strings, sym_hashes fields. (obj_aout_external_syms, obj_aout_external_sym_count, obj_aout_external_strings, obj_aout_sym_hashes): New accessor macros. (WRITE_HEADERS): Only output symbols if outsymbols is not NULL. * aoutx.h: Wrote new back end linker routines. (translate_to_native_sym_flags): Return boolean value. Don't use bfd_error_vector. (NAME(aout,write_syms)): Return boolean value. Check return value of translate_to_native_sym_flags and bfd_write. * aout-target.h (final_link_callback): New function. (MY_bfd_final_link): New function. * aout-adobe.c (aout_adobe_write_object_contents): Check return value of aout_32_write_syms. * hp300hpux.c (MY(write_object_contents)): Likewise. * i386lynx.c (WRITE_HEADERS): Likewise. * libaout.h (WRITE_HEADERS): Likewise. * bout.c: Changed functions to use link_info->callbacks rather than bfd_error_vector, and link_orders rather than seclets. * coff-alpha.c: Likewise. * coff-h8300.c: Likewise. * coff-h8500.c: Likewise. * coff-sh.c: Likewise. * coff-z8k.c: Likewise. * elf32-hppa.c: Likewise. * reloc16.c: Likewise. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Look up _gp in the hash table rather than in outsymbols. * coff-a29k.c (a29k_reloc): Pass errors back in new error_message argument rather than printing them. * coffcode.h (bfd_coff_reloc16_extra_cases): Take link_info and link_order arguments rather than seclet. Changed all uses and definitions. (bfd_coff_reloc16_estimate): Pass link_info arguments. Changed all uses and definitions. * libcoff.h: Rebuilt. * ecoff.c (ecoff_get_extr): If symbol is defined by linker, but not by ECOFF, make it scAbs. (ecoff_bfd_final_link): Renamed from ecoff_bfd_seclet_link and rewritten. * elf32-mips.c (mips_elf_final_link): Renamed from mips_elf_seclet_link and rewritten. * elf32-hppa.c (elf32_hppa_stub_description): Added link_info field. (new_stub, add_stub_by_name, hppa_elf_build_arg_reloc_stub, hppa_elf_build_long_branch_stub, hppa_look_for_stubs_in_section): Added link_info arguments. Changed all callers. * elfcode.h (elf_slurp_symbol_table): Don't quit if outsymbols is not NULL. * oasys.c (oasys_write_sections): Return boolean value rather than using bfd_error_vector. (oasys_write_object_contents): Check return value of oasys_write_sections. * hosts/std-host.h: Don't declare qsort or strtol. * Makefile.in: Rebuild dependencies. (BFD_LIBS): Removed seclet.o. Added hash.o and linker.o. (CFILES): Removed seclet.c. Added hash.c and linker.c. (HFILES): Removed seclet.h. Added genlink.h.Thu Dec 30 07:41:36 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) * section.c (bfd_get_section_contents): Return zero filled buffer if section has no contents.Tue Dec 28 12:43:54 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * elf.c (bfd_elf_generic_reloc): If this is not an inplace reloc, then skip bfd_perform_relocation even if the addend is non-zero.Tue Dec 21 09:22:19 1993 Ken Raeburn (raeburn@rtl.cygnus.com) * coffcode.h (coff_write_relocs) [SWAP_OUT_RELOC_OFFSET]: Copy addend to r_offset field. * Makefile.in (CFILES): Added coff-sparc.c. Rebuild dependencies. * coff-sparc.c (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET, CALC_ADDEND): Define. * aix386-core.c (aix386_core_file_p): Use cd_regs[0] for computing the offsetof because AIX /bin/cc does not like to take the address of an array. (From Minh Tran-Le.)Thu Dec 16 13:06:32 1993 Jeffrey A. Law (law@snake.cs.utah.edu) * Thu Dec 16 15:41:06 1993 Peter Hoogenboom (hoogen@cs.utah.edu) * elf32-hppa.c (hppa_elf_build_arg_reloc_stub): Make sure to copy the return pointer into %r2 if no jump-in-call-delay-slot optimization was done. * hosts/hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.Wed Dec 15 08:04:16 1993 David J. Mackenzie (djm@thepub.cygnus.com) * hosts/std-host.h: (time): Don't declare; conflicts on Mach3. * hosts/i386mach3.h (HOST_PAGE_SIZE): Set to 1 to avoid padding. (HOST_SEGMENT_SIZE): Set to 0 for same reason. * i386mach3.c (PAGE_SIZE, SEGMENT_SIZE): Same changes as above. (TEXT_START_ADDR): Correct. (MY_backend_data): Define. * aoutx.h (adjust_o_magic, adjust_z_magic, adjust_n_magic): New functions; code moved from aout_<size>_adjust_sizes_and_vmas.Tue Dec 14 21:48:33 1993 Jeffrey A. Law (law@snake.cs.utah.edu) * som.c (som_begin_writing): Fix thinkos in auxiliary header support. (bfd_som_attach_aux_hdr): Likewise.Mon Dec 13 23:34:48 1993 Jeffrey A. Law (law@snake.cs.utah.edu) * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle 'T' field selectors for PIC code. * som.c (hppa_som_gen_reloc_type): Handle 'T' field selectors. (som_write_fixups): Handle R_DLT_REL, R_FSEL, R_RSEL, R_LSEL relocations needed by PIC.Tue Dec 7 15:47:51 1993 Stu Grossman (grossman at cygnus.com) * nlmcode.h: Fixes to avoid compiler warnings...Tue Dec 7 15:10:54 1993 Ian Lance Taylor (ian@cygnus.com) * libnlm.h (nlm_backend_data): Removed macro definition. (nlm_alpha_backend_data): Adjusted accordingly.Sun Dec 5 19:32:08 1993 Jeffrey A. Law (law@snake.cs.utah.edu) * som.c (som_begin_writing): Flesh out code for handling simple auxiliary headers. (bfd_som_attach_aux_hdr): New function. * som.h (struct somdata): Add fields for attaching version and copyright headers. Add accessor macros. * som.c (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Add protected definitions for old versions of HPUX which fail to define them. (som_hppa_howto_talbe): Add R_DLT_REL, R_AUX_UNWIND, and R_SEC_STMT now that they're safe. Delete bogus R_STATEMENT relocations. * som.c (som_hppa_howto_table): Add missing R_END_TRY. Delete extra R_DATA_OVERRIDE. (hppa_som_gen_reloc_type): Generate a relocation for the rounding mode selector if needed. (som_write_fixups): Handle requests for a change in the default rounding mode. Rounding modes do not consume input bytes, but are just markers much like R_ENTRY and R_EXIT.Sat Dec 4 19:40:32 1993 Jeffrey A. Law (law@snake.cs.utah.edu) Fri Dec 3 09:55:17 1993 Pete Hoogenboom (hoogen@cs.utah.edu) * elf32-hppa.c: (hppa_elf_reloc): Do not do code reordering when the branch instruction as originally been nullified. hppa_elf_reloc): Avoid useless call to bfd_put_32 () in the case of no code reordering due to an LDO instruction in the delay slot of the branch. Make sure to relocate the correct instruction. Do not perform instruction reordering for millicode calls. (hppa_elf_build_arg_reloc_stub): Change the relocation type to R_HPPA_STUB_CALL_17 when special processing might be needed. (hppa_elf_build_long_branch_stub): Prevent code reordering on a call from a linker stub to another linker stub and for millicode calls. Do not trash the return register for calls from one linker stub to a second linker stub. * elf32-hppa.c: (elf_hppa_howto_table): PLABEL and DLT relocations are not pc-relative. * hppa_stubs.h: (BLE_N_XXX_0_31): New instruction used in linker stub code. (COPY_2_31): Likewise.Fri Dec 3 18:40:58 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * config/solaris2.mh (HDEFINES): Remove -Dconst= * hosts/solaris.h: If not __GNUC__, define const as empty.Thu Dec 2 15:43:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * ecoff.c: Added various casts for 32/64 bit cross targeting. (ecoff_mkobject_hook): Set SEC_SHARED_LIBRARY for the .reginfo section so that the linker ignores it. * ecofflink.c: Added various casts for 32/64 bit cross targeting. (ecoff_add_bytes): Changed need argument to size_t. (bfd_ecoff_debug_link_other): Check return value of ecoff_add_string. * libbfd-in.h (new_bfd): Use void rather than an empty parameter list. * libbfd.h: Rebuilt. * libnlm.h (struct nlm_obj_tdata): New field backend_data. (nlm_backend_data, nlm_alpha_backend_data): New accessor macros. (struct nlm_backend_data): New field no_uninitialized_data. (nlm_no_uninitialized_data): New accessor macro. * nlmcode.h (nlm_compute_section_file_positions): Handle no_uninitialized_data. (nlm_external_reloc_compare): Sort relocs by address for a particular symbol, to make the sort more stable. (nlm_write_object_contents): Cast the arguments to qsort. Get the value of a debugging symbol the same way we get the value of a normal symbol. * nlm32-alpha.c: Various changes. Write out GP and .lita relocs. Set no_uninitialized_data to true. * nlm32-i386.c (nlm32_i386_backend), nlm32-sparc.c (nlm32_sparc_backend): Set no_uninitialized_data field false. * nlmswap.h (nlm_swap_fixed_header_out): Zero out destination before filling it in.Wed Dec 1 21:47:58 1993 Jeffrey A. Law (law@snake.cs.utah.edu) * som.c (som_section_type, som_decode_symcalss): New functions. (som_get_symbol_info): Use them. (som_slurp_symbol_table): Set the section of common and undefined symbols correctly.Wed Dec 1 14:15:10 1993 Ken Raeburn (raeburn@cygnus.com) * elfcode.h (write_relocs): Initialize local var LAST_SYM_IDX, to make gcc happy. * mipsbsd.c: Changes from Ralph Campbell: (mips_howto_table_ext): MIPS_RELOC_LO16 should use complain_overflow_dont. (aout_mips_*_vec): Make name use "a.out" instead of "aout", to make gdb happy. * bfd.c (bfd_errmsgs): Reword invalid-target message.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?