aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2004-05-21Add --hash-size switch to the linkerNick Clifton6-17/+64
2004-05-21* libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.Mark Kettenis3-0/+29
* netbsd-core.c (netbsd_core_file_p): Set architecture for alpha, arm, m68k, m88k and hppa core files.
2004-05-21Do not use iovec if it is NULL.Nick Clifton2-8/+51
2004-05-21 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.Ben Elliston2-1/+5
2004-05-21daily updateAlan Modra1-1/+1
2004-05-20daily updateAlan Modra1-1/+1
2004-05-19Add code to cope with nested archives.Nick Clifton2-14/+27
2004-05-19daily updateAlan Modra1-1/+1
2004-05-18daily updateAlan Modra1-1/+1
2004-05-17 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonceBob Wilson2-6/+10
section names by inserting a new substring after .gnu.linkonce, except for .gnu.linkonce.t.* where the "t." is replaced.
2004-05-17Add PowerPC LynxOS supportNick Clifton2-4/+18
2004-05-17binutils ChangeLog:Bob Wilson20-22/+126
2004-05-17 David Heine <dlheine@tensilica.com> * objcopy.c (setup_bfd_headers): New function. (copy_object): Call setup_bfd_headers. bfd ChangeLog: 2004-05-17 David Heine <dlheine@tensilica.com> * aout-target.h (MY_bfd_copy_private_header_data): Define. * aout-tic30.c (MY_bfd_copy_private_header_data): Define. * bfd.c (bfd_copy_private_header_data): Define. * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new interface. * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise. * coffcode.h (coff_bfd_copy_private_header_data): Define. * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare. * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up segments by calling copy_private_bfd_data. (_bfd_elf_copy_private_header_data): Define. * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define. * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define. * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define. * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define. * mmo.c (mmo_bfd_copy_private_header_data): Define. * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define. * som.c (som_bfd_copy_private_header_data): Define. * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data. * vms.c (vms_bfd_copy_private_header_data): Define. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate.
2004-05-17daily updateAlan Modra1-1/+1
2004-05-16daily updateAlan Modra1-1/+1
2004-05-15 * elfxx-mips.c (MINUS_TWO): Define.Thiemo Seufer2-10/+17
(mips_elf_higher, mips_elf_highest, mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for some bfd_vma values. (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
2004-05-15daily updateAlan Modra1-1/+1
2004-05-14 * som.c (log2): Rename to exact_log2. Adjust all callers.Dave Anglin2-6/+10
2004-05-14daily updateAlan Modra1-1/+1
2004-05-13Remove comment rendered obsolete by previous deltaNick Clifton2-6/+2
2004-05-13fix typo in file nameNick Clifton1-2/+2
2004-05-13Handle dwarf3 format CIE entries.Nick Clifton2-3/+11
2004-05-13Change or32-rtems target from COFF to ELF formatNick Clifton2-2/+6
2004-05-13Updated French translationsNick Clifton2-2/+7
2004-05-13daily updateAlan Modra1-1/+1
2004-05-11bfd/Jakub Jelinek6-20/+167
* elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol into .dynsym if elf_section_data (sec)->dynindx <= 0. Adjust counting of last_local. (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt created by the linker nor !SHF_ALLOC. * elf32-i386.c (elf_i386_finish_dynamic_sections): Point DT_PLTGOT to the start of the .got.plt section instead of the .got output section. Set sh_entsize for .got section in addition to .got.plt. (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_ is at sgot->output_section->vma. * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point DT_PLTGOT to the start of the .got.plt section instead of the .got output section. (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_ is at sgot->output_section->vma. Set sh_entsize for .got section in addition to .got.plt. * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO. (bfd_section_from_phdr): Likewise. (map_sections_to_segments): Likewise. (assign_file_positions_for_segments): Likewise. (get_program_header_size): Likewise. * elflink.c (bfd_elf_size_dynamic_sections): Set elf_tdata (output_bfd)->relro from info->relro. * elf-bfd.h (struct elf_obj_tdata): Add relro field. include/ * bfdlink.h (struct bfd_link_info): Add relro, relro_start and relro_end fields. * elf/common.h (PT_GNU_EH_FRAME, PT_GNU_STACK): Add comments. (PT_GNU_RELRO): Define. binutils/ * readelf.c (get_segment_type): Handle PT_GNU_RELRO. ld/ * genscripts.sh: Generate -z combreloc -z now -z relro scripts for binaries, -shared and -pie. * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set. * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set. * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to... (OTHER_RELRO_SECTIONS): ... this. * ldlex.l (DATA_SEGMENT_RELRO_END): Add. * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle -z relro and -z norelro. (gld${EMULATION_NAME}_list_options): Add it to usage. (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now -z relro scripts when appropriate. * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set. Create separate .got.plt section if SEPARATE_GOTPLT. Move sections which are only written during relocation handling to the beginning of RW segment. If NO_SMALL_DATA, move .got before .data. Add DATA_SEGMENT_RELRO_END directive. Include OTHER_RELRO_SECTIONS. * ldgram.y (DATA_SEGMENT_RELRO_END): Add. * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END. (fold_unary): Likewise. (fold_binary): Handle -z relro. * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and exp_dataseg_relro_adjust phases. Add relro_end field. * ldmain.c (main): Initialize link_info.relro to FALSE. * ldlang.c (lang_size_sections): Handle -z relro. ld/testsuite/ * ld-i386/tlspic.rd: Adjust for section reordering changes and removal of unneeded STT_SECTION symbols from .dynsym. * ld-i386/tlspic.dd: Likewise. * ld-i386/tlspic.sd: Likewise. * ld-i386/tlsbin.rd: Likewise. * ld-i386/tlsbinpic.s: Likewise. * ld-i386/tlsbin.dd: Likewise. * ld-i386/tlsbin.sd: Likewise. * ld-i386/tlsnopic.rd: Likewise. * ld-i386/tlsnopic1.s: Likewise. * ld-i386/combreloc.d: Likewise. * ld-i386/tlsnopic.dd: Likewise. * ld-i386/tlsnopic.sd: Likewise. * ld-x86-64/tlspic.rd: Likewise. * ld-x86-64/tlspic.dd: Likewise. * ld-x86-64/tlsbin.dd: Likewise. * ld-x86-64/tlspic.sd: Likewise. * ld-x86-64/tlsbin.sd: Likewise. * ld-x86-64/tlspic.td: Likewise. * ld-x86-64/tlsbin.td: Likewise. * ld-x86-64/tlsbin.rd: Likewise. * ld-s390/tlspic1.s: Likewise. * ld-s390/tlsbinpic.s: Likewise. * ld-s390/tlspic.rd: Likewise. * ld-s390/tlsbin.rd: Likewise. * ld-s390/tlspic.dd: Likewise. * ld-s390/tlsbin.dd: Likewise. * ld-s390/tlsbin.sd: Likewise. * ld-s390/tlsbin.td: Likewise. * ld-s390/tlspic.sd: Likewise. * ld-s390/tlspic.td: Likewise. * ld-s390/tlspic1_64.s: Likewise. * ld-s390/tlsbinpic_64.s: Likewise. * ld-s390/tlspic_64.rd: Likewise. * ld-s390/tlsbin_64.rd: Likewise. * ld-s390/tlspic_64.dd: Likewise. * ld-s390/tlsbin_64.dd: Likewise. * ld-s390/tlspic_64.sd: Likewise. * ld-s390/tlspic_64.td: Likewise. * ld-s390/tlsbin_64.td: Likewise. * ld-s390/tlsbin_64.sd: Likewise. * ld-powerpc/tlsexe32.r: Likewise. * ld-powerpc/tlsso32.r: Likewise. * ld-powerpc/tlsso32.d: Likewise. * ld-powerpc/tlsso32.g: Likewise. * ld-powerpc/tlsso32.t: Likewise. * ld-powerpc/tlsexe.r: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlsso.g: Likewise. * ld-powerpc/tlsexetoc.r: Likewise. * ld-powerpc/tlstocso.r: Likewise. * ld-powerpc/tlstocso.g: Likewise. * ld-ia64/tlspic.rd: Likewise. * ld-ia64/tlspic.dd: Likewise. * ld-ia64/tlspic.sd: Likewise. * ld-ia64/tlspic.td: Likewise. * ld-ia64/tlsbin.rd: Likewise. * ld-ia64/tlsbin.sd: Likewise. * ld-ia64/tlsbin.td: Likewise. * ld-elfvsb/elfvsb.exp: XFAIL non-PIC load offset tests on s390x. * ld-shared/shared.exp: Likewise.
2004-05-11daily updateAlan Modra1-1/+1
2004-05-10daily updateAlan Modra1-1/+1
2004-05-08* elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we getAlexandre Oliva2-3/+21
a zero symndx for which we hadn't accounted a dynamic relocation. (_frvfdpic_add_rofixup): Likewise.
2004-05-08daily updateAlan Modra1-1/+1
2004-05-07* coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:Brian Ford3-10/+21
Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE. * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
2004-05-07* elf32-frv.c (elf32_frvfdpic_modify_segment_map): ReturnAlexandre Oliva2-0/+59
immediately if there's no link info. (elf32_frvfdpic_copy_private_bfd_data): New. (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
2004-05-07 * dwarf2.c (add_line_info): Also set info->filename to NULL ifZack Weinberg2-5/+9
filename argument is null; do not call strlen on a null pointer.
2004-05-07daily updateAlan Modra1-1/+1
2004-05-06 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32Daniel Jacobowitz2-5/+7
special case.
2004-05-06* configure.in (bfd_elf32_frvfdpic_vec): New.Alexandre Oliva6-827/+1085
* configure: Rebuilt. * targets.c (bfd_elf32_frvfdpic_vec): New. * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default on the latter. * elf32-frv.c: Prefix all identifiers added for FDPIC support with frvfdpic instead of frv. Rearrange elf-target macros such that the FDPIC-specific ones are only defined for this new target vector. (bfd_elf32_frvfdpic_vec): Declare. (IS_FDPIC): New. (elf32_frv_relocate_section): Use it to enable segment checking and to control rofixup emission. Add output section vma to applied relocation in non-LOAD non-ALLOC sections. Use _bfd_error_handler for errors. (_frv_create_got_section): Create .rel.got and .rofixup only in FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the linker script. (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC. (elf32_frvfdpic_modify_segment_map): Likewise. (elf32_frv_finish_dynamic_sections): New, do-nothing. (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve error message if we miscompute the rofixup size. (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC. (frvfdpic_elf_encode_eh_address): Likewise. (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC. Record relocs only in FDPIC. Make sure _gp is defined for GPREL relocs. Reject unknown relocation types. (elf32_frv_object_p): Make sure target vector matches FDPIC bits. (frv_elf_merge_private_bfd_data): Likewise. (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as 0x4000 for newly-added elf32-frvfdpic.
2004-05-06daily updateAlan Modra1-1/+1
2004-05-05Remove checks of the return value from bfd_cache_ookup()Nick Clifton4-6/+9
2004-05-05PR/136 - Have bfd_cache_lookup_worker() abort rather than return anNick Clifton3-26/+35
(unchecked-for) NULL.
2004-05-05Add support for 521x,5249,547x,548x.Nick Clifton4-1/+19
2004-05-05daily updateAlan Modra1-1/+1
2004-05-04daily updateAlan Modra1-1/+1
2004-05-03 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excludedAlan Modra2-9/+30
SEC_MERGE sections. * elflink.c (elf_link_input_bfd): Adjust output reloc index for those against discarded link-once and SEC_MERGE section symbols.
2004-05-03daily updateAlan Modra1-1/+1
2004-05-02bfd/H.J. Lu3-0/+62
2004-05-02 H.J. Lu <hongjiu.lu@intel.com> * section.c (bfd_get_section_by_name_if): New. * bfd-in2.h: Regenerated. gas/ 2004-05-02 H.J. Lu <hongjiu.lu@intel.com> * config/obj-elf.c (get_section): Return bfd_boolean. (obj_elf_change_section): Call bfd_get_section_by_name_if instead of bfd_map_over_sections.
2004-05-02 * som.c (som_bfd_is_group_section): Define.Alan Modra2-1/+6
2004-05-02daily updateAlan Modra1-1/+1
2004-05-01 * section.c (bfd_make_section_anyway): Copy the wholeAlan Modra2-1/+6
bfd_hash_entry, not just "next" from existing entry.
2004-05-01daily updateAlan Modra1-1/+1
2004-04-302004-04-30 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+37
* elf.c (bfd_section_from_shdr): Maintain the section order in a section group. (special_sections): Add ".note.GNU-stack". (elf_fake_sections): Handle section group for relocatable link..
2004-04-302004-04-30 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-0/+45
* section.c (bfd_sections_find_if): New. * bfd-in2.h: Regenerated.