aboutsummaryrefslogtreecommitdiff
path: root/ld/ldsym.c
AgeCommit message (Collapse)AuthorFilesLines
1993-12-30Removed files that are no longer used by the rewritten linker.Ian Lance Taylor1-673/+0
1993-12-17 * ldmain.c (lprefix): Change default from a char to a stringJeff Law1-1/+1
with only one character. (lprefix_len): Set default to one. * ldmain.h (lprefix_len): Declare. * ldsym.c (write_file_locals): Use strncmp rather than a character comparison for lprefix. * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len correctly. * emultmpl/hppaosf.em: Include ldexp.h. (before_parse): Set lprefix and lprefix_len correctly.
1993-12-12More gcc lint.Ian Lance Taylor1-10/+12
1993-12-11 Made many changes to eliminate gcc warnings. Made variousIan Lance Taylor1-18/+16
cosmetic changes, declared various things in header files, removed various extern declarations from .c files. No substantive changes.
1993-10-29 * ld.h (flag_is_*): Removed macros.Ian Lance Taylor1-5/+5
* ldmain.c (enter_global_ref), ldsym.c (write_file_locals): Consistently check the BFD symbol flags directly, rather than using file_is_* macros.
1993-10-25* ldlang.c (delete_output_file_on_failure): New variable.Ken Raeburn1-1/+1
(open_output): Set it after bfd open succeeds. * ldmisc.c (vfinfo): Test it. Changes from Peter Hoogenboom, hoogen@cs.utah.edu: * ldsym.c (write_file_locals): Set the BSF_FILE flag for object symbols. * ldemul.c: Support was added to allow emulation-specific processing to occur. This support was added primarily for linker stub generation in the elf32-hppa gld. (ldemul_finish, ldemul_create_output_section_statements): New functions. * ldemul.h: Support was added to allow emulation-specific processing to occur. (As described above.) Added finish and create_output_section_statements fields to ld_emulation_xfer_struct structure. * ldlang.c: Add calls to emulation-specific routines. (lang_process): Add call to ldemul_create_output_section_statements function. (lang_process): Add call to a emulation-specific routine (and some processing after the call).
1993-09-28Lynx supportStan Shebs1-6/+6
1993-09-17 Finish up support for i386-sysv4 (without shared libraries):Ian Lance Taylor1-4/+5
* ld.h (flag_is_weak): Define. * ldlang.c (print_symbol): Mention whether symbol is weak. (print_input_section): Print weak symbols as globals. * ldmain.c (refize): Do not zero out BSF_WEAK flag. (enter_global_ref): Do not warn if a weak symbol redefines a global symbol. Do not let a weak symbol redefine a common symbol. (enter_file_symbols): Treat weak symbols as global symbols. (subfile_wanted_p): Do not pull in an object file from a archive just to resolve an undefined weak symbol. * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal error; the error might be that malloc has run out of space. * ldsym.c (write_file_locals): Treat weak symbols as global. * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets; use i386-elf. * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib. * config/i386-elf.mt: New file; set EMUL to elf_i386. * emulparams/elf_i386.sh: New file. * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0). * Makefile.in (NATIVE_LIB_DIRS): Define to be empty. (ALL_EMULATIONS): Add em_elf_i386.o. (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument. (em_elf_i386.c): New target, like other em_*.c targets. ($(LD_PROG)): Pass $(CFLAGS) to $(CC). * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If nonempty, and configured for native, add it to LIB_PATH.
1993-08-06clean up error messagesDavid MacKenzie1-5/+5
1993-07-15source cleanups; fix finding scriptsDavid MacKenzie1-7/+1
1993-06-17 * ldfile.c (ldfile_open_command): Don't try .ld extension.David MacKenzie1-14/+14
It wasn't documented (or likely used) and wastes time. (try_open): If EXTEN is empty, don't try it. * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c, ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c, ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls with normal function declarations. * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh. Move *.sc-sh to scripttempl/*.sc. * {emultempl,emulparams,scripttempl}/README: New files. * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files removed, replaced with generic.em. * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from h8[35]00hms.s[ch]. Change their contents to omit the "hms". * *.em (*_get_script): Return script name instead of script contents. * ldlang.c (lang_process): Change caller. * ldlex.l, ldgram.y: Recognize -m option. Check for input files after *all* options in grammar. * ldmain.c (main): Check for -m options. Add default directory for -m. * mkscript.c: File removed. * genscripts.sh: Take two more parameters, tooldirlib and libdir, to add to the default LIB_PATH. Look for input files in the new subdirectories. Create the scripts in emulations subdirectory and don't filter them through mkscript. * configure.in: Make the emulations subdirectory. * Makefile.in: Account for all of the above changes. Remove unused .SUFFIXES. Get libgcc.a path with gcc -print-libgcc-file-name instead of $(libdir)/libgcc.a. Put CFLAGS last in the compilation rules. Add -I../bfd to INCLUDES so sysdep.h is found. * ldfile.c (try_open): If opening without the extension fails, try with the extension even if -v or -V was given. had_script is imported (from ldgram.y), not exported.
1993-06-01 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTORPer Bothner1-2/+5
symbols, unless stripping.
1993-05-03comment formatting fixupKen Raeburn1-2/+2
1993-03-30Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain1-254/+310
* ldindr.c (add_indirect): Keep more information in the alias symbol chain. * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section attribute from an input section. * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by default. (Q_enter_file_symbos): Indirect symbols now are known by their section, not a special symbol flag. * ldsym.c (write_file_locals): Indirect symbols aren't local. (write_file_globals): Write the mapping for an indirect symbol. * relax.c (build_it): When forced to write a NEVER_LOAD section, fill it with zeros.
1993-02-25 * ldsym.c (KEEP macro): Add spaces around '=' for thePer Bothner1-1/+1
sake of old (e.g. PCC) compilers.
1993-02-09Removed garbage after #endif.Ian Lance Taylor1-1/+1
1993-01-26Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-2/+2
* ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than checking for equality to bfd_com_section.
1992-12-22 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use newPer Bothner1-1/+1
macro bfd_asymbol_bfd as appropriate. * Makefile.in: Un-duplicate ldlex.c dependency. * condigure.in: Replace my_host case table by sourcing ../bfd/configure.host. Allow std-host as the default. * ldmisc.c: Change logic for C++ name demangling: There is no initial '_' to remove from stab-derived function names.
1992-10-29 * mri.c, ldlang.c, ldlex.l, ldgram.y: add new keywordsSteve Chamberlain1-6/+7
ALIGN, ALIGNMOD, and TRUNCATE. * ldsym.c: (hash_string, search, process_keepsyms): support truncation of symbols.
1992-09-25* Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o, lexsup.o,Ken Raeburn1-3/+108
mri.o, relax.o): Indicate dependence on ldgram.h. * ld.h (strip_symbols_type): Add value STRIP_SOME. * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token. (lang_add_keepsyms_file): New function. * ldlex.l: Handle "-retain-symbols-file". * ldsym.c (keepsyms_file, kept_syms): New vars. (process_keepsyms): New functihon; reads file, marks symbols for saving. (write_file_locals): File symbols should always be kept. (ldsym_write): Warn about "-retain-symbols-file" overriding "-S" and "-s". Process retain-symbols file before setting symtab. * ldsym.h (SYM_KEEP): New flag for ldsym_type flags. (keepsyms_file, kept_syms): Declare them. * ldmain.c (main): Non-fatal errors should still cause non-zero exit status even with -r.
1992-08-21common/undef sym handling fix from p3Ken Raeburn1-14/+13
1992-05-06 changed calling convention for Q_enter_global_refSteve Chamberlain1-5/+1
* ldexp.c, ldlang.c, ldmain.c: reflect this * ldver.c: bump version to 1.97.1 * ldindr.c (add_indirect): when an edict declaring an indirect symbol is found, make sure that any ideas about the symbol being common are changed if it now known to be defined. * ldmain.c (linear_library): complain once if archive isn't ranlibbed. * ldlang.h, ldlang.c: make room for and initialize the complain once field.
1992-05-04 * ldver.c: Bumped version to 1.96 - new release, resync with theSteve Chamberlain1-108/+117
bfd too #. * ldexp.c, ldlang.c: now build memory shape tree in obstacks rather than with raw malloc, makes it easier to track where memory is going. * ldsym.h, ldsym.c: create obstack for all global symbols too. * ldwrite.c (ldwrite): moved malloc so only used when needed. * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
1992-02-02Work around for problems in linking C++ programs that need file-levelMichael Tiemann1-0/+3
initialization. Now C++ programs can be linked.
1992-01-28 * ldgram.y: map -M behave in the same way as -Map (sets file nameSteve Chamberlain1-1/+1
to be "-". * ldsym.c, ldlang.c: remember that size of a section is dependent on whether or not relaxing has been done. * ldmain.c: don't open a map file if it doesn't have a name * relax.c: all the brains have moved into bfd. * ldwrite.c: ammend comment
1992-01-24.Sanitize: added relax.cSteve Chamberlain1-24/+26
ldsym.c ldlang.* more map stuff
1992-01-24Merging from VMS port. Doc to follow..Steve Chamberlain1-22/+36
1991-11-12uses __inline for now for gccSteve Chamberlain1-2/+3
1991-11-06Call new bfd entrypoint bfd_make_section_old_waySteve Chamberlain1-34/+36
1991-11-04Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)Steve Chamberlain1-1/+1
i386 aout changes from Bob Kukura * Makefile.in, config.h: added i386aout support * configure.in: fixed /h-{myhost} typo * ldgram.y: -MM now gives more boring map. * ldlang.c: now does D_PAGED flag the right way. * ldsym.c: -MM flags does the right thing.
1991-10-16 Add or update copyright notices.Per Bothner1-18/+11
1991-10-11Include bfd.h before sysdep.h, so ansidecl and PROTO() get defined first.John Gilmore1-1/+1
1991-10-01Various lints and uses the new arch functionsSteve Chamberlain1-3/+1
1991-08-06Patches to fix bugs reported by roland McGrathSteve Chamberlain1-16/+74
1991-08-01Added new keyword 'CONSTRUCTORS'Steve Chamberlain1-1/+1
Added N_WARNING handling Added N_INDR handling
1991-06-04*** empty log message ***Steve Chamberlain1-39/+35
1991-05-18*** empty log message ***Steve Chamberlain1-31/+31
1991-04-17Moved declarations from header file into here.Steve Chamberlain1-0/+2
1991-04-15Merges from Intel.Steve Chamberlain1-11/+7
Chrisb bug fixes.
1991-04-14checkpoint before a mergeSteve Chamberlain1-26/+0
1991-03-27*** empty log message ***Steve Chamberlain1-2/+20
1991-03-22Brought up to sync with Intel again.Steve Chamberlain1-5/+2
1991-03-21Back from Intel with SteveDavid Henkel-Wallace1-2/+5
1991-03-21Initial revisionDavid Henkel-Wallace1-0/+452