aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.c
AgeCommit message (Collapse)AuthorFilesLines
2004-01-03 * ldfile.c (ldfile_set_output_arch): Add defarch param.Alan Modra1-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.
2003-11-07Use consistent error messages for missing files.Nick Clifton1-2/+2
Detect directories where an ordinary file is expected.
2003-06-28Convert to C90Alan Modra1-62/+33
2003-06-25Correct spelling of "relocatable".Alan Modra1-1/+1
2003-04-182003-04-18 H.J. Lu <hjl@gnu.org>H.J. Lu1-1/+0
* ldfile.c (ldfile_add_library_path): Remove the unused variable.
2003-03-31Fix memory leaksNick Clifton1-4/+10
2003-03-25ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define. (main): ↵Nick Clifton1-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.
2003-03-19 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition afterAndreas Schwab1-0/+1
eof.
2003-03-03* ldfile.h (struct search_dirs): Added sysrooted field.Alexandre Oliva1-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.
2003-01-06 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.Daniel Jacobowitz1-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.
2003-01-02 * ldfile.c: Fix comment typos.Kazu Hirata1-1/+1
* ldlang.c: Likewise. * mri.c: Likewise. * pe-dll.c: Likewise.
2002-12-23Change linker's default behaviour - it will now reject binary files whoesNick Clifton1-2/+3
architecture it does not recognise, unless it has explicitly told to accept them.
2002-11-30s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra1-18/+18
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-10-30 * emultempl/aix.em: Use include <> for generated headers.Daniel Jacobowitz1-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.
2002-10-10 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts ifJakub Jelinek1-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.
2002-07-02 * ldfile.c (ldfile_try_open_bfd): Formatting.Alan Modra1-2/+1
2002-06-08 * ldexp.c: Replace CONST with const.Alan Modra1-2/+2
* ldfile.c: Likewise. * ldfile.h: Likewise. * ldlex.l: Likewise. * mri.c: Likewise. * pe-dll.h: Likewise.
2002-05-25 * ldemul.c: Fix formatting.Kazu Hirata1-1/+1
* ldfile.c: Likewise. * pe-dll.c: Likewise. * pe-dll.h: Likewise.
2002-05-10XCOFF64 fixes. For setting arch/mach and for R_BR relocations.Tom Rix1-1/+7
2002-05-03 * ld.h: Fix formatting.Kazu Hirata1-2/+2
* ldexp.c: Likewise. * ldfile.c: Likewise. * ldlang.c: Likewise. * ldmain.c: Likewise. * lexsup.c: Likewise. * pe-dll.c: Likewise.
2001-11-022001-11-01 Chris Demetriou <cgd@broadcom.com>Chris Demetriou1-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.
2001-09-19Locale changes from Bruno Haible <haible@clisp.cons.org>.H.J. Lu1-5/+3
2001-08-12Make --verbose always display linker scriptNick Clifton1-1/+2
2001-05-022001-05-02 H.J. Lu <hjl@gnu.org>H.J. Lu1-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.
2001-03-13Fixtypos in ChangeLogs, fix copyright dates in filesNick Clifton1-1/+1
2001-02-202001-02-20 H.J. Lu <hjl@gnu.org>H.J. Lu1-7/+16
* ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to false if we found the file.
2000-10-092000-10-09 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-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-292000-09-29 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-18/+15
* ldcref.c: Fix formatting. * ldctor.c: Likewise. * ldemul.c: Likewise. * ldexp.c: Likewise. * ldfile.c: Likewise. * ldlang.c: Likewise.
2000-07-11Fix formatting and add missing new lkine at end of error messageNick Clifton1-65/+68
2000-03-06 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an emptyIan Lance Taylor1-9/+14
archive.
2000-02-24Add support for WinCE based toolchains.Nick Clifton1-5/+4
1999-07-09 * ldfile.c: Revert patch of 1999-07-08.Ian Lance Taylor1-32/+31
(ldfile_try_open_bfd): If we are searching for the file, skip files with an incompatible architecture.
1999-07-08Jakub Jelinek <jj@ultra.linux.cz>Richard Henderson1-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.
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+416