The NetBSD Project

CVS log for src/libexec/ld.aout_so/Attic/shlib.c

[BACK] Up to [cvs.NetBSD.org] / src / libexec / ld.aout_so

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24, Tue Jul 6 05:59:54 2010 UTC (10 years, 6 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver, HEAD
Changes since 1.23: +1 -1 lines
FILE REMOVED

remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h

Revision 1.23 / (download) - annotate - [select for diffs], Sun Aug 16 18:01:49 2009 UTC (11 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

Add <sys/exec_aout.h> includes

Revision 1.21.16.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:44 2008 UTC (12 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.21: +1 -8 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync with head.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:03 2008 UTC (12 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase
Changes since 1.21: +1 -8 lines
Diff to previous 1.21 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.21 / (download) - annotate - [select for diffs], Thu Nov 9 19:45:57 2006 UTC (14 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.20: +11 -5 lines
Diff to previous 1.20 (colored)

eliminate alloca for ssp.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jun 26 20:47:08 2005 UTC (15 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

sprinkle little const.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Oct 28 20:18:48 2004 UTC (16 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Another (unsigned char) cast - for ldconfig

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Sun Apr 1 15:49:24 2001 UTC (19 years, 9 months ago) by he
Branch: netbsd-1-4
Changes since 1.16.2.1: +2 -2 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Pull up revsion 1.17 (via patch, requested by itohy):
  Several changes to consolidate with main trunk:
   o Use <link_aout.h> for the benefit of cross compiling.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Thu Jun 1 17:46:23 2000 UTC (20 years, 7 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.16: +34 -7 lines
Diff to previous 1.16 (colored)

Pull up revision 1.18 (via patch, requested by matt):
  Enable searching for libraries under /emul/aout, and make sure
  that ELF libraries are not erroneously accepted.

Revision 1.18 / (download) - annotate - [select for diffs], Sat May 27 06:53:30 2000 UTC (20 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, fvdl_fs64_base
Changes since 1.17: +34 -7 lines
Diff to previous 1.17 (colored)

Changes to put the COMPAT_AOUT code into ld.aout_so.  Search <dir> for <lib>
then search /emul/aout/<dir> for <lib>.  To make sure we don't get false
postives on ELF libraries we make the .so is a ZMAGIC dynamic library.

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:30:14 1999 UTC (21 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Pull up to last week's -current.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Nov 29 08:27:07 1999 UTC (21 years, 2 months ago) by itohy
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Use <link_aout.h> instead of <link.h>
for the benefit of building a.out (cross) ld on ELF platforms.
Suggested by Minoura Makoto.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 15 23:16:14 1998 UTC (22 years, 1 month ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, netbsd-1-4
Changes since 1.15: +64 -4 lines
Diff to previous 1.15 (colored)

Export the common shared library search functions in its own header file.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Sep 15 12:38:55 1998 UTC (22 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.14: +12 -10 lines
Diff to previous 1.14 (colored)

Prevent spurious matches matches against unwanted major versions.
Patch based on PR#6139.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Sep 5 13:08:40 1998 UTC (22 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.13: +22 -16 lines
Diff to previous 1.13 (colored)

Assign my copyrights to TNF.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Apr 4 01:00:29 1998 UTC (22 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.12: +6 -4 lines
Diff to previous 1.12 (colored)

If a good matching shared library is found, don't look in the next
directories. This is compatible with the SunOS behaviour. Also,
it fixes a problem where it was not possible for some 3rd party
package to have a library with the same name as a library already
in the system, and a lower version number. The highest version
would always be picked. This particular problem shows up with Mozilla,
which has a libutil.so.1.0

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 5 22:00:53 1998 UTC (23 years ago) by cgd
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

RCS Id police

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jun 4 21:56:30 1995 UTC (25 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.10: +55 -18 lines
Diff to previous 1.10 (colored)

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.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 10 15:16:15 1994 UTC (26 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.9: +29 -18 lines
Diff to previous 1.9 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jan 29 02:03:15 1994 UTC (27 years ago) by jtc
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Fix spelling error in Copyright notice

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 28 20:56:36 1994 UTC (27 years ago) by pk
Branch: MAIN
Changes since 1.7: +36 -2 lines
Diff to previous 1.7 (colored)

Use `.type' directives generated by gcc.
Numerous internal changes & bug fixes.
NOTE: must re-compile & re-link shared libraries before used to link programs.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Dec 8 10:14:04 1993 UTC (27 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.6: +31 -2 lines
Diff to previous 1.6 (colored)

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'.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 7 03:04:28 1993 UTC (27 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

#include ctype.h, since we use isdigit().

Revision 1.5 / (download) - annotate - [select for diffs], Sun Nov 21 21:01:08 1993 UTC (27 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Add /usr/X386/lib to the standard list of library paths.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 8 13:21:23 1993 UTC (27 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.3: +4 -3 lines
Diff to previous 1.3 (colored)

Use strsep() in stead of strtok() and restore colons in eg. env. vars.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 23 00:34:26 1993 UTC (27 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.2: +8 -9 lines
Diff to previous 1.2 (colored)

Changed prototype and internals of std_search_dir().

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 21 00:53:00 1993 UTC (27 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.1: +33 -10 lines
Diff to previous 1.1 (colored)

No rounding of bss size to page boundary in ZMAGIC a.out's, the kernel
chokes on it.
Some other minor changes.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Oct 16 21:52:35 1993 UTC (27 years, 3 months ago) by pk
Branch: MAIN

A linker supporting shared libraries.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>