aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2001-04-262001-04-26 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+20
* elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is valid.
2001-04-25* externalize a functionFrank Ch. Eigler3-0/+11
2001-04-25 Frank Ch. Eigler <fche@redhat.com> * bfd-in.h (bfd_cache_close): Declare newly exported function. * bfd-in2.h: Regenerated.
2001-04-25Fix autoconf breakage + commit target.c, omitted in previous deltaNick Clifton4-3/+361
2001-04-24 * merge.c (struct sec_merge_hash_entry): Add alignment field.Jakub Jelinek2-47/+82
(struct sec_merge_hash): Remove alignment_power. (sec_merge_hash_newfunc): Clear alignment. (sec_merge_hash_lookup): Pass alignment as argument. Use hashp->root.next, not hashp->next to walk the hash chain. If a string already in the hashtable does not have required alignment, create a new hashtable entry. (sec_merge_init): Remove alignment_power argument. (sec_merge_add): Add alignment argument. (sec_merge_emit): Alignment is now a per-entity thing, not per section. (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections for proper alignment. Pass alignment information to sec_merge_add.
2001-04-24z8k fixesNick Clifton3-5/+113
2001-04-24Add OpenRISC supportNick Clifton20-3566/+7297
2001-04-232001-04-23 Bo Thorsen <bo@suse.de>Andreas Jaeger2-28/+89
* x86-64.h: Add vtable support. 2001-04-23 Bo Thorsen <bo@suse.de> * elf64-x86-64.c: Add c++ vtable hack. Small whitespace and comment changes.
2001-04-192001-04-19 Andreas Jaeger <aj@suse.de>Andreas Jaeger2-15/+57
* elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions. (elf64_x86_64_plt_entry): Likewise. (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation. (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2001-04-17 * elf32-cris.c: Tweak comments related to dynamic linking.Hans-Peter Nilsson2-27/+118
(cris_elf_relocate_section): When not creating shared object, fill in the .got table for any symbol not in the dynamic symbol table. (elf_cris_finish_dynamic_symbol): When not creating shared object, only emit a .got.rela reloc if the symbol is in the dynamic symbol table. (cris_elf_check_relocs): Use variable r_type in all places rather than the original expression. Add default case in switch for reloc types. (elf_cris_size_dynamic_sections): Iterate over elf_cris_discard_excess_program_dynamics when not creating shared library. (elf_cris_discard_excess_dso_dynamics): Renamed from elf_cris_discard_copies. Correct typo, s/Rel/Rela/. (elf_cris_discard_excess_program_dynamics): New.
2001-04-15* coffcode.h (coff_write_object_contents): UseDJ Delorie2-1/+6
bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2001-04-152001-04-14 H.J. Lu <hjl@gnu.org>H.J. Lu2-2/+7
* bfd-in2.h: Regenerate.
2001-04-14 * section.c (STD_SECTION): Add entsize.Jakub Jelinek2-5/+9
2001-04-142001-04-13 H.J. Lu <hjl@gnu.org>H.J. Lu2-0/+19
* section.c (SEC_MERGE): Define new flag for merging. (SEC_STRINGS): Likewise. (entsize): New field.
2001-04-13* coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable sectionDJ Delorie2-2/+7
flag on pe-i386 targets.
2001-04-13bfd/Jakub Jelinek13-15/+787
* libbfd-in.h (_bfd_merge_section): New. (_bfd_write_merged_section): New. (_bfd_merged_section_offset): New. * libbfd.h: Rebuilt. * linker.c (_bfd_generic_link_output_symbols): Handle discard_sec_merge. * aoutx.h (aout_link_write_symbols): Likewise. * pdp11.c (aout_link_write_symbols): Likewise. * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section. (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE sections. (elf_link_sec_merge_syms): New. (elf_link_input_bfd): Call _bfd_merged_section_offset and _bfd_write_merged_section. Handle discard_sec_merge. * elf-bfd.h (struct elf_link_hash_table): Add merge_info field. (struct bfd_elf_section_data): Likewise. * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and SEC_STRINGS section flags and entsize from their ELF counterparts. (_bfd_elf_link_hash_table_init): Initialize merge_info. (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize from their BFD counterparts. * merge.c: New file. * Makefile.am: Add strtab.lo. * Makefile.in: Rebuilt. include/ * bfdlink.h (bfd_link_discard): Add discard_sec_merge. gas/ * config/obj-elf.c (obj_elf_change_section): Add entsize argument, handle SHF_MERGE and SHF_STRINGS. (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS. (obj_elf_section): Allow additional argument specifying entity size. * write.c (adjust_reloc_syms): Keep relocations against local symbols in SEC_MERGE sections. ld/ * ldmain.c (main): Default to discard_sec_merge. * lexsup.c (OPTION_DISCARD_NONE): Define. (ld_options): Add --discard-none. (parse_args): Handle OPTION_DISCARD_NONE. * ldlang.c (wild_doit): SEC_MERGE should be set in the output section only if SEC_MERGE and SEC_STRINGS flags and entsize of all its input sections match.
2001-04-09 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,Hans-Peter Nilsson2-4/+13
only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2001-04-082001-04-05 Steven J. Hill <sjhill@cotw.com>H.J. Lu7-285/+346
* config.bfd (mips*el*-*-linux-gnu*): Use traditional little endian MIPS ELF target. * config.bfd (mips*-*-linux-gnu*): Use traditional big endian MIPS ELF target. * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional 64bit big endian MIPS ELF target. (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little endian MIPS ELF target. * configure: Regenerated. * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and little endian targets. (mips_elf_sym_is_global): Handle traditional targets. * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional 64bit big endian MIPS ELF target. (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little endian MIPS ELF target. * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec and bfd_elf64_tradlittlemips_vec.
2001-04-062001-04-05 David Mosberger <davidm@hpl.hp.com>H.J. Lu2-0/+44
* elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an ordinary "progbits" section.
2001-04-04 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbolAlan Modra2-8/+11
when -Bsymbolic causes a symbol to no longer need a .plt entry.
2001-04-032001-04-03 David Mosberger <davidm@hpl.hp.com>H.J. Lu2-1/+4
* efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2001-03-302001-03-30 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+6
* efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ... (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2001-03-27Remove ATTRIBUTE_UNUSED in the last patch.H.J. Lu2-2/+2
2001-03-272001-03-26 H.J. Lu <hjl@gnu.org>H.J. Lu3-0/+75
* elf32-gen.c (elf32_generic_link_add_symbols): New. Check if there are any relocations for generic ELF. (bfd_elf32_bfd_link_add_symbols): Defined to elf32_generic_link_add_symbols. * elf64-gen.c (elf64_generic_link_add_symbols): New. Check if there are any relocations for generic ELF. (bfd_elf64_bfd_link_add_symbols): Defined to elf64_generic_link_add_symbols.
2001-03-23Fix building bfd.pot in maintainer modeNick Clifton9-1098/+1229
2001-03-22 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.Hans-Peter Nilsson2-49/+2392
2001-03-22 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,Hans-Peter Nilsson4-0/+86
BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE, BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT, BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT, BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL, BFD_RELOC_CRIS_32_PLT_PCREL): New relocs. * bfd-in2.h, libbfd.h: Regenerate.
2001-03-222001-03-21 Diego Novillo <dnovillo@redhat.com>Diego Novillo2-2/+10
(_bfd_mips_elf_relocate_section): Give a better error message when a relocation is not recognized.
2001-03-21Prevent NULL pointer dereference.Alan Modra2-1/+6
2001-03-202001-03-20 H.J. Lu <hjl@gnu.org>H.J. Lu3-299/+272
* configure.in: Remove the redundent AC_ARG_PROGRAM. * configure: Rebuild.
2001-03-20 * elf32-m68k.c (elf_m68k_relocate_section): Don't need theAndreas Schwab2-1/+14
relocation value when resolving a reference from a debugging section.
2001-03-16Fix syntax errors.Nick Clifton2-4/+9
2001-03-16Fix warning messageNick Clifton2-4/+8
2001-03-16Fix accidental loss of bit 7 in peoples namesHans-Peter Nilsson1-2/+2
2001-03-15Don't assume non-PIC to PIC call stubs are unneeded just becauseAlan Modra2-14/+35
the function happens to have a plabel.
2001-03-13* elf32-sh.c (sh_elf_relocate_section): Only relocationDJ Delorie2-5/+43
R_SH_DIR8WP* relocs if they're against external symbols, else they're just for relaxing. Validate the reloc values.
2001-03-13Add --binary-architecture switch to objcopy to allow the output architectureNick Clifton2-0/+17
to be set when the input file type is binary.
2001-03-112001-03-11 Philip Blundell <philb@gnu.org>Phil Blundell2-0/+12
* elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT entries that could serve as a definition for a weak symbol.
2001-03-08Update copyright noticesNick Clifton272-384/+511
2001-03-07Conditionalize prevbious pathc on ! defined OLD_ARM_ABI.Nick Clifton2-1/+7
2001-03-072001-03-07 Andreas Jaeger <aj@suse.de>Andreas Jaeger2-1/+40
* elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of some relocation values.
2001-03-06Fix BLX(1) for ThumbNick Clifton3-23/+41
2001-03-06Add BFD_RELOC_THUMB_PCREL_BLX.Nick Clifton2-0/+6
2001-03-06Rest of the changes for Coldfire V4.Nick Clifton6-28/+80
2001-03-01Add s390 targetNick Clifton3-63/+70
2001-02-282001-02-28 Andreas Jaeger <aj@suse.de>Andreas Jaeger2-5/+10
* elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation to addend.
2001-02-282001-02-28 Philip Blundell <pb@futuretv.com>Phil Blundell2-31/+54
* elf32-arm.h: Update mentions of renamed EF_xx constants. (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
2001-02-272001-02-27 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+7
* aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if abfd->tdata.aout_data == NULL.
2001-02-27Fix some comments, and a formatting error.Alan Modra2-21/+24
2001-02-27Bump version to 2.11.90, fix missing dependencies in bfd/,Alan Modra6-74/+92
and run "make dep-am".
2001-02-27Update elf64 aix5 comments.Timothy Wall2-16/+10