Commit Graph

26 Commits

Author SHA1 Message Date
pk 7e47c7f32b Add & correct prototypes. 1998-12-15 21:27:08 +00:00
kristerw a2030d670f Revert last change, since it treats external SIZE symbols as
weak undefined symbols. The problem it tried to solve is
actually a bug in non bfd gas.new.

Fixes PR port-i386/6351 from Bernd Ernesti.
1998-10-24 21:07:15 +00:00
matt 6ee7d63576 It seems that gas.new has new types to indicate weakness
of symbols.  Adapt our ld to it.
1998-10-21 06:13:08 +00:00
matt 4f1a79cfbd Back out change to md_make_gotreloc which added 4 arguement of got_t *.
Add argument to md_fix_jmpslot indicating whether this the first (i.e
tranfer) jmpslot or not.  Add better support for VAX (the VAX can support
pure text code; let ld that advantage of it).  Checking in verified and
working versions of rtld VAX support routines.
1998-10-19 03:09:31 +00:00
matt 81c6c6b8c6 Fix core dump when plt_symbol didn't exist when needed with dynamic images. 1998-08-28 14:45:46 +00:00
matt 4da3f7cfd8 Add external symbol for __PROCEDURE_LINKAGE_TABLE_. Modify arguments
to md_make_gotreloc for VAX'es sake.
1998-08-26 14:37:40 +00:00
cgd 10cc9f3b70 RCS Id police 1998-01-05 22:00:34 +00:00
pk 05105a9150 Define RELOC_INIT_SEGMENT_RELOC for the ns32k (Matthias Pfaller; PR#2103). 1996-02-22 00:19:57 +00:00
pk d579c1b1db Handle object code with the "large" model PIC (eg. gcc's `-fPIC' option). 1995-08-04 21:49:00 +00:00
pk ad760ce3d6 Implement compiled-in library search paths: any `-L' argument encountered
while `dynamic link-mode' is on, is recorded in the executable. The
run-time linker will search these paths after $LD_LIBRARY_PATH but
before the default set and those currently in the hints file.
The feature is disabled whenever for set[ug]id programs.
1995-06-04 21:56:22 +00:00
pk 8e0a22a5fb "weak symbol" support (fudged into `a.out' by means of the n_other field).
Weak symbols are to replace indirect (type N_INDR) symbols and will help
to clean up name spaces in libraries.

Also, some misc. bug fixes, including PR 586, and use stdio for the output
file entirely.
1994-12-23 20:32:51 +00:00
pk 7df5d3ecf2 Another md macro to initialize a home-made struct reloc needed
for N_SET* type relocations in shared objects.
1994-11-30 18:24:56 +00:00
pk 66c04ea8cb Rename some flags. 1994-08-21 15:17:00 +00:00
pk 2b43180d6d Propagate N_WARNING symbols to `-r' output. 1994-07-21 14:59:01 +00:00
pk 1d1aa8ff38 Some refinement in resolving symbols from shared objects. 1994-06-29 11:18:45 +00:00
pk a6bf4f8176 Conversion to err()/warn() for error reports.
Minor bug fixes:
	a case of free()ing in the wrong order. (from Rick Murphey).
	processing alias symbol twice (sometimes).
Some miscellaneous cleanup.
1994-06-10 15:16:04 +00:00
pk 72b85788e5 function parse() has moved to ld.c, thus avoiding scanf() code to be
included in ld.so.
1994-04-22 07:57:54 +00:00
pk 12f28a9ba6 PC relative segment relocations don't need to be looked at at run-time (such
relocations occur on the ns32k).
Dump <strings.h> from header files.
1994-04-07 19:41:17 +00:00
pk 90cfba21cb Use `.type' directives generated by gcc.
Numerous internal changes & bug fixes.
NOTE: must re-compile & re-link shared libraries before used to link programs.
1994-01-28 20:56:09 +00:00
pk fa099af1f6 Many internal changes, most notably in the symbol counting stuff.
`ld -r -x'  now supported on all object files.
Support for long archive member names (AR_EFMT1 format),
	thanks to Bill Sommerfeld/Mark Eichin
Do the right(?) thing with symbol aliases (N_INDR) for POSIX lover, especially
when equiping shared libraries with these (this was *not* fun).
Handle silly archives (.sa) for people who needs them; turn on by `-Bsilly'.
1993-12-08 10:13:47 +00:00
mycroft e977e5242b Prototype concat() more strongly, and remove bogus definitions of variables
in system .h files.
1993-12-07 01:44:23 +00:00
pk e5b3eedefb Eleminate duplicate inclusion of shared objects (libgcc!).
Start using auxiliary information (using `n_other') to tackle aliasing of
function addresses and direct function calls in shared objects.
NOTE: currently protected by `#ifdef EXPERIMENTAL'.
1993-11-10 21:53:30 +00:00
pk 94aab0b5fc The N_SET* symbols are back in. C++ object files can now be linked again.
(not yet fit for *shared* C++ libraries).
1993-11-01 16:26:13 +00:00
pk 4aa8c26f37 Improved handling of PIC code in "main stream" .o files.
Don't touch __DYNAMIC when `-r' is on.
Now must use `-Bshareable' to make shared libraries.
1993-10-27 00:53:39 +00:00
pk a0aae738e7 Changed prototype and internals of std_search_dir(). 1993-10-23 00:34:22 +00:00
pk 97ca10e374 A linker supporting shared libraries. 1993-10-16 21:52:27 +00:00