aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
1999-10-08 * elflink.h (elf_merge_symbol): When overriding a weak symbol withIan Lance Taylor2-2/+12
a defined symbol in a shared library, clear the DEF_DYNAMIC flag too.
1999-10-08* elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERALGeoffrey Keating2-37/+32
relocs also need the GP value. (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs properly. Handle sign-extension for R_MIPS_64 correctly. Correct the GP value for R_MIPS_LITERAL relocs too. Handle R_MIPS_64 relocs properly on big-endian MIPS. (mips_elf_sign_extend): Behave properly with 'long long'. (mips_elf_highest): Correct typo.
1999-10-05 * archures.c (bfd_mach_m32rx): Define it.Doug Evans3-0/+4
* bfd-in2.h: Rebuild.
1999-10-05 * cpu-m32r.c (arch_info_struct): New static global.Doug Evans3-1/+19
(bfd_m32r_arch): Refer to it. * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH. (m32r_elf_print_private_bfd_data): Ditto. (m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
1999-09-28Fred Fish <fnf@cygnus.com>Richard Henderson6-34/+181
* targets.c (cisco_core_vec): Replaced with two new vecs ... (cisco_core_big_vec): Add new bigendian vec. (cisco_core_little_vec): Add new little endian vec. * cisco-core.c (CRASH_INFO): Fixed offset replaced with ... (crash_info_locs): Add array of possible offsets. (MASK_ADDR): Mask to apply to crash info offset. (crashinfo_external): Add textbase, database, bssbase and turn into a typedef. (cisco_core_file_validate): Renamed from cisco_core_file_p. Many small changes to account for additional hardware versions. Pick a reasonable size for ".reg" section. Add a ".crash" section to allow access to crashinfo_external struct. (cisco_core_file_p): New version of this function that iterates over crash_info_locs, calling cisco_core_file_validate. (cisco_core_vec): Old big endian only vec replaced with ... (cisco_core_big_vec): Add big endian version. (cisco_core_little_vec): Add little endian version. * configure.in (cisco_core_vec): Split to two new vectors ... (cisco_core_big_vec): New target vector. (cisco_core_little_vec): New target vector. * configure: Regenerate. * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec to cisco_core_big_vec in targ_selvecs.
1999-09-28* elf32-mips.c (mips_elf_relocate_hi16): Unused, delete.Geoffrey Keating2-126/+6
(mips_elf_relocate_got_local): Unused, delete. (mips_elf_relocate_global_got): Unused, delete.
1999-09-24Fred Fish <fnf@cygnus.com>Richard Henderson2-180/+198
* elf.c (bfd_section_from_phdr): Add typename variable. Use p_type to initialize it to something meaningful. Then use it to generate more useful segment names.
1999-09-19fix comment; from Fred Fish <fnf@ninemoons.com>Ian Lance Taylor2-2/+2
1999-09-19 * som.c (NO_PCREL_MODES): Define if the system does not defineJeff Law3-1/+100
R_SHORT_PCREL_MODE. (hppa_som_gen_reloc_type): Handle both short and long pcrel branches. (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE * libhppa.h (dis_assemble_22): New function. (bfd_hppa_insn2fmt): Handle long branch. * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found in PA2.0.
1999-09-18Support 8 and 16-bit relocs for i386coff. Enable i386 gas testsuite testsAlan Modra2-100/+114
previously disabled for lack of such support. For *-*-linux*libc1 targets, XFAIL a ld testsuite that fails due to a bug in the dynamic linker prior to glibc-2.1.
1999-09-17Undeo previous delta. Set gc_mark instead.Nick Clifton2-2/+16
1999-09-16 * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.Jeff Law2-1/+9
1999-09-16 * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in theJeff Law2-9/+54
symbol table, then just compute a suitable value (but do not create a __gp symbol).
1999-09-16(elf_cpu32_plt0_entry): Use a1 instead of a0.Catherine Moore2-4/+9
(elf_cpu32_plt_entry): Likewise. ----------------------------------------------------------------------
1999-09-16 * elf-hppa.h (elf_hppa_relocate_section): Allow undefinedJeff Law2-8/+38
symbols when building shared libraries. (elf_hppa_final_link_relocate): Correct handling of PCREL relocations against undefined symbols.
1999-09-16Mark interworking sections as linker created to prevent garbage collection.Nick Clifton2-2/+8
1999-09-15 * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.Jeff Law2-32/+56
(elf_hppa_final_link_relocate): Consistently create an absolute address, then subtract out the value of __gp.
1999-09-14Fix problem with going to automake 2.14Michael Meissner3-2/+9
1999-09-14Change ELF_MAXPAGESIZE to 0x1Nick Clifton2-1/+6
1999-09-14 * elf-hppa.h (elf_hppa_record_segment_addrs): New function.Jeff Law2-8/+66
(elf_hppa_final_link): Initialize text_segment_base and data_segment_base. (elf_hppa_final_link_relocate): Handle SEGREL relocations.
1999-09-14 * elf-hppa.h (elf_hppa_final_link): Remove unused variables.Jeff Law2-11/+8
(elf_hppa_final_link_relocate): Likewise. (elf_hppa_relocate_insn): Likewise. (elf_hppa_relocate_section): Initialize HOWTO.
1999-09-131999-09-13 Donn Terry <donn@interix.com>Ian Lance Taylor2-92/+179
* coffcode.h (styp_to_sec_flags): Further refinement of COMDAT handling to support both GNU and MS objects.
1999-09-131999-09-13 Donn Terry <donn@interix.com>Ian Lance Taylor2-0/+8
* coffcode.h (coff_write_object_contents): Don't check reloc_count when determining whether to set F_RELFLG.
1999-09-13Apply Philip Blundell's patch to prevent range checks on weak symbols.Nick Clifton2-10/+24
1999-09-13Hackery to handle ix86 "jmp constant" as a pc-relative jump to the givenAlan Modra2-1/+7
absolute address.
1999-09-13 * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.Jeff Law2-9/+17
Stub SEGREL32. Return an error for any relocation not handled.
1999-09-12 * cofflink.c (coff_link_add_symbols): Look for special MSVC stringIan Lance Taylor2-0/+45
constant symbols, and avoid multiple definition errors on them.
1999-09-121999-09-12 Donn Terry <donn@interix.com>Ian Lance Taylor2-1/+6
* libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most significant bit is set.
1999-09-121999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor3-22/+86
* libpei.h (_bfd_pei_final_link_postscript): Declare. (coff_final_link_postscript): Define. * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data directory entries here. (_bfd_pei_final_link_postscript): New function.
1999-09-121999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor2-44/+3
* peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets section flags based on the section name.
1999-09-121999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor3-19/+60
* peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the get the overflow of the s_nlnno field from the s_nreloc field. * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap the s_nlnno overflow of the .text section into the s_nreloc field.
1999-09-121999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor2-95/+164
* peigen.c (add_data_entry): Declare. (pei_swap_aouthdr_out): Get image size right. Set linker version more intuitively. (pei_swap_scnhdr_out): Test for UNINIT section, not .bss. (pe_print_idata): Code cleanup, print more info, get rid of (now) extraneous ImageBase. (pe_print_edata): Likewise. (pe_print_pdata): Likewise. Print exception entries. (pe_print_reloc): Likewise. Print MIPS_JMPADDR. (tbl): Make const, add "UNKNOWN". (_bfd_pe_print_private_bfd_data_common): Print timestamp. (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted section data directory. (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
1999-09-121999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor4-1/+24
* libpei.h (_bfd_pe_bfd_get_symbol_info): Declare. * peigen.c (_bfd_pe_bfd_get_symbol_info): New function. * peicode.h (coff_get_symbol_info): Define.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor3-5/+12
* config.bfd (i[3456]86-*-interix*): Set targ_cflags to -DSTRICT_PE_FORMAT. * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather than __INTERIX. (coff_classify_symbol): Re-revert 1999-08-08 patch if STRICT_PE_FORMAT.
1999-09-11add some comments about peigen.cIan Lance Taylor3-3/+10
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor8-1989/+2188
* libpei.h: New file, broken out of peicode.h. * peigen.c: New file, broken out of peicode.h. * peicode.h: A bunch of code moved out to libpei.h and peigen.c. * configure.in: Add peigen.lo to list of files required for each PE target. * Makefile.am: Rebuild dependencies. (BFD32_BACKENDS): Add peigen.lo. (BFD32_BACKENDS_CFILES): Add peigen.c. (SOURCE_HFILES): Add libpei.h. * configure, Makefile.in: Rebuild.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor2-6/+17
* peicode.h (coff_swap_scnhdr_in): Don't check for a special section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA instead. Don't clear the s_paddr field for an uninitialized data section.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor3-0/+8
* coffcode.h (coff_mkobject_hook): Set timestamp field in coff_data_type to f_timdat. * peicode.h (pe_mkobject_hook): Likewise.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor2-0/+18
* peicode.h (coff_swap_filehdr_in): Check the NT executable magic number if COFF_IMAGE_WITH_PE.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor3-4/+28
* coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG to the reverse of IMAGE_FILE_DEBUG_STRIPPED. (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if there is no SEC_DEBUGGING section. * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor3-5/+21
* pe-i386.c (COFF_LONG_FILENAMES): Define. (COFF_SECTION_ALIGNMENT_ENTRIES): Define. * pei-i386.c (COFF_LONG_FILENAMES): Define. (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor6-9/+6
* coffswap.h (IMAGE_BASE): Don't define. * pei-arm.c (IMAGE_BASE): Don't define. * pei-i386.c (IMAGE_BASE): Don't define. * pei-mcore.c (IMAGE_BASE): Don't define. * pei-ppc.c (IMAGE_BASE): Don't define.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor2-20/+71
* cofflink.c (_bfd_coff_link_input_bfd): When writing out a symbol, switch on the class when determining whether to modify the value. For PE, don't modify the value of a C_FCN symbol not named .bf.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor4-0/+51
* libbfd-in.h (_bfd_abort): Declare. (abort): Define. * bfd.c (_bfd_abort): New function. * libbfd.h: Rebuild.
1999-09-11 * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.Ian Lance Taylor3-32/+19
1999-09-11 Donn Terry <donn@interix.com> * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE special handling.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor2-9/+27
* cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped, don't write out the associated line numbers.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor2-3/+59
* cofflink.c (_bfd_coff_write_global_sym): Handle section symbol aux entries.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor2-2/+13
* coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such symbols named .bf.
1999-09-11 * elfcode.h (write_relocs): Handle an absolute symbol in RELIan Lance Taylor2-0/+7
relocs as we do for RELA relocs.
1999-09-111999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor2-22/+41
* cofflink.c (coff_link_add_symbols): Don't warn about symbol type changes when the base type is unknown.