summaryrefslogtreecommitdiff
path: root/ld/ldsym.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed files that are no longer used by the rewritten linker.Ian Lance Taylor1993-12-301-673/+0
|
* * ldmain.c (lprefix): Change default from a char to a stringJeff Law1993-12-171-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.
* More gcc lint.Ian Lance Taylor1993-12-121-10/+12
|
* Made many changes to eliminate gcc warnings. Made variousIan Lance Taylor1993-12-111-18/+16
| | | | | | cosmetic changes, declared various things in header files, removed various extern declarations from .c files. No substantive changes.
* * ld.h (flag_is_*): Removed macros.Ian Lance Taylor1993-10-291-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.
* * ldlang.c (delete_output_file_on_failure): New variable.Ken Raeburn1993-10-251-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).
* Lynx supportStan Shebs1993-09-281-6/+6
|
* Finish up support for i386-sysv4 (without shared libraries):Ian Lance Taylor1993-09-171-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.
* clean up error messagesDavid MacKenzie1993-08-061-5/+5
|
* source cleanups; fix finding scriptsDavid MacKenzie1993-07-151-7/+1
|
* * ldfile.c (ldfile_open_command): Don't try .ld extension.David MacKenzie1993-06-171-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.
* * ldsym.c (write_file_locals): Write BSF_CONSTRUCTORPer Bothner1993-06-011-2/+5
| | | | symbols, unless stripping.
* comment formatting fixupKen Raeburn1993-05-031-2/+2
|
* Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain1993-03-301-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.
* * ldsym.c (KEEP macro): Add spaces around '=' for thePer Bothner1993-02-251-1/+1
| | | | sake of old (e.g. PCC) compilers.
* Removed garbage after #endif.Ian Lance Taylor1993-02-091-1/+1
|
* Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1993-01-261-2/+2
| | | | | * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than checking for equality to bfd_com_section.
* * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use newPer Bothner1992-12-221-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.
* * mri.c, ldlang.c, ldlex.l, ldgram.y: add new keywordsSteve Chamberlain1992-10-291-6/+7
| | | | | | ALIGN, ALIGNMOD, and TRUNCATE. * ldsym.c: (hash_string, search, process_keepsyms): support truncation of symbols.
* * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o, lexsup.o,Ken Raeburn1992-09-251-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.
* common/undef sym handling fix from p3Ken Raeburn1992-08-211-14/+13
|
* changed calling convention for Q_enter_global_refSteve Chamberlain1992-05-061-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.
* * ldver.c: Bumped version to 1.96 - new release, resync with theSteve Chamberlain1992-05-041-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.
* Work around for problems in linking C++ programs that need file-levelMichael Tiemann1992-02-021-0/+3
| | | | initialization. Now C++ programs can be linked.
* * ldgram.y: map -M behave in the same way as -Map (sets file nameSteve Chamberlain1992-01-281-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
* .Sanitize: added relax.cSteve Chamberlain1992-01-241-24/+26
| | | | ldsym.c ldlang.* more map stuff
* Merging from VMS port. Doc to follow..Steve Chamberlain1992-01-241-22/+36
|
* uses __inline for now for gccSteve Chamberlain1991-11-121-2/+3
|
* Call new bfd entrypoint bfd_make_section_old_waySteve Chamberlain1991-11-061-34/+36
|
* Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)Steve Chamberlain1991-11-041-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.
* Add or update copyright notices.Per Bothner1991-10-161-18/+11
|
* Include bfd.h before sysdep.h, so ansidecl and PROTO() get defined first.John Gilmore1991-10-111-1/+1
|
* Various lints and uses the new arch functionsSteve Chamberlain1991-10-011-3/+1
|
* Patches to fix bugs reported by roland McGrathSteve Chamberlain1991-08-061-16/+74
|
* Added new keyword 'CONSTRUCTORS'Steve Chamberlain1991-08-011-1/+1
| | | | | Added N_WARNING handling Added N_INDR handling
* *** empty log message ***Steve Chamberlain1991-06-041-39/+35
|
* *** empty log message ***Steve Chamberlain1991-05-181-31/+31
|
* Moved declarations from header file into here.Steve Chamberlain1991-04-171-0/+2
|
* Merges from Intel.Steve Chamberlain1991-04-151-11/+7
| | | | Chrisb bug fixes.
* checkpoint before a mergeSteve Chamberlain1991-04-141-26/+0
|
* *** empty log message ***Steve Chamberlain1991-03-271-2/+20
|
* Brought up to sync with Intel again.Steve Chamberlain1991-03-221-5/+2
|
* Back from Intel with SteveDavid Henkel-Wallace1991-03-211-2/+5
|
* Initial revisionDavid Henkel-Wallace1991-03-211-0/+452