aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2000-04-06Update copyright noticeNick Clifton1-2/+5
2000-04-06Only check EF_xxx flags if the EABI version number is unknown.Nick Clifton2-30/+103
2000-04-05sh-dsp REPEAT support:Joern Rennecke5-21/+202
opcodes: * sh-opc.h (sh_nibble_type): Remove DISP_8 and DISP_4. Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT. (sh_arg_type): Add A_PC. (sh_table): Update entries using immediates. Add repeat. * sh-dis.c (print_insn_shx): Remove DISP_8 and DISP_4. Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT. gas: * config/tc-sh.c (immediate): Delete. (sh_operand_info): Add immediate member. (parse_reg): Use A_PC for pc. (parse_exp): Add second argument 'op'. All callers changed. (parse_at): Expect pc to be coded as A_PC. Use immediate field in *op. (insert): Add fourth argument 'op'. All callers changed. (build_relax): Add second argument 'op'. All callers changed. (insert_loop_bounds): New function. (build_Mytes): Remove DISP_4. Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT. (assemble_ppi): Use immediate field in *operand. (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}. (md_apply_fix): Likewise. (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL. include/coff: * sh.h (R_SH_LOOP_START, R_SH_LOOP_END): Define. include/elf: * sh.h (R_SH_LOOP_START, R_SH_LOOP_END): New RELOC_NUMBERs. bfd: * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and BFD_RELOC_SH_LOOP_END. * elf32-sh.c (sh_elf_howto_tab): Change special_func to sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore. Add entries for R_SH_LOOP_START and R_SH_LOOP_END. (sh_elf_reloc_loop): New function. (sh_elf_reloc): No need to test for always-to-be-ignored relocs any more. (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}. (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}. * bfd-in2.h, libbfd.h: Regenerate.
2000-04-04Move translated part of bug report string back into .c files soAlan Modra2-130/+165
xgettext can find it. Regnerate .pot files.
2000-04-04Use "gcc -MM" for dependencies, and update them.Alan Modra4-174/+196
2000-04-03AIX 4.3 changesKevin Buettner3-523/+446
2000-04-032000-04-03 H.J. Lu <hjl@gnu.org>Ian Lance Taylor2-4/+24
* cache.c (bfd_open_file): Unlink the output file only if it has none zero size.
2000-04-03Don't emit relative relocations for non-loaded sections in shared objects.Alan Modra2-6/+13
Fix for DWARF-2 sections .debug_info and .debug_line.
2000-04-03 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 andHans-Peter Nilsson2-3/+31
BFD_RELOC_16 to switch for extended relocs. (MY_swap_ext_reloc_in): New. (MY_swap_ext_reloc_out): New. (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather than NAME(aout,swap_ext_reloc_in) for extended relocs. (NAME(aout,squirt_out_relocs)): Similarly use MY_swap_ext_reloc_out. (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
2000-04-03 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 toJeff Law2-0/+9
the R_PCRWORD_B case.
2000-04-01Fix long-standing mis-comments. Words and addresses are 32-bits long.Alexandre Oliva1-5/+5
2000-03-31Adjust whitespace.Alexandre Oliva1-2/+2
2000-03-30Set CHUNK size to 16 bytes to prevent download failures on lame targets.Alan Modra3-2/+8
2000-03-30 * elf32-m32r.c (m32r_elf_generic_reloc): new function. AllDoug Evans2-11/+79
HOWTO references to bfd_elf_generic_reloc, that have partial_inplace == true, now use the new function. The function is based on the recent rewrite of m32r_elf_lo16_reloc(), and extends its fixes to the R_M32R_{16,24,32} relocs. The new logic in m32r_elf_lo16_reloc() has been removed, and it instead calls the new routine to obtain that functionality.
2000-03-27ATMEL AVR microcontroller support.Alan Modra14-441/+1821
2000-03-242000-03-24 H.J. Lu <hjl@gnu.org>H.J. Lu2-0/+9
* elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype. (elf64_alpha_find_reloc_at_ofs): Likewise.
2000-03-23Add missing parts of ChangeLog entry for my change of 2000/02/19 00:59:26 to ↵Geoffrey Keating1-0/+24
coff-rs6000.c.
2000-03-17Extend the allowed bitfield range (ie. that for whichAlan Modra2-63/+39
complain_overflow_bitfield doesn't complain) from -2**(n-1)..2**n-1 to -2**n..2**n. This might mean that some reloc overflows are no longer caught, but it solves the address wrap problem for 16-bit relocs nicely. In any case, ports that rely on complain_overflow_bitfield for reloc overflow checking were not getting a very good check previously. A bitfield range in a machine instruction is typically either the signed or unsigned n bit numbers, not the overlap of these two ranges.
2000-03-14 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.Catherine Moore2-8/+62
2000-03-14 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total numberJeff Law2-4/+11
of shrinks properly, including the last reloc.
2000-03-13 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanityJeff Law2-1/+6
check for R_MOVL2.
2000-03-11Return bfd_error_wrong_format on a format mismatch.Alan Modra2-2/+10
2000-03-11* elf32-mips.c (_bfd_mips_elf_relocate_section): Do properGeoffrey Keating2-4/+51
sign-extension and big-endian compensation for R_MIPS_64 even in ld -r.
2000-03-11In bfd/:Geoffrey Keating2-15/+167
* elf32-mips.c (mips_elf_next_relocation): Rename from mips_elf_next_lo16_relocation, and generalize to look for any relocation type. (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset. (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16. (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16. (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2. (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64. (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32. (bfd_elf32_bfd_reloc_type_lookup): Add new relocs. (mips_rtype_to_howto): Likewise. (mips_elf_calculate_relocation): Handle new relocs. (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs are paired. The addend for R_MIPS_GNU_REL16_S2 is shifted right two bits. In gas/: * config/tc-mips.c (mips_ip): Don't put stuff in .rodata when embedded-pic. * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic implementation doesn't have special handling for switch statements. (macro_build): Allow for code in sections other than .text. (macro): Likewise. (mips_ip): Likewise. (md_apply_fix): Do pc-relative relocation madness for MIPS ELF. Don't perform relocs if we will be outputting them. (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when embedded-pic. In gas/testsuite/: * gas/mips/empic.d: New file. * gas/mips/empic.s: New file. * gas/mips/mips16-e.d: New file. * gas/mips/mips16-e.s: New file. * gas/mips/mips16-f.d: New file. * gas/mips/mips16-f.s: New file. * gas/mips/mips.exp: Add empic, mips16-e. Add mips16-f as an expected failure. In include/elf: * mips.h: Add R_MIPS_GNU_REL_HI16, R_MIPS_GNU_REL_LO16, R_MIPS_GNU_REL16_S2, R_MIPS_PC64 and R_MIPS_PC32 relocation numbers.
2000-03-11Fix typos in comments, and restore comment formatting destroyed by emacs atAlan Modra2-47/+56
some stage.
2000-03-07 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.Doug Evans3-4/+35
* bfd-in2.h: Rebuild.
2000-03-06Further LINK6 bug fix.Nick Clifton1-7/+5
2000-03-06fix LINK6 code.Nick Clifton2-47/+103
2000-03-06 * elf.c (swap_out_syms): Check for null type_ptr.Catherine Moore2-1/+6
2000-03-022000-03-01 Hans-Peter Nilsson <hp@axis.com>Ian Lance Taylor7-30/+18
* aout-target.h (MY(write_object_contents)): Remove unused and unusable "#if CHOOSE_RELOC_SIZE". * pc532-mach.c (MY(write_object_contents)): Ditto. * netbsd.h (MY(write_object_contents)): Ditto. * hp300hpux.c (MY(write_object_contents)): Ditto. * freebsd.h (MY(write_object_contents)): Ditto. * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
2000-03-01Fix building with --enable-targets=allNick Clifton16-89/+172
2000-03-012000-03-01 H.J. Lu <hjl@gnu.org>H.J. Lu38-55/+129
* aoutx.h (aout_link_input_section_std): Pass "true" to the undefined_symbol callback. (aout_link_input_section_ext): Likewise. * bout.c (get_value): Likewise. * coff-a29k.c (coff_a29k_relocate_section): Likewise. * coff-alpha.c (alpha_ecoff_get_relocated_section_conten): Likewise. (alpha_relocate_section): Likewise. * coff-arm.c (coff_arm_relocate_section): Likewise. * coff-i960.c (coff_i960_relocate_section): Likewise. * coff-mcore.c (coff_mcore_relocate_section): Likewise. * coff-mips.c (mips_relocate_section): Likewise. * coff-ppc.c (coff_ppc_relocate_section): Likewise. * coff-sh.c (sh_relocate_section): Likewise. * coff-tic80.c (coff_tic80_relocate_section): Likewise. * cofflink.c (_bfd_coff_generic_relocate_section): Likewise. * elf-m10200.c (mn10200_elf_relocate_section): Likewise. * elf-m10300.c (mn10300_elf_relocate_section): Likewise. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. * elf32-fr30.c (fr30_elf_relocate_section): Likewise. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. * elf32-i370.c (i370_elf_relocate_section): Likewise. * elf32-m32r.c (m32r_elf_relocate_section): Likewise. * elf32-mcore.c (mcore_elf_relocate_section): Likewise. * elf32-sh.c (sh_elf_relocate_section): Likewise. * elf32-v850.c (v850_elf_relocate_section): Likewise. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise. * elflink.h (elf_link_output_extsym): Likewise. * pe-mips.c (coff_pe_mips_relocate_section): Likewise. * reloc.c (bfd_generic_get_relocated_section_conten): Likewise. * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise. * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the undefined_symbol callback when building shared library with -Bsymbolic and undefined symbols are allowed. Otherwise, pass "true". * elf32-arm.h (elf32_arm_relocate_section): Likewise. * elf32-i386.c (elf_i386_relocate_section): Likewise. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-mips.c (mips_elf_calculate_relocation): Likewise. (elf32_mips_get_relocated_section_content): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2000-02-28Add WinCE support.Nick Clifton18-92/+2475
2000-02-282000-02-27 Jakub Jelinek <jakub@redhat.com>Ian Lance Taylor3-26/+54
* elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump architecture if the object causing the bump is dynamic. * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise, and also don't it for memory ordering. (sparc64_elf_write_relocs): Take src_rela out of the loop.
2000-02-28 * dwarf2.c (read_abbrevs): Use _raw_size directly rather thanIan Lance Taylor2-3/+10
calling bfd_get_section_size_before_reloc. (decode_line_info): Likewise. (_bfd_dwarf2_find_nearest_line): Likewise.
2000-02-272000-02-27 Eli Zaretskii <eliz@is.elta.co.il>Ian Lance Taylor3-4/+12
* Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the name of the libtool directory. * Makefile.in: Rebuild.
2000-02-27rebuild with current toolsIan Lance Taylor6-1405/+1290
2000-02-26 * som.c (SOM_HOWTO): Define.Jeff Law2-0/+8
(som_hppa_howto_table): Use it.
2000-02-25* config.bfd: Enable 64 bit support for GNU/Linux/sparc.Alexandre Oliva2-1/+3
2000-02-25* config.bfd: Enable 64 bit support for Solaris7+/sparc.Alexandre Oliva2-1/+11
2000-02-24 * som.c (som_misc_symbol_info): Add fieldCatherine Moore2-1/+27
secondary_def. (som_bfd_derive_misc_symbol_info): Initialize secondary_def. (som_build_and_write_symbol_table): Keep track of secondary_def field. (som_slurp_symbol_table): Set BSF_WEAK symbol flag if secondary_def field is set. (som_bfd_ar_write_symbol_stuff): Initialize secondary_def.
2000-02-23fix typo in previous deltaNick Clifton1-1/+1
2000-02-23Accept 16-bit addresses.Nick Clifton2-11/+18
2000-02-23Add IBM 370 support.Alan Modra15-453/+2458
2000-02-222000-02-22 H.J. Lu <hjl@gnu.org>Ian Lance Taylor2-1/+8
* elflink.h (elf_link_add_object_symbols): If a version symbol is not defined, don't add a second ELF_VER_CHR.
2000-02-22 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning forIan Lance Taylor2-3/+19
invalid relocation types, and change them to R_386_NONE.
2000-02-222000-02-22 H.J. Lu <hjl@gnu.org>Ian Lance Taylor1-4/+6
* elflink.h (elf_bfd_final_link): Call output_extsym for global symbols converted to local symbols even when stripping all symbols. (elf_link_output_extsym): Process global symbols converted to local symbols even if they are being stripped.
2000-02-21This lot mainly cleans up `comparison between signed and unsigned' gccAlan Modra7-16/+47
warnings. One usused var, and a macro parenthesis fix too. Also check input sections are elf when doing gc in elflink.h.
2000-02-21 ELF HPPA doesn't work at present; remove it until it does.Ian Lance Taylor5-16/+24
* config.bfd: Comment out setting targ_defvec to bfd_elf32_hppa_vec. * Makefile.am: Rebuild dependencies. (BFD32_BACKENDS): Remove elf32-hppa.lo. (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c. (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h. * Makefile.in: Rebuild. * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
2000-02-19* coffcode.h (coff_set_arch_mach_hook): Use free(), because thereGeoffrey Keating2-5/+10
is no bfd_free(). Revert bfd_free part of previous change.