aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2005-10-30 * as.c (show_usage): Document "@FILE".Mark Mitchell1-0/+4
* gprof.c (usage): Document "@FILE". * lexsup.c (help): Document "@FILE".
2005-10-30ld/H.J. Lu1-0/+7
binutils/ opcodes/ 2005-10-30 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am: Run "make dep-am". * Makefile.in: Regenerated. * dep-in.sed: Replace " ./" with " ".
2005-10-25Add support for the Z80 processor familyNick Clifton1-0/+10
2005-10-25RegenerateAlan Modra1-0/+4
2005-10-24 * ld.texinfo (--reduce-memory-overheads): Fix typo.Alan Modra1-0/+4
2005-10-24bfd/H.J. Lu1-0/+12
2005-10-23 H.J. Lu <hongjiu.lu@intel.com> PR ld/1487 * elf-bfd.h (_bfd_generic_init_private_section_data): New. (_bfd_elf_init_private_section_data): New. * elf.c (elf_fake_sections): Don't set SHF_GROUP for relocatable link. (bfd_elf_set_group_contents): Don't handle relocatable link specially. (assign_section_numbers): If it isn't called by assembler, use the output section of elf_linked_to_section for SHF_LINK_ORDER. (_bfd_elf_init_private_section_data): New. (_bfd_elf_copy_private_section_data): Call it. * libbfd-in.h (_bfd_generic_init_private_section_data): New. * libbfd.c (_bfd_generic_init_private_section_data): New. * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_generic_init_private_section_data. (bfd_init_private_section_data): Likewise. * bfd-in2.h: Regenerated. * libbfd.h: Likewise. ld/ 2005-10-23 H.J. Lu <hongjiu.lu@intel.com> PR ld/1487 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call bfd_match_sections_by_type to match section types. * ldlang.c (init_os): Take the input section. Call bfd_init_private_section_data if the input section isn't NULL. (exp_init_os): Pass NULL to init_os. (map_input_to_output_sections): Likewise. (lang_add_section): Pass the input section to init_os. ld/testsuite/ 2005-10-23 H.J. Lu <hongjiu.lu@intel.com> PR ld/1487 * ld-ia64/tlspic.rd: Updated.
2005-10-192005-10-19 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+4
* emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
2005-10-15bfd/H.J. Lu1-0/+12
2005-10-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/1467 * elf-bfd.h (_bfd_elf_match_sections_by_type): New. (_bfd_generic_match_sections_by_type): New. Defined. * elf.c (_bfd_elf_match_sections_by_type): New. * libbfd-in.h (_bfd_generic_match_sections_by_type): New. * bfd-in2.h: Regenerated. * libbfd.h: Likewise. * libbfd.c (_bfd_generic_match_sections_by_type): New. * targets.c (BFD_JUMP_TABLE_LINK): Initialize _bfd_match_sections_by_type with _bfd_generic_match_sections_by_type. (bfd_target): Add _bfd_match_sections_by_type. ld/ 2005-10-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/1467 * emultempl/elf32.em: Include "elf-bfd.h". (gld${EMULATION_NAME}_place_orphan): Check section type and don't use section name for ELF input sections. * ld.texinfo: Document orphan section processing. * ldlang.c (lang_output_section_find_by_flags): Match section types by calling bfd_match_sections_by_type.
2005-10-13 * ld.texino: Describe double-quoted string syntax for versionMark Mitchell1-0/+12
nodes. * ldlang.h (lang_new_vers_pattern): Add literal_p parameter. * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER. Adjust calls to lang_new_vers_pattern to pass literal_p argument. * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match version nodes without a pattern. (lang_new_vers_pattern): Add literal_p parameter. (lang_do_version_exports_section): Pass it. * ld-elfvers/vers.exp: Add vers31. * ld-elfvers/vers31.c: New file. * ld-elfvers/vers31.dsym: Likewise. * ld-elfvers/vers31.map: Likewise. * ld-elfvers/vers31.ver: Likewise.
2005-10-13 * NEWS: Mention @file.Mark Mitchell1-0/+4
* NEWS: Mention @file.
2005-10-052005-10-05 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+12
PR ld/1396 * ldcref.c (check_refs): Accept bfd_boolean. (check_local_sym_xref): Pass FALSE to check_refs. (check_nocrossref): Pass TRUE to check_refs. (check_refs_info): Add bfd_boolean. (check_refs): Add bfd_boolean to check_refs_info. (check_reloc_refs): Match relocations with proper symbols. * ldmisc.c (vfinfo): Don't add extra ":\n".
2005-10-05 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): SetDanny Smith1-0/+6
default entry symbol to ENTRY here. * scripttempl/pe.sc: Not here.
2005-09-30Fix malformed error message.Jim Wilson1-0/+4
* ldlang.c (lang_startup): Add missing ": " to einfo call.
2005-09-302005-09-30 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+6
* Makefile.am: Run "make dep-am". * Makefile.in: Regenerated. * aclocal.m4: Likewise.
2005-09-30ld/H.J. Lu1-0/+19
2005-09-30 H.J. Lu <hongjiu.lu@intel.com> * ldlang.c (output_statement_hash_entry): New type. (output_statement_table): New variable for hash table. (output_statement_newfunc): New function. (output_statement_table_init): Likewise. (output_statement_table_free): Likewise. (lang_init): Call output_statement_table_init. (lang_finish): Renamed to ... (lang_end): This. (lang_process): Updated. (lang_finish): New function. (lang_output_section_find_1): Use hash table. (lang_output_section_statement_lookup_1): Likewise. * ldlang.h (lang_finish): New. * ldmain.c (main): Call lang_finish. ld/testsuite/ 2005-09-30 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/sec64k.exp: Enabled for all ELF targets.
2005-09-30 * addr2line.c (main): Likewise.Mark Mitchell1-0/+4
* ar.c (main): Likewise. * coffdump.c (main): Likewise. * cxxfilt.c (main): Likewise. * dlltool.c (main): Likewise. * dllwrap.c (main): Likewise. * nlmconv.c (main): Likewise. * nm.c (main): Likewise. * objcopy.c (main): Likewise. * objdump.c (main): Likewise. * readelf.c (main): Likewise. * size.c (main): Likeiwse. * srcconv.c (main): Likewise. * strings.c (main): Likewise. * sysdump.c (main): Likewise. * sysinfo.c (main): Likewise. * windres.c (main): Likewise. * ldmain.c (main): Use expandargv. * gprof.c (main): Use expandargv. * as.c (main): Use expandargv.
2005-09-30 * Makefile.am: Bfin support.Catherine Moore1-0/+9
* Makefile.in: Regenerated. * aclocal.m4: Regenerated. * configure.tgt: Bfin support. * emulparams/bfin.sh: New file. * emultempl/bfin.em: New file.
2005-09-30asintl.h/bucomm.h/ld.h: Prevent the inclusion of <libintl.h> from the SolarisNick Clifton1-0/+5
version of <locale.h> when ENABLE_NLS is not defined. gprof.c (main):Only invoke bindtextdomain() and textdomain() if ENABLE_NLS is defined.
2005-09-282005-09-27 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+8
* ld.texinfo (ALIGN): Document it as forcing output section alignment. * ldgram.y (ALIGN): Support it for forcing output section alignment.
2005-09-20 * ldlang.h (lang_output_section_statement_struct): Change type ofAlan Modra1-0/+7
"processed" to bfd_boolean. * ldexp.c (fold_name): Update references to os->processed. * ldlang.c (lang_output_section_statement_lookup_1): Likewise. (lang_size_sections_1): Likewise. (lang_reset_memory_regions): Likewise.
2005-09-19 PR ld/1353Alan Modra1-0/+6
* ldlang.c (lang_size_sections_1): Process addr_tree earlier, so that unused output section statements affect dot.
2005-09-08 * ld.texinfo: Document -z {no,}execstack, -z {no,}relroJakub Jelinek1-0/+5
and --eh-frame-hdr options.
2005-09-07 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.Alan Modra1-0/+7
(exp_fold_tree_1): Print assert message only in final stage of linking. Trigger assertion failure if expression cannot be evaluated.
2005-09-072005-09-06 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+6
PR ld/1263 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check --just-symbols on DSO.
2005-08-18 * scripttempl/elf.sc: Remove commented out defines.Alan Modra1-0/+4
2005-08-18Remove a29k files.Alan Modra1-0/+3
2005-08-18Remove a29k support.Alan Modra1-0/+7
2005-08-17 * ldgram.y (vers_defns): Don't lose pattern list beforeJakub Jelinek1-0/+5
extern NAME {}. Handle global, local and extern symbol names. ld/testsuite/ * ld-elfvers/vers.exp: Add a new test, vers30. * ld-elfvers/vers30.c: New file. * ld-elfvers/vers30.map: New file. * ld-elfvers/vers30.ver: New file. * ld-elfvers/vers30.dsym: New file.
2005-08-17 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):Kaz Kojima1-0/+5
Don't increment rel_count of .cranges here. Set rawsize of .cranges.
2005-08-10pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions beforeNick Clifton1-0/+5
lang_size_sections.
2005-08-09 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.Alan Modra1-1/+5
2005-08-08Add support for msp430x21xx variantsNick Clifton1-0/+10
2005-08-05bfd/H.J. Lu1-0/+15
2005-08-05 H.J. Lu <hongjiu.lu@intel.com> * bfd.c (bfd_hide_symbol): New. * bfd-in2.h: Regenerated. ld/ 2005-08-05 H.J. Lu <hongjiu.lu@intel.com> * ld.texinfo: Document PROVIDE_HIDDEN. * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked. (exp_provide): Add and set hidden. * ldexp.h (etree_type): Add hidden to assign. * ldgram.y (PROVIDE_HIDDEN): New. * ldlex.l (PROVIDE_HIDDEN): Likewise. * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound symbols.
2005-08-05 * emulparams/elf_x86_64.sh: Revert last change.Alan Modra1-0/+5
* scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
2005-08-05 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out fromAlan Modra1-0/+37
OTHER_END_SYMBOLS. * emulparams/armelf_linux.sh: Likewise. * emulparams/armnto.sh: Likewise. * emulparams/criself.sh: Likewise. * emulparams/elf32mcore.sh: Likewise. * emulparams/criself.sh (OTHER_SYMBOLS): Define. * emulparams/crislinux.sh (OTHER_SYMBOLS): Define. (OTHER_END_SYMBOLS): Don't define. * emulparams/elf32fr30.sh: Likewise. * emulparams/elf64mmix.sh: Likewise. * emulparams/hppa64linux.sh: Likewise. * emulparams/m32relf.sh: Likewise. * emulparams/vxworks.sh: Likewise. * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete. (OTHER_BSS_END_SYMBOLS): Add. (OTHER_END_SYMBOLS): Move before current end sym definitions. (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script. * scripttempl/elf.sc: Likewise. * scripttempl/elf32sh-symbian.sc: Likewise. * scripttempl/elf_chaos.sc: Likewise. * scripttempl/elfxtensa.sc: Likewise. * scripttempl/iq2000.sc: Likewise. * scripttempl/xstormy16.sc: Likewise. * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete. (REL_LDATA, REL_LBSS, REL_LRODATA): Delete. (REL_LARGE, LARGE_SECTIONS): Add. * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text. (REL_LARGE): Define. * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define. (LARGE_SECTIONS): Define. * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define. (LARGE_SECTIONS): Define.
2005-08-04bfd/Alan Modra1-0/+30
* elf32-ppc.c (struct elf_linker_section): Replace sym_val field with sym. (ppc_elf_relocate_section): Adjust for above. (create_sdata_sym): New function. (ppc_elf_create_linker_section): Call it. (ppc_elf_check_relocs): Correct has_sda_refs and non_got_refs. Create sdata syms for all SDA relocs. (ppc_elf_adjust_dynamic_symbol): Don't special case _SDA_BASE_ and _SDA2_BASE_. (ppc_elf_set_sdata_syms): Delete. * elflink.c (bfd_elf_size_dynamic_sections): Don't create DT_INIT and DT_FINI tags unless associated section has input. (bfd_elf_set_symbol, _bfd_elf_provide_symbol): Delete. (_bfd_elf_provide_section_bound_symbols): Delete. * bfd-in.h (_bfd_elf_provide_symbol): Delete. (_bfd_elf_provide_section_bound_symbols): Delete. * bfd-in2.h: Regenerate. ld/ * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete. * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete. (struct ld_emulation_xfer_struct): Remove do_assignments field. * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments. * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New. (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New. * emultempl/aix.em (ld_*_emulation): Delete do_assignments init. * emultempl/armcoff.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/generic.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68kcoff.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/vanilla.em: Likewise. * emultempl/elf32.em: Likewise. (gld*_provide_bound_symbols): Delete. (gld*_provide_init_fini_syms): Delete. (gld*_before_allocation): Don't call ldemul_do_assignments. * emultempl/ppc32elf.em (ppc_do_assignments): Delete. (LDEMUL_DO_ASSIGNMENTS): Delete. * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS, SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
2005-08-04 * Makefile.am (eelf32m32c.c): Fix dependencies.Alan Modra1-0/+5
* Makefile.in: Regenerate.
2005-08-04bfd/Alan Modra1-0/+25
* elflink.c (fix_syms, _bfd_elf_fix_excluded_sec_syms): Move to.. * linker.c (fix_syms, _bfd_fix_excluded_sec_syms): ..here. * bfd-in.h (_bfd_fix_excluded_sec_syms): Rename. * bfd-in2.h: Regenerate. ld/ * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally. (finish_default): New function. * ldemul.h (finish_default): Declare. * emultempl/aix.em (gld*_before_allocation): Call before_allocation_default rather than strip_excluded_output_sections. (ld_*_emulation): Init finish field to finish_default. * emultempl/armcoff.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/generic.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68kcoff.em: Likewise. * emultempl/mmo.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/vanilla.em: Likewise.
2005-08-03 * ldlang.c (exp_init_os): Handle etree_provide.Alan Modra1-0/+23
* emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from.. (OTHER_BSS_END_SYMBOLS): ..this. * emulparams/armelf_linux.sh: Likewise. * emulparams/armnto.sh: Likewise. * emulparams/criself.sh: Likewise. * emulparams/crislinux.sh: Likewise. * emulparams/elf32frv.sh: Likewise. * emulparams/elf32mcore.sh: Likewise. * emulparams/elf32ppc.sh: Likewise. * emulparams/elf32ppclinux.sh: Likewise. * emulparams/hppa64linux.sh: Likewise. * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not $OTHER_BSS_END_SYMBOLS. * scripttempl/elf32sh-symbian.sc: Likewise. * scripttempl/elf_chaos.sc: Likewise. * scripttempl/iq2000.sc: Likewise. * scripttempl/xstormy16.sc: Likewise. * scripttempl/elf.sc: Likewise. Delete __bss_start comment. * scripttempl/elfxtensa.sc: Likewise.
2005-07-29* ldmain.c (main): Allow -shared and -static to be used together.Nick Clifton1-0/+5
* ld.texinfo (-static): Mention that it is allowed with -shared.
2005-07-28* ldlang.c (lang_output_section_statement_lookup_1): Don't cast aDJ Delorie1-0/+6
unary & address operator, as that breaks GCC's strict aliasing rules.
2005-07-25bfd/H.J. Lu1-0/+7
2005-07-25 Jan Hubicka <jh@suse.cz> H.J. Lu <hongjiu.lu@intel.com> * elf-bfd.h (_bfd_elf_large_com_section): New. * elf.c (_bfd_elf_large_com_section): New. Defined. * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): New. (elf64_x86_64_elf_section_from_bfd_section): New. (elf64_x86_64_symbol_processing): New. (elf64_x86_64_common_definition): New. (elf64_x86_64_common_section_index): New. (elf64_x86_64_common_section): New. (elf64_x86_64_merge_symbol): New. (elf64_x86_64_additional_program_headers): New. (elf64_x86_64_special_sections): New. (elf_backend_section_from_bfd_section): New. Defined. (elf_backend_add_symbol_hook): Likewise. (elf_backend_common_section_index): Likewise. (elf_backend_common_section): Likewise. (elf_backend_common_definition): Likewise. (elf_backend_merge_symbol): Likewise. (elf_backend_special_sections): Likewise. (elf_backend_additional_program_headers): Likewise. binutils/ 2005-07-25 H.J. Lu <hongjiu.lu@intel.com> * readelf.c (dump_relocations): Handle SHN_X86_64_LCOMMON. (get_symbol_index_type): Likewise. (get_elf_section_flags): Handle SHF_X86_64_LARGE. gas/ 2005-07-25 Jan Hubicka <jh@suse.cz> H.J. Lu <hongjiu.lu@intel.com> * config/obj-elf.c: Include "elf/x86-64.h" if TC_I386 is defined. (elf_com_section_ptr): New. (elf_begin): Set elf_com_section_ptr to bfd_com_section_ptr. (elf_common_parse): Make it global. Use elf_com_section_ptr instead of bfd_com_section_ptr. (obj_elf_change_section): Handle x86-64 large bss sections. * config/obj-elf.h (elf_com_section_ptr): New. (elf_common_parse): New. * config/tc-i386.c (handle_large_common): New. (md_pseudo_table): Add "largecomm". (x86_64_section_letter): New. (x86_64_section_word): New. * config/tc-i386.h (x86_64_section_word): New. (x86_64_section_letter): New. (md_elf_section_letter): New. Defined. (md_elf_section_word): Likewise. include/elf/ 2005-07-25 Jan Hubicka <jh@suse.cz> * x86-64.h (SHN_X86_64_LCOMMON): New. (SHF_X86_64_LARGE): New. ld/ 2005-07-25 Jan Hubicka <jh@suse.cz> H.J. Lu <hongjiu.lu@intel.com> * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New. * scripttempl/elf.sc: Updated for large section support.
2005-07-22Remove special case handling for rtems targets that are sufficiently handled byNick Clifton1-0/+5
the default rtems targets.
2005-07-21 * ldgram.y (ldgram_want_filename): Remove unused static.Ben Elliston1-0/+4
2005-07-20* emulparams/elf32m32c.sh (TEMPLATE_NAME): New.DJ Delorie1-0/+5
(EXTRA_EM_FILE): New.
2005-07-192005-07-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+4
* ldmain.c (main): Reindent.
2005-07-192005-07-19 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+5
* configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose to determine dynamic linker name.
2005-07-19Add ChangeLog entries for yesterdays deltas (oops!)Nick Clifton1-0/+4
2005-07-16bfd/Alan Modra1-0/+10
* elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack for zero size sections. Don't set .sbss syms here. * elf32-ppc.h (ppc_elf_set_sdata_syms): Adjust prototype. ld/ * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype. (gld*_before_allocation): Call ldemul_do_assignments rather than gld*_provide_init_fini_syms directly. * emultempl/ppc32elf.em (gld*_after_allocation): Delete. (ppc_do_assignments): New function. (LDEMUL_AFTER_ALLOCATION): Don't define. (LDEMUL_DO_ASSIGNMENTS): Define.
2005-07-16bfd/Alan Modra1-0/+6
* Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ * Makefile.am: Run "make dep-am". (stamp-m32c): Fix cpu dependencies. * Makefile.in: Regenerate. * ip2k-dis.c: Regenerate. binutils/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. gas/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. ld/ * Makefile.am: Run "make dep-am". (emipsidt.c, emipsidtl.c): Depend on generic.em. * Makefile.in: Regenerate.