aboutsummaryrefslogtreecommitdiff
path: root/ld
AgeCommit message (Collapse)AuthorFilesLines
1995-10-04 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.Ian Lance Taylor2-15/+29
* ldexp.h (exp_get_abs_int): Update declaration. * ldlang.c (print_output_section_statement): Use fprintf_vma to print return value of exp_get_abs_int. PR 8142.
1995-10-02 * emultempl/elf32.em (global_stat): New file static variable.Ian Lance Taylor2-4/+59
(gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure that the file has not already been included under another name. (gld${EMULATION_NAME}_stat_needed): New static function.
1995-09-29 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): IfIan Lance Taylor2-9/+39
command_line.rpath is set, use it, rather than the -L options, to build the rules section. * ld.texinfo: Document this use of -rpath.
1995-09-29 * lexsup.c (parse_args): Don't set link_info.shared for -assertIan Lance Taylor1-0/+28
pure-text. Pass true, not 1, to lang_add_entry. * emultempl/sunos.em (find_assign): New static variable. (found_assign): New static variable. (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn. If not a relocateable link, and no start symbol was specified on the command line, and there are any undefined symbols, set link_info.shared. If link_info.shared is set, set the address of the .text section to 0x20. (gld${EMULATION_NAME}_find_assignment): Rename from gld${EMULATION_NAME}_find_statement_assignment. If find_assign is set, then just set found_assign based on whether an assignment is found to find_assign. (gld${EMULATION_NAME}_get_script): Don't use a special script when producing a shared library. * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove. * scripttempl/aout.sc: Remove CREATE_SHLIB tests. * ldlang.c (entry_from_cmdline): New global variable. (lang_add_entry): Change cmdline parameter from int to boolean. Use global entry_from_cmdline rather than function static from_cmdline. * ldlang.h (entry_from_cmdline): Declare. (lang_add_entry): Change declaration of second parameter from int to boolean. * ldgram.y: Pass false, not 0, to lang_add_entry.
1995-09-28 * ld.h (parsing_defsym): Declare.Ian Lance Taylor2-0/+18
* ldlex.h (lex_string): Declare. * ldlex.l (lex_string): Define. * lexsup.c (parsing_defsym): Define. (parse_args): In OPTION_DEFSYM case, set lex_string before calling lex_redirect, and clear it after calling yyparse. Set parsing_defsym around call to yyparse. * ldmain.c (main): Set lex_string before calling lex_redirect, and clear it after calling yyparse. * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built in linker scripts correctly. PR 8092.
1995-09-28 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like otherIan Lance Taylor1-0/+4
COFF targets, allowing for the leading underscore used on SPARC COFF. PR 8006.
1995-09-28mention creating SunOS shared librariesIan Lance Taylor1-2/+12
1995-09-28 * ld-shared/shared.exp: Run the tests on sparc*-*-sunos4*. AddIan Lance Taylor3-0/+29
appropriate modifications and setup_xfails. * ld-shared/sun4.dat: New file.
1995-09-28 * lexsup.c (parse_args): Handle -assert.Ian Lance Taylor5-178/+74
* emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define. * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the shared library script when appropriate. * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text section at SIZEOF_HEADERS.
1995-09-28 * Makefile.in (earmcoff.c): Build.David Edelsohn5-0/+52
* configure.tgt (arm-*-coff): New target * emulparms/armcoff.sh: New file. * scripttempl/armcoff.sc: New file.
1995-09-26 * scripttempl/i386coff.sc: Remove .data2; no longer needed.Ian Lance Taylor1-0/+4
1995-09-22 * ldfile.c (ldfile_set_output_arch): Make arch const.Ian Lance Taylor1-0/+4
1995-09-21Locate __bss_start at the real start of bss.Michael Meissner2-3/+20
1995-09-18 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:Ian Lance Taylor2-8/+16
* Makefile.in (CC_FOR_TARGET): Remove brokensed stuff. (CXX_FOR_TARGET): Likewise. (install): Likewise. (GENERATED_HFILES): Remove config.h. (.dep): Depend upon config.h.
1995-09-18Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>Ian Lance Taylor1-0/+4
* configure.tgt (mips*-dec-netbsd*): New target.
1995-09-18 * lib/ld.exp (default_ld_version): Call prune_system_crud.Ian Lance Taylor1-3/+17
(default_ld_relocate, default_ld_link): Likewise. (default_ld_simple_link, default_ld_compile): Likewise. (default_ld_assemble, default_ld_nm): Likewise.
1995-09-18mention COFF linker improvementIan Lance Taylor1-3/+31
1995-09-16configure.host: fix shell syntax errorsKen Raeburn1-0/+9
1995-09-12 * Makefile.in (maintainer-clean): New target.Ian Lance Taylor2-1/+5
1995-09-12 * ldmain.c (struct warning_callback_info): Define.Ian Lance Taylor1-1/+8
(warning_callback): Add new parameter symbol. Call warning_find_reloc to try to find the section and VMA. (warning_find_reloc): New static function. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Pass NULL as symbol parameter to warning callback.
1995-09-12Thu Sep 7 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-0/+6
* scripttemp/pe.sc: Allow both spellings of .ctors/.dtors. Start .text section on the right boundary. Always align stabs.
1995-09-12 * ld.texinfo: Clarify -L option.Ian Lance Taylor1-0/+2
1995-09-12 * ldlang.c (lang_one_common): Add cast to avoid warning.Ian Lance Taylor1-0/+8
(topower): Likewise. Also, reindent. * ldwrite.c (clone_section): Change i to unsigned int. * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add cast to avoid warning.
1995-09-11Revert Linux directory searching: it turns out that Linux no longerIan Lance Taylor6-171/+4
uses it.
1995-09-08 Add Linux style directory searching.Ian Lance Taylor6-11/+219
* configure.tgt: Add i386lelf to targ_extra_emuls for i[345]86-*-linuxaout* and i[345]86-*-linuxoldld. For i[345]86-*-linux*, set targ_emul to i386lelf, and add elf_i386 to targ_extra_emuls. * emulparams/i386lelf.sh: New file, a copy of elf_i386.sh. * emultempl/elf32.em: If TARGET_IS_i386lelf, use autoconf recommended mechanism to define DIR and struct dirent. (libcmp): New static function use only when TARGET_IS_i386lelf. (gld${EMULATION_NAME}_open_dynamic_archive): Likewise. * Makefile.in (ALL_EMULATIONS): Add ei386lelf.o (ei386lelf.c): New target.
1995-09-08 * ldemul.h (ldemul_set_symbols): Declare.Ian Lance Taylor1-0/+4
(ldemul_parse_args): Declare. * ldemul.c (ldemul_parse_args): Fix indentation.
1995-09-08 * ld-cdtest/cdtest.exp: If the compiler does not exist, mark theIan Lance Taylor1-0/+9
tests as untested rather than unresolved.
1995-09-08 * configure.in: Call AC_HEADER_DIRENT.Ian Lance Taylor2-12/+25
* configure, config.in: Rebuild. * emultempl/sunos.em: Use autoconf recommend mechanism to define DIR and struct dirent.
1995-09-08 * configure.tgt (mips*-*-bsd*): New case.Ian Lance Taylor2-0/+3
1995-09-08 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)Ian Lance Taylor3-0/+131
New case. * configure.tgt (i[345]86-*-ptx*): New case.
1995-09-07 * config.in: Rename from config.h.in.Ian Lance Taylor6-809/+1090
* configure.in: Call AC_CONFIG_HEADER with config.h:config.in. Check for config.h:config.in when creating stamp-h. * configure: Rebuild. * Makefile.in (stamp-h): Depend upon config.in rather than config.h.in. Set CONFIG_HEADERS to config.h:config.in when calling config.status.
1995-09-07 * Makefile.in (distclean): Remove config.h and stamp-h.Ian Lance Taylor2-2/+6
1995-09-07 * configure.host (sparc-*-sunos64*): Remove.Ian Lance Taylor3-3/+122
* ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
1995-09-07 * ldexp.c (exp_fold_tree): Don't warn about moving the locationIan Lance Taylor1-0/+29
counter backward in the absolute section. PR 7942.
1995-09-06 * configure.in: Rewrite to use autoconf.Ian Lance Taylor103-415/+156
* configure.host: New file. * configure.tgt: New file. * aclocal.m4: New file. * configure: New file, built by autoconf. * acconfig.h: New file. * config.h.in: New file, built by autoheader. * sysdep.h: New file. * ld.h: Incorporate old contents of config.h. * config.h: Remove. * Makefile.in: Various changes for new configure script. Also: (CC_FOR_BUILD): Remove. (ldmain.o): Don't bother to ensure that EMUL is non-empty. (dep.sed): Use @SRCDIR@, not @srcdir@. * dep-in.sed: Use @SRCDIR@, not @srcdir@. * genscripts.sh: Create ldscripts if it does not exist. * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h". * mpw-esh.c, emultemp/*.em: Likewise. * ldmain.c: Likewise. Include <ctype.h>. Don't try to set HAVE_SBRK here. * config/*.mt, config/*.mh: Remove.
1995-09-05some ns32k updates from Ian DallKen Raeburn2-7/+27
1995-09-01 * ldmain.c (warning_callback): Add abfd, section, and addressIan Lance Taylor1-0/+11
parameters. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Change call to warning accordingly. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not relocateable and not shared, put .gnu.warning.SYMBOL sections into the .text section.
1995-09-01NEC VR4300 target (IDT SIM monitor) support.Jackie Smith Cashion7-0/+64
Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com> * configure.in: Added mips*vr4300-idt-elf* and mips*vr4300el-idt-elf* targets. * Makefile.in: Added eelf32vr4300* targets. * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added. * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
1995-09-01 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan KehoeIan Lance Taylor1-0/+5
<brendan@cygnus.com>.
1995-08-31Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain2-0/+494
* ldemul.c (ldemul_parse_args): New. * ldemul.h (ld_emulation_xfer_struct): Add parse_args. * lexsup.c (all pe stuff): Moved into pe.em (parse_args): Call emulation arg parser. * emultempl/pe.em (parse_args): handle PE specfic args.
1995-08-31 * ldlang.c (lang_memory_region_lookup): Don't use the first regionIan Lance Taylor1-0/+23
as the default region. Create a new region instead.
1995-08-22Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-0/+6
* scripttempl/pe.sc: Keep .edata, don't base stabs at 0. * emulparams/armpe.sh: Run PE script.
1995-08-22Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain1-0/+5
* ldmain.c (main): Remove PE stuff. * lexsup.c (options): Load more PE options. (set_pe_value): New function.
1995-08-22 * ldmain.c (main): Remove PE stuff.Steve Chamberlain1-88/+152
* lexsup.c (options): Load more PE options. (set_pe_value): New function.
1995-08-17Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain8-574/+20
* emultempl/{armpe.sc, i386pe.sc}: Deleted. * emultempl/pe.sc: New file performs generic PE support and sorts archive members. * emulparams/{armpe.sh,i386pe.sh}: Use new file. * scripttempl/{armpe.sc, i386pe.sc}: Deleted * scripttempl/pe.sc: New. * Makefile.in: Use new files. b
1995-08-17 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.David Edelsohn1-0/+5
(.strings,.ctors,.dtors): Likewise.
1995-08-16 * scripttempl/armpe.sc: Always start code at 0x401000, evenSteve Chamberlain1-1/+7
1995-08-16Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>Steve Chamberlain2-1/+11
* scripttempl/armpe.sc: Always start code at 0x401000, even if -r. * ldwrite.c (strdup): New extern declaration. * ldgram.y (atype): New rule to clarify type parsing. * ldlang.c (init_os): Remove commented out code. (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits unless told not to by the link script.
1995-08-16 * ldlang.c (lang_set_startof): New static function.Ian Lance Taylor2-9/+62
(lang_process): Call it.
1995-08-16 * ldgram.y: Tweak casesymlist to avoid bison errors.Ian Lance Taylor2-2/+4