summaryrefslogtreecommitdiff
path: root/ld/ldfile.c
Commit message (Collapse)AuthorAgeFilesLines
* * ldgram.y (lang_memory_region_type): Make static.Ben Elliston2005-04-281-4/+4
| | | | | | | | | | | | | (ldgram_want_filename): Likewise. * ldemul.c (ld_emulation): Make static. * ldfile.h (ldfile_find_command_file): Remove extern. * ldfile.c (ldfile_find_command_file): Make static. * ldlang.h (unique_section_list): Remove extern declaration. * ldlang.c (unique_section_list): Make static. * mri.h (symbol_truncate): Remove extern declaration. * mri.c (symbol_truncate): Make static. (order, only_load, address, alias): Likewise. (alignment, subalignment): Likewise.
* update copyright datesAlan Modra2005-03-031-1/+1
|
* * ldfile.c: Remove GNU960 conditional code.Ben Elliston2005-02-241-56/+0
| | | | | | * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/lnk960.em: Likewise.
* PR 423Alan Modra2004-10-111-4/+16
| | | | | * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are rejected when linking statically.
* Remove long-obsolete MPW support.Stan Shebs2004-03-301-5/+0
| | | | | | | | * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files. * Makefile.am (mpw): Remove file-presynthesizing actions. * Makefile.in: Likewise. * ldfile.c (slash): Remove MPW case. * ldlex.l [MPW]: Remove unused definition.
* * ldfile.c (ldfile_set_output_arch): Add defarch param.Alan Modra2004-01-031-8/+8
| | | | | | | | | | | | | | | | | | | | * ldfile.h (ldfile_set_output_arch): Ditto. * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use ldfile_set_output_arch. * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto. * ldgram.y: Adjust ldfile_set_output_arch call. * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/gld960c.em (gld960_set_output_arch): Ditto. * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto. * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
* Use consistent error messages for missing files.Nick Clifton2003-11-071-2/+2
| | | | Detect directories where an ordinary file is expected.
* Convert to C90Alan Modra2003-06-281-62/+33
|
* Correct spelling of "relocatable".Alan Modra2003-06-251-1/+1
|
* 2003-04-18 H.J. Lu <hjl@gnu.org>H.J. Lu2003-04-181-1/+0
| | | | | * ldfile.c (ldfile_add_library_path): Remove the unused variable.
* Fix memory leaksNick Clifton2003-03-311-4/+10
|
* ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define. (main): ↵Nick Clifton2003-03-251-38/+73
| | | | | | | | | Initialize them. ldfile.c: Include pathnames.h. (is_sysrooted_pathname): New. (ldfile_add_library_path): Use it. (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't search_dirs if given an absolute pathname. (ldfile_open_file): Issue error message for sysrooted absolute pathnames.
* * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition afterAndreas Schwab2003-03-191-0/+1
| | | | eof.
* * ldfile.h (struct search_dirs): Added sysrooted field.Alexandre Oliva2003-03-031-4/+27
| | | | | | | | | | | | | | | | * ldlang.h (struct lang_input_statement_struct): Likewise. * ldfile.c (ldfile_add_library_path): Mark sysrooted paths. (ldfile_open_file_search): Look for sysrooted filename starting with / in ld_sysroot instead of in the current directory. Clear sysrooted flag if it's found in the current directory. Set it from the search directory's sysrooted flag where it is found otherwise. * ldlang.c (ldlang_sysrooted_script): New static variable. (new_afile): Mark search_file_enums as sysrooted if ldlang_sysrooted_script. (load_symbols): Set ldlang_sysrooted_script according to the script's sysrooted field while processing it. * ld.texinfo: Document INPUT behavior in sysroot.
* * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.Daniel Jacobowitz2003-01-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * ldfile.c: Fix comment typos.Kazu Hirata2003-01-021-1/+1
| | | | | | * ldlang.c: Likewise. * mri.c: Likewise. * pe-dll.c: Likewise.
* Change linker's default behaviour - it will now reject binary files whoesNick Clifton2002-12-231-2/+3
| | | | | architecture it does not recognise, unless it has explicitly told to accept them.
* s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra2002-11-301-18/+18
| | | | comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
* * emultempl/aix.em: Use include <> for generated headers.Daniel Jacobowitz2002-10-301-1/+1
| | | | | | | | | | | | | | | | | | * 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.
* * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts ifJakub Jelinek2002-10-101-1/+93
| | | | | | | they have OUTPUT_FORMAT not matching actual output format. * ldlang.c (lang_get_output_target): New function. (open_output): Use it. * ldlang.h (lang_get_output_target): New prototype.
* * ldfile.c (ldfile_try_open_bfd): Formatting.Alan Modra2002-07-021-2/+1
|
* * ldexp.c: Replace CONST with const.Alan Modra2002-06-081-2/+2
| | | | | | | | * ldfile.c: Likewise. * ldfile.h: Likewise. * ldlex.l: Likewise. * mri.c: Likewise. * pe-dll.h: Likewise.
* * ldemul.c: Fix formatting.Kazu Hirata2002-05-251-1/+1
| | | | | | * ldfile.c: Likewise. * pe-dll.c: Likewise. * pe-dll.h: Likewise.
* XCOFF64 fixes. For setting arch/mach and for R_BR relocations.Tom Rix2002-05-101-1/+7
|
* * ld.h: Fix formatting.Kazu Hirata2002-05-031-2/+2
| | | | | | | | | * ldexp.c: Likewise. * ldfile.c: Likewise. * ldlang.c: Likewise. * ldmain.c: Likewise. * lexsup.c: Likewise. * pe-dll.c: Likewise.
* 2001-11-01 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2001-11-021-0/+3
| | | | | | | | | | | * ld.texinfo (Options): Document new option, -nostdlib. * lexsup.c (OPTION_NOSTDLIB): New definition. (ld_options): Add entry for "nostdlib". (parse_args): Handle OPTIONS_NOSTDLIB. * ldfile.c (ldfile_add_library_path): Don't add directories to the search path if they weren't specified on the command line and -nostdlib was specified. * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
* Locale changes from Bruno Haible <haible@clisp.cons.org>.H.J. Lu2001-09-191-5/+3
|
* Make --verbose always display linker scriptNick Clifton2001-08-121-1/+2
|
* 2001-05-02 H.J. Lu <hjl@gnu.org>H.J. Lu2001-05-021-1/+2
| | | | | | | | | | | | | | | | * ldfile.c: Include "libiberty.h". * ldlex.l: Likewise. * ldmisc.c (buystring): Removed. * ldmisc.h: Likewise. * ldfile.c: Replace buystring with xstrdup. * ldlang.c: Likewise. * ldlex.l: Likewise. * ldmain.c: Likewise. * ldmisc.c: Likewise. * lexsup.c: Likewise. * mpw-eppcmac.c: Likewise.
* Fixtypos in ChangeLogs, fix copyright dates in filesNick Clifton2001-03-131-1/+1
|
* 2001-02-20 H.J. Lu <hjl@gnu.org>H.J. Lu2001-02-201-7/+16
| | | | | * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to false if we found the file.
* 2000-10-09 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-10-091-16/+16
| | | | | | | | | | | | | | | * ldcref.c: Fix formatting. * ldctor.h: Likewise. * ldemul.c: Likewise. * ldemul.h: Likewise. * ldexp.c: Likewise. * ldexp.h: Likewise. * ldfile.c: Likewise. * ldfile.h: Likewise. * ld.h: Likewise. * ldlang.c: Likewise. * ldlang.h: Likewise. * ldmain.c: Likewise.
* 2000-09-29 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-09-291-18/+15
| | | | | | | | | * ldcref.c: Fix formatting. * ldctor.c: Likewise. * ldemul.c: Likewise. * ldexp.c: Likewise. * ldfile.c: Likewise. * ldlang.c: Likewise.
* Fix formatting and add missing new lkine at end of error messageNick Clifton2000-07-111-65/+68
|
* * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an emptyIan Lance Taylor2000-03-061-9/+14
| | | | archive.
* Add support for WinCE based toolchains.Nick Clifton2000-02-241-5/+4
|
* * ldfile.c: Revert patch of 1999-07-08.Ian Lance Taylor1999-07-091-32/+31
| | | | | (ldfile_try_open_bfd): If we are searching for the file, skip files with an incompatible architecture.
* Jakub Jelinek <jj@ultra.linux.cz>Richard Henderson1999-07-081-2/+29
| | | | | | * ldfile.c (ldfile_open_file_search): Skip libraries made for incompatible architectures in the search path. Let the user know about any such skips.
* 19990502 sourceware importbinu_ss_19990502Richard Henderson1999-05-031-0/+416