aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
AgeCommit message (Collapse)AuthorFilesLines
2003-04-02pe-dll.c (pe_detail_list): arm-pe targets use underscores.Nick Clifton1-1/+9
(process_def_file): Don't create an export section if there are no exports and we're building an exe. (pe_dll_build_sections): Ditto (pe_dll_fill_sections): Conditionalize setting abfd->dll true on info->shared emultempl/pe.em (gld_${EMULATION_NAME}_after_open): If i386pe or armpe, call pe_dll_build_section() for both exe's and dll's, not just dll's. Don't call pe_dll_build_section() if link_info.relocateable. (gld_${EMULATION_NAME}_finish): For all targets except shpe and mipspe, call pe_dll_fill_sections() for both exe's and dll's, not just dll's. Don't call pe_dll_fill_sections() if link_info.relocateable.
2003-04-01Add Xtensa portNick Clifton1-0/+1586
2003-03-02 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.Alan Modra1-0/+83
(PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES, PARSE_AND_LIST_EPILOGUE): Don't define. * emultempl/alphaelf.em: New file.
2003-02-28 * ldemul.c: Include getopt.h.Alan Modra2-4/+2
* emultempl/elf32.em: Include getopt.h earlier. * emultempl/ticoff.em: Likewise.
2003-02-28 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combrelocAlan Modra1-0/+23
support when scripts read from files.
2003-02-28 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.Alan Modra21-281/+283
(ldemul_parse_args): Return bfd_boolean. Formatting. * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare. (ldemul_parse_args): Adjust. (struct ld_emulation_xfer_struct): Add add_options and handle_option. Return bfd_boolean from parse_args. * lexsup.c (parse_args): Malloc shortopts, longopts and really_longopts. Call ldemul_add_options and ldemul_handle_option. * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from gld${EMULATION_NAME}_parse_args. (gld${EMULATION_NAME}_handle_option): Likewise. (ld_${EMULATION_NAME}_emulation): Adjust initializer. * emultempl/armcoff.em: As for aix.em, but remove parse_args. * emultempl/beos.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/ticoff.em: Likewise. * emultempl/elf32.em: Likewise. Don't duplicate long options either. (gld${EMULATION_NAME}_add_sysroot): Prototype. * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate options. * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise. * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise. * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise. * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust initializer. * 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/mipsecoff.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/vanilla.em: Likewise. * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
2003-02-26* emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): FixAlexandre Oliva1-1/+1
memory allocation error.
2003-02-21Disable region size checking whilst relaxing sections.Nick Clifton3-7/+7
2003-02-18 * emultempl/ppc32elf.em: New file.Alan Modra1-0/+84
* emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define. * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em. (eelf32lppcnto.c): Likewise. (eelf32lppcsim.c): Likewise. (eelf32ppcnto.c): Likewise. (eelf32ppc.c): Likewise. (eelf32ppc_fbsd.c): Likewise. (eelf32ppcsim.c): Likewise. (eelf32ppclinux.c): Likewise.
2003-02-17 * emultempl/ppc64elf.em (ppc_create_output_section_statements): CheckAlan Modra1-17/+27
hash creator. (ppc_before_allocation): Don't do optimizations if wrong hash table. (gld${EMULATION_NAME}_finish): Ditto.
2003-02-11 * hppaelf.em (group_size): Change default back to 1.Dave Anglin1-1/+1
2003-02-09 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.Alan Modra1-16/+28
2003-02-07 * hppaelf.em (group_size): Change default to -1.Dave Anglin1-1/+1
2003-02-07Add duplicate entry for no-pipeline-knowledge. This will prevent the getoptNick Clifton1-6/+5
package from thinking that there are any shorter abbreviations for --no-pipeline-knowledge.
2003-02-04 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections thenAlan Modra1-1/+14
call ppc64_elf_tls_optimize.
2003-02-03 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysrootDaniel Jacobowitz1-3/+5
outside of GNU/Linux conditional.
2003-01-23include/elf/ChangeLogAlan Modra1-9/+10
* sh.h: Split out various bits to bfd/elf32-sh64.h. include/opcode/ChangeLog * m68hc11.h (cpu6812s): Define. bfd/ChangeLog * elf-bfd.h (struct bfd_elf_section_data): Remove tdata. Change dynindx to an int. Rearrange for better packing. * elf.c (_bfd_elf_new_section_hook): Don't alloc if already done. * elf32-mips.c (bfd_elf32_new_section_hook): Define. * elf32-sh64.h: New. Split out from include/elf/sh.h. (struct _sh64_elf_section_data): New struct. (sh64_elf_section_data): Don't dereference sh64_info (was tdata). * elf32-sh64-com.c: Include elf32-sh64.h. * elf32-sh64.c: Likewise. (sh64_elf_new_section_hook): New function. (bfd_elf32_new_section_hook): Define. (sh64_elf_fake_sections): Adjust for sh64_elf_section_data change. (sh64_bfd_elf_copy_private_section_data): Likewise. (sh64_elf_final_write_processing): Likewise. * elf32-sparc.c (struct elf32_sparc_section_data): New. (elf32_sparc_new_section_hook): New function. (SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete. (sec_do_relax): Define. (elf32_sparc_relax_section): Adjust to use sec_do_relax. (elf32_sparc_relocate_section): Likewise. * elf64-mips.c (bfd_elf64_new_section_hook): Define. * elf64-mmix.c (struct _mmix_elf_section_data): New. (mmix_elf_section_data): Define. Use throughout file. (mmix_elf_new_section_hook): New function. (bfd_elf64_new_section_hook): Define. * elf64-ppc.c (struct _ppc64_elf_section_data): New. (ppc64_elf_section_data): Define. Use throughout. (ppc64_elf_new_section_hook): New function. (bfd_elf64_new_section_hook): Define. * elf64-sparc.c (struct sparc64_elf_section_data): New. (sparc64_elf_new_section_hook): New function. (SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete. (sec_do_relax): Define. (sparc64_elf_relax_section): Adjust to use sec_do_relax. (sparc64_elf_relocate_section): Likewise. (bfd_elf64_new_section_hook): Define. * elfn32-mips.c (bfd_elf32_new_section_hook): Define. * elfxx-mips.c (struct _mips_elf_section_data): New. (mips_elf_section_data): Define. Use throughout. (_bfd_mips_elf_new_section_hook): New function. (mips_elf_create_got_section): Don't alloc used_by_bfd. * elfxx-mips.h (_bfd_mips_elf_new_section_hook): Declare. * elfxx-target.h (bfd_elfNN_new_section_hook): Add #ifndef. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ChangeLog * sh64-dis.c: Include elf32-sh64.h. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. gas/ChangeLog * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed sh64_elf_section_data. * config/tc-sh64.h: Include elf32-sh64.h. * config/tc-m68hc11.c: Don't include stdio.h. (md_show_usage): Fix missing continuation. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. ld/ChangeLog * emultempl/sh64elf.em: Include elf32-sh64.h. (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed sh64_elf_section_data. (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
2003-01-23Remove an extra "i" in --dll-search-prefix.Nick Clifton1-5/+6
Move a cross-80th-column-margin "an" to the next line.
2003-01-17 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do notAndreas Jaeger1-1/+1
skip ':'.
2003-01-06 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.Daniel Jacobowitz1-33/+75
* Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@. (GENSCRIPTS): Add @use_sysroot@. * Makefile.in: Regenerated. * configure.host: Move setting of NATIVE_LIB_DIRS to... * configure.tgt: ... here. Use ${target} instead of ${host} for NATIVE_LIB_DIRS. * configure.in: Add --with-sysroot. * configure: Regenerated. * genscripts.sh: Accept use_sysroot option. Set new variables NATIVE and USE_LIBPATH. Prepend "=" to directory names if $use_sysroot. Don't search $tool_lib if $use_sysroot. * ldfile.c (ldfile_add_library_path): Handle leading '='. * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined. (ld_sysroot): New variable. (main): Initialize ld_sysroot. * ldmain.h (ld_sysroot): New extern. * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of searching $EMULATION_LIBPATH. (gld${EMULATION_NAME}_add_sysroot): New function. (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot. (gld${EMULATION_NAME}_after_open): Likewise. Only search environment variables if $NATIVE. * ld.texinfo (Options): Mention "=" prefix in the description of -L. * NEWS: Mention --with-sysroot. * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX instead of setting LIB_PATH. * emulparams/elf32ppc.sh: Likewise. * emulparams/elf64_s390.sh: Likewise. * emulparams/elf64_sparc.sh: Likewise. * emulparams/elf64ppc.sh: Likewise. * emulparams/elf_x86_64.sh: Likewise. * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH. * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
2002-12-17Don't search for data import when auto-import is disabled.Nick Clifton1-63/+70
2002-12-17Use LD_PATHMAX+1 to account for trailing '\0'.Nick Clifton1-2/+2
2002-12-17Duplicate entry for --compact-implib so that it is not confused with -c.Nick Clifton1-0/+3
2002-12-16Add support to skip import libraries for performance reasons and insteadNick Clifton1-28/+35
use the direct auto-import of dll's
2002-12-10 * emultempl/elf32.em (struct orphan_save): Add os_tail field.Alan Modra1-0/+22
(gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement list too.
2002-12-04 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): SetAlan Modra1-3/+13
load_base for orphans that follow a section with load_base set.
2002-11-30s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra23-518/+536
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-11-14Add --enable-auto-import extension.Nick Clifton1-19/+29
2002-11-12 * emultempl/ppc64elf.em (ppc_before_allocation): New function.Alan Modra2-59/+73
(LDEMUL_BEFORE_ALLOCATION): Define. (gld${EMULATION_NAME}_finish): Run discard_info for relocatable linking. * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
2002-11-06Adds support for fastcall symbols as used on Microsoft Windows platformsNick Clifton1-215/+214
(i386)
2002-10-30 * emultempl/aix.em: Use include <> for generated headers.Daniel Jacobowitz4-4/+4
* emultempl/beos.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/pe.em: Likewise. * ldctor.c: Likewise. * ldexp.c: Likewise. * ldfile.c: Likewise. * ldlang.c: Likewise. * ldlex.c: Likewise. * ldlex.l: Likewise. * ldmain.c: Likewise. * ldmisc.c: Likewise. * ldwrite.c: Likewise. * lexsup.c: Likewise. * mri.c: Likewise. * pe-dll.c: Likewise.
2002-10-23 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*Jakub Jelinek1-0/+1
sections into .rel{,a}.dyn.
2002-10-10 * emultempl/elf32.em (output_rel_find): Prefer .rel script sectionsAlan Modra1-21/+31
when orphan is .rel, .rela when orphan is .rela. (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case first. Remove outsecname var.
2002-09-30 * emultempl/elf32.em (output_rel_find): Always place orphan loadableAlan Modra1-27/+29
reloc sections just before .rel.plt/.rela.plt. (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code. Only put loadable reloc sections in hold_rel.
2002-08-28 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,Alan Modra1-10/+10
strtoul and strtoull with bfd_scan_vma. (gld${EMULATION_NAME}_read_file): Likewise.
2002-08-27Revert ARM linker patch and apply similar patch to bfd insteadNick Clifton1-82/+43
2002-08-22Set the last bit of DT_INIT and DT_FINI depending on the type of the function.Nick Clifton1-43/+82
2002-08-07Only search for an interworking bfd if there are input bfds.Nick Clifton1-10/+12
2002-08-06 * emultempl/aix.em (gld*_before_parse): Set default arch. RevertsAlan Modra1-60/+69
2002-05-10 change.
2002-07-31Add new field to bfd_link structure and use it to control how common symbolsNick Clifton1-0/+9
are extracted from archives.
2002-07-20 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don'tAlan Modra3-3/+7
bomb on /DISCARD/ input section. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise. * emultempl/mmo.em (mmo_place_orphan): Likewise.
2002-07-19 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .textHans-Peter Nilsson1-0/+11
output section.
2002-07-01 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.Alan Modra5-14/+27
* ldlang.c (entry_sym): Likewise. (ldlang_undef_chain_list_type): Likewise. (lang_finish): Adjust references to entry_symbol. (lang_add_entry): Likewise. (lang_gc_sections): Use link_info.gc_sym_list. (lang_process): Set link_info.gc_sym_list. * ldlex.l: Include bfdlink.h. * ldmain.c (main): Init link_info.gc_sym_list. * emultempl/aix.em: Adjust references to entry_symbol. * emultempl/armcoff.em: Likewise. * emultempl/armelf.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/ppc64elf.em (ppc_after_open): New function. (LDEMUL_AFTER_OPEN): Define. * emulparams/elf64ppc.sh: KEEP .opd sections.
2002-06-192002-06-18 Chris Demetriou <cgd@broadcom.com>Chris Demetriou1-1/+1
* emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check section flags for SEC_DATA, rather than for SEC_CODE being unset.
2002-06-192002-06-18 Chris Demetriou <cgd@broadcom.com>Chris Demetriou1-1/+1
* emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix format specifier used to print BFD name.
2002-06-17Fix ld segfault for some elf targets. Fix default layout for d10v.Tom Rix1-0/+4
2002-06-132002-06-12 H.J. Lu <hjl@gnu.org>H.J. Lu1-0/+7
* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return false if xvec doesn't match.
2002-06-07 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.Alan Modra1-1/+1
2002-06-07Enable pei386_auto_import by default. Only print a info message about autoNick Clifton1-5/+6
imports being resilved if this feature was not requested via a command line switch.
2002-06-05 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): PlaceAlan Modra1-1/+1
SEC_EXCLUDE sections when doing a relocatable link.