aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
1994-10-27 * ld-shared: New directory, with new files to test generating ELFIan Lance Taylor7-0/+426
shared libraries.
1994-10-27 * lib/ld.exp (default_ld_compile): If the compilation worked, butIan Lance Taylor1-0/+19
no object file was created, check to see if the compiler foolishly ignored the -o switch when compiling, and move the resulting object if it did.
1994-10-26* Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.oJ.T. Conklin12-112/+164
and esparcnbsd.o; sorted entries. (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets. * config/netbsd532.mt: Removed. * emulparams/netbsd532.sh: Removed. * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files. * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files. * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*, sparc*-*-netbsd*): Use above configs.
1994-10-25 * ldmain.c (multiple_common): One of the types may now beIan Lance Taylor1-0/+5
bfd_link_hash_indirect. The old BFD argument may be NULL.
1994-10-21 * configure.in: Add * at the end of m68k-hp-hpux.Ian Lance Taylor2-7/+11
1994-10-18 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not toIan Lance Taylor1-0/+5
YY_CHAR *.
1994-10-17* scripttempl/nw.sc: Gather constructors and destructors andJ.T. Conklin1-1/+6
define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
1994-10-17updated versionKen Raeburn2-3/+19
1994-10-14* Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.J.T. Conklin8-0/+144
(ei386nw.c, eppcnw.c): New targets. * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh, scripttmpl/nw.sc: New files, for i386 and powerpc netware. * configure.in: Changed netware ld_target name to be {i386,ppc}-nw instead of {i386,ppc}-elf. * configure.in (sparc*-*-netware): Removed. There is no such thing anymore.
1994-10-14* ldint.texinfo: Move misplaced `@end iftex'.J.T. Conklin1-0/+4
1994-10-14Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)Ian Lance Taylor1-0/+5
* scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and .rela.dtors to the list of .rel* sections.
1994-10-13configure.in: handle i[345]86-*-linux*, not just -linuxKen Raeburn1-0/+4
1994-10-13 * scripttempl/aout.sc: Set _etext and __etext to ., notIan Lance Taylor1-0/+7
${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck, will not break any other system. From Eric Valette <ev@chorus.fr>.
1994-10-12 * lexsup.c (parse_args): Change -V to be a synonym for -v. AddIan Lance Taylor2-3/+13
--verbose to get the old -V behaviour. * ld.1, ld.texinfo: Document this change.
1994-09-29missed this fileIan Lance Taylor1-0/+0
1994-09-29 * VMS does not permits `.' in directory names. RenamedIan Lance Taylor16-220/+3
ld.bootstrap to ld-bootstrap, ld.cdtest to ld-cdtest, and ld.scripts to ld-scripts.
1994-09-28 * config/default.exp: Set variables as and nm. Create tmpdir ifIan Lance Taylor8-10/+66
it does not already exist. * ld.bootstrap/bootstrap.exp: Don't create tmpdir here. * ld.cdtest/cdtest.exp: Likewise. * ld.scripts/defined.exp: Likewise. Also, don't set as and nm here. Change perror for no variables found to fail. * ld.scripts/script.exp: New test. * ld.scripts/script.t, ld.scripts/script.s: New files.
1994-09-28 * ld.scripts: New directory.Ian Lance Taylor9-1/+203
* ld.scripts/defined.exp, ld.scripts/defined.s: New files. * ld.scripts/defined.t: New file. * lib/ld.exp (default_ld_simple_link): New function. (default_ld_assemble, default_ld_nm): New functions. * config/default.exp: Rename from unix-ld.exp. (ld_simple_link, ld_assemble, ld_nm): New functions.
1994-09-27 * ldexp.c (fold_name): For DEFINED case, don't try to look up theIan Lance Taylor1-0/+4
name in the hash table during the first phase--the hash table does not even exist at that point, much less have the right value. PR 5699.
1994-09-27 * Makefile.in (CC): Define.Ian Lance Taylor8-191/+29
(CXX): Move definition, change from g++ to gcc. (EXPECT, RUNTEST): Copy definitions from top level Makefile.in. (RUNTEST_CC, RUNTEST_CFLAGS): Remove. (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove. (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in. (.cc.o): Comment out. (testdir): Remove. (site.exp): Don't create testdir or set tmpdir. (check): Run checks even if not running native. Use CC_FOR_TARGET instead of RUNTEST_CC, and likewise for CXX. (cdtest targets): Comment out. * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once. * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove. * cdtest-main.cc, cdtest.exp: Remove.
1994-09-27 * config/unix-ld.exp: Set ld using findfile.Ian Lance Taylor8-169/+179
* lib/ld.exp (default_ld_relocate): Return a value. Change format of log messages. (default_ld_compile): Likewise. (default_ld_link): Likewise. Also, don't include $BFDLIB and $LIBIBERTY in link. * ld.bootstrap/bootstrap.exp: Rewrite. * ld.cdtest/cdtest.exp: Rewrite. * ld.cdtest/cdtest-foo.cc: Update from top level ld directory. * ld.cdtest/cdtest-foo.h: Likewise. * ld.cdtest/cdtest-main.cc: Likewise.
1994-09-26 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOSIan Lance Taylor5-56/+4
file naming problems. * emulparams/elf32lmip.sh: Rename from elf32mipl.sh. * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to eelf32bmip.o and eelf32mipl.o to eelf32lmip.o. (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh. (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh. * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb. * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
1994-09-26 * genscripts.sh: Always search /usr/local/TARGET/lib.Ian Lance Taylor1-0/+2
1994-09-26 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".Ian Lance Taylor1-0/+8
1994-09-23 * lexsup.c (parse_args): Add support for -a for HP/UXIan Lance Taylor1-0/+7
compatibility.
1994-09-20 * ld.h (args_type): Add new field endian.Ian Lance Taylor4-7/+35
* lexsup.c (parse_args): Handle -EB and -EL by setting command_line.endian. * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments. * ldlang.c (lang_add_output_format): Add arguments big and little. If command_line.endian is set, use it to select big or little rather than the default. Changed all callers. * ldlang.h (lang_add_output_format): Update declaration. * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and LITTLE_OUTPUT_FORMAT. * emulparams/elf32mipl.sh: Likewise. * emulparams/mipsbig.sh: Likewise. * emulparams/mipsbsd.sh: Likewise. * emulparams/mipsidt.sh: Likewise. * emulparams/mipsidtl.sh: Likewise. * emulparams/mipslit.sh: Likewise. * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and LITTLE_OUTPUT_FORMAT if not already defined. Pass them to OUTPUT_FORMAT. * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT. * scripttempl/mipsbsd.sc: Likewise.
1994-09-20 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.Ian Lance Taylor2-1/+6
(eelf32mipl.c): New target.
1994-09-20 * configure.in (mips*el-elf*): New target.Ian Lance Taylor6-1/+36
* config/mipsl-elf32.mt: New file. * emulparams/elf32mipl.sh: New file.
1994-09-16 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it asIan Lance Taylor1-0/+5
ld -r -S -x. PR 5596.
1994-09-15 * ldmisc.c (vfinfo): Print BFD file name as well as file nameIan Lance Taylor1-0/+6
returned by find_nearest_line, in case the file name is something unhelpful such as a .h file. Handle %u.
1994-09-15Add some news.Ian Lance Taylor1-0/+41
1994-09-14 * ld.h (ld_config_type): Add new field warn_once.Ian Lance Taylor5-5/+99
* ldmain.c (undefined_symbol): Handle -warn-once. * lexsup.c (parse_args): Recognize -warn-once. * ld.texinfo (Options): Document -warn-once. * ld.1: Likewise. PR 4456.
1994-09-14Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)Steve Chamberlain2-2/+12
* ldlang.c (lang_do_assignments): Make sure output statement has an attached bfd_section before trying to dereference it.
1994-09-14Tweak the new handling of function names.Ian Lance Taylor1-3/+33
1994-09-14 * ldmisc.c (vfinfo): Handle %D as %C, but never print the functionIan Lance Taylor3-7/+21
name. For %C, print the function name on a separate line, to keep the length of error messages under control. * ldmain.c (multiple_definition): Use %D for ``first defined here.'' (undefined_symbol): Use %D for ``more undefined references follow''. PR 3770.
1994-09-14 * ldmisc.c (multiple_warn): Remove; no longer used.Ian Lance Taylor2-61/+14
* ldmisc.h (multiple_warn): Don't declare.
1994-09-14 * ldlang.c (print_output_section_statement): Print all linesSteve Chamberlain2-6/+11
to the map file.
1994-09-13 * ldlang.c (load_symbols): Check for archive before object. UseIan Lance Taylor4-66/+163
bfd_check_format_matches, and, if ambiguous, print a list of matching formats. If file format is not recognized, treat file as a linker script. * ldgram.y (yyerror): If assuming an object file is a script, mention that. Tweak the format of the error messages. * ldlex.l (lex_warn_invalid): If assuming an object is a script, guess that this is not actually a script, and just report that the file format was not recognized. * ld.texinfo (Options): Admit that -( may be used more than once. Add note that unrecognized object files are now treated as linker scripts. * ldfile.c (ldfile_input_filename): Make const. (ldfile_assumed_script): New variable. (try_open): Change arguments types to const. (ldfile_find_command_file): Likewise. (ldfile_open_command_file): Likewise. Also, set lineno to 1. * ldfile.h: Update declarations for ldfile.c changes. * ldlex.l: Include <ctype.h>. (file_name_stack): Change to be const char *. (lineno_stack): New static variable. (<<EOF>>): Set lineno as well as ldfile_input_filename. (lex_push_file): Make name argument const. Initialize lineno_stack entry. (lex_redirect): Initialize lineno_stack entry. (lex_warn_invalid): Handle non printable characters nicely. * ldlex.h (lex_push_file): Declare second argument as const. * ldgram.y (ifile_p1): Recognize GROUP. * ldlex.l: Recognize GROUP. * ld.texinfo (Option Commands): Document GROUP.
1994-09-13Merge in former supposed GM-specific bitsStan Shebs2-2/+2
1994-09-13Remove supposedly (but not really) GM-specific bitsStan Shebs3-32/+1
1994-09-12 * config/m68klynx.mh: New file.Ian Lance Taylor3-0/+7
1994-09-12 * emultempl/hppaelf.em: Add newlines to the error messages.Jeff Law1-0/+4
1994-09-12 * config/i386lynx.mh: New file.Ian Lance Taylor3-2/+10
* scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text unless CONSTRUCTING.
1994-09-10 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.Ian Lance Taylor3-17/+34
(GENERATE_SHLIB_SCRIPT): Define as yes. (DYNAMIC_LINK): Define as false. * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Initialize config.dynamic_link to DYNAMIC_LINK if it is defined. (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end. * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than generic.em.
1994-09-08 * scripttempl/h8500b.sc: Put rdata stuff into own segment.Steve Chamberlain1-0/+4
1994-09-08 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;Ian Lance Taylor1-0/+11
.got section is now explicitly handled in elf.sc.
1994-09-07xIan Lance Taylor1-1/+15
1994-09-07 * scripttempl/m68kcoff.sc: Put .bss in data segment.Ian Lance Taylor1-2/+2
* scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of 0, and to only be marked as NOLOAD if relocating. * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise. * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise. * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise. * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise. * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise. * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise. * scripttempl/sparclynx.sc: Likewise.
1994-09-05ARM Acorn/RISCiX target and host patches from Richard EarnshawKen Raeburn4-0/+47
1994-08-30 * ld.h (args_type): Add field soname.Ian Lance Taylor1-0/+8
* lexsup.c (parse_args): Handle -soname argument. * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections, pass soname. * ld.texinfo: Document -soname.