The NetBSD Project

CVS log for src/libexec/ld.elf_so/Makefile

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.138.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:17 2020 UTC (9 months, 1 week ago) by martin
Branch: phil-wifi
Changes since 1.138.2.2: +1 -0 lines
Diff to previous 1.138.2.2 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:17 2020 UTC (9 months, 1 week ago) by martin
Branch: phil-wifi
Changes since 1.138.2.1: +2 -1 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored)

Merge changes from current as of 20200406

Revision 1.143 / (download) - annotate - [select for diffs], Sun Feb 9 09:11:59 2020 UTC (11 months, 1 week ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, HEAD
Changes since 1.142: +2 -1 lines
Diff to previous 1.142 (colored)

Specify NOLIBCSANITIZER for the ELF loader

The sanitizer does not work reliably before finishing initialization of
ld.elf_so. There is also a number of false positives that are not real
problems here.

Revision 1.141.2.1 / (download) - annotate - [select for diffs], Tue Nov 26 08:12:26 2019 UTC (13 months, 3 weeks ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.141: +2 -1 lines
Diff to previous 1.141 (colored) next main 1.142 (colored)

Pull up following revision(s) (requested by nakayama in ticket #469):

	lib/libc/tls/tls.c: revision 1.10
	lib/libc/tls/tls.c: revision 1.11
	lib/libc/tls/tls.c: revision 1.12
	lib/libc/tls/tls.c: revision 1.13
	libexec/ld.elf_so/tls.c: revision 1.13
	libexec/ld.elf_so/tls.c: revision 1.14
	libexec/ld.elf_so/Makefile: revision 1.142
	lib/libc/tls/Makefile.inc: revision 1.3
	usr.bin/ldd/Makefile.elf: revision 1.6

PR 54093: Align static TLS area to max_align_t.
Use alignof and not size_t for platforms with non-natural base
alignments.

Mirror the ld.elf_so logic for handling aligning the TLS size.
Most noticable, recompute the start of the TLS area for variant I
relative to the TCB. This makes a difference when the segment size and
base alignment don't agree.

Fix PR/54074 and PR/54093 completely.
More similar to the ld.elf_so logic, it is necessary to align with
p_align first.  Also, invert the #ifdef condition for consistency.

Should fix regression for static linking binaries:
http://releng.netbsd.org/b5reports/sparc/commits-2019.11.html#2019.11.10.23.39.03
http://releng.netbsd.org/b5reports/sparc64/commits-2019.11.html#2019.11.16.04.10.33

Revision 1.142 / (download) - annotate - [select for diffs], Mon Nov 4 12:45:10 2019 UTC (14 months, 2 weeks ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.141: +2 -1 lines
Diff to previous 1.141 (colored)

PR 54093: Align static TLS area to max_align_t.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:29 2019 UTC (19 months, 1 week ago) by christos
Branch: phil-wifi
Changes since 1.138: +7 -2 lines
Diff to previous 1.138 (colored)

Sync with HEAD

Revision 1.141 / (download) - annotate - [select for diffs], Wed Apr 3 21:37:58 2019 UTC (21 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.140: +5 -1 lines
Diff to previous 1.140 (colored)

Disable optimization for rtld.c on the vax with gcc-7.

Revision 1.137.4.3 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:11 2019 UTC (2 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.137.4.2: +2 -1 lines
Diff to previous 1.137.4.2 (colored) to branchpoint 1.137 (colored) next main 1.138 (colored)

Synch with HEAD

Revision 1.140 / (download) - annotate - [select for diffs], Thu Dec 27 18:58:14 2018 UTC (2 years ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118
Changes since 1.139: +2 -1 lines
Diff to previous 1.139 (colored)

initfini array support for everyone.

Revision 1.137.4.2 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:22 2018 UTC (2 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.137.4.1: +2 -2 lines
Diff to previous 1.137.4.1 (colored) to branchpoint 1.137 (colored)

Sync with head

Revision 1.139 / (download) - annotate - [select for diffs], Wed Oct 17 23:36:58 2018 UTC (2 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020
Changes since 1.138: +2 -2 lines
Diff to previous 1.138 (colored)

Move compatibility for pre-2.0 ELF binaries into separate file.
Early ELF binaries defined dlopen and friends in crt0.o by
using function pointers in the object handle passed from rtld.
This contract wastes space when many shared objects are allocated
and ties dynamic linker and rest of the system tightly together.
Fake the entry points in a static object and restrict them to the
platforms that had working ELF support at the time. Keep the magic and
version field used by modern crt0.o for all architectures. The checks
will be removed from crt0.o in a follow-up step.

Revision 1.137.4.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:35 2018 UTC (2 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.137: +2 -2 lines
Diff to previous 1.137 (colored)

Sync with HEAD

Revision 1.138 / (download) - annotate - [select for diffs], Sat Jun 9 22:41:55 2018 UTC (2 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.137: +2 -2 lines
Diff to previous 1.137 (colored)

We can't build those three with MKSANITIZER, they are used too early.

Revision 1.136.6.1 / (download) - annotate - [select for diffs], Tue Jul 4 12:47:58 2017 UTC (3 years, 6 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.136: +1 -2 lines
Diff to previous 1.136 (colored) next main 1.137 (colored)

Pull up following revision(s) (requested by joerg in ticket #64):
	libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.40
	libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.41
	libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.44
	libexec/ld.elf_so/arch/riscv/mdreloc.c: revision 1.3
	libexec/ld.elf_so/arch/aarch64/mdreloc.c: revision 1.3
	libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.60
	libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.32
	libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.61
	libexec/ld.elf_so/arch/or1k/mdreloc.c: revision 1.2
	libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.50
	libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.33
	libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.34
	libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.39
	libexec/ld.elf_so/symbol.c: revision 1.68
	libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.66
	libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.67
	libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.68
	libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.42
	libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.54
	libexec/ld.elf_so/Makefile: revision 1.137
	libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.32
	libexec/ld.elf_so/rtld.h: revision 1.127
	libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.33
	libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.38
	libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.42
	libexec/ld.elf_so/map_object.c: revision 1.58
	libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.49
Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.
The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.
Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.
Drop symbol number from default branch diagnostic, it isn't set at this
point and most likely not valid either.
Expand symnum, GCC's uninitialized used tracking is too imprecise.
Fix C&P bug. Deal with more MIPS hacks overriding def.
Add last_symnum, move up def and defobj.
Add back symnum, fix debug print.
Replace last use of r_type.
Fix indentation.
Fix indentation.

Revision 1.137 / (download) - annotate - [select for diffs], Mon Jun 19 11:57:01 2017 UTC (3 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646
Branch point for: pgoyette-compat
Changes since 1.136: +1 -2 lines
Diff to previous 1.136 (colored)

Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects.

The COMBREL logic predates thread-safety of the dynamic linker and
breaks the use of shared locks for the common symbol lookup case. It is
unlikely to provide any benefit for lazy binding or PLT lookups, so
provide equivalent functionality in the non-PLT relocation handling loop
by checking if the symbol used by the current relocation is the same as
the one used during the last lookup. No inter-object cachine is done as
it is also unlikely to be benefical.

Testing with Firefox startup on AMD64 shows a small performance gain by
the new method.

Revision 1.133.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:05 2017 UTC (4 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.133.2.1: +2 -1 lines
Diff to previous 1.133.2.1 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.136 / (download) - annotate - [select for diffs], Thu Dec 1 14:29:15 2016 UTC (4 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, netbsd-8-base, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.135: +2 -1 lines
Diff to previous 1.135 (colored)

Instead of using a function to resolve symbols that should be supplied by
the dynamic linker itself, use a version script that exposes them. From joerg@

Revision 1.133.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:48:55 2016 UTC (4 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.133: +3 -1 lines
Diff to previous 1.133 (colored)

Sync with HEAD

Revision 1.135 / (download) - annotate - [select for diffs], Fri Oct 7 19:10:03 2016 UTC (4 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104
Changes since 1.134: +2 -3 lines
Diff to previous 1.134 (colored)

revert, I'll fix libc instead.

Revision 1.134 / (download) - annotate - [select for diffs], Fri Oct 7 17:12:59 2016 UTC (4 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.133: +5 -2 lines
Diff to previous 1.133 (colored)

Mips o32 needs -lgcc for __udivdi3 in headers.c for fast_divide32_prepare().

Revision 1.133 / (download) - annotate - [select for diffs], Thu Jun 16 11:34:13 2016 UTC (4 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.132: +2 -2 lines
Diff to previous 1.132 (colored)

Move relro after we've computed out relocbase and re-enable it.
(Matthias Weckbecker)

Revision 1.132 / (download) - annotate - [select for diffs], Wed Jun 15 12:08:47 2016 UTC (4 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.131: +2 -2 lines
Diff to previous 1.131 (colored)

Turn off GNU_RELRO for now.

Revision 1.131 / (download) - annotate - [select for diffs], Tue Jun 14 13:06:41 2016 UTC (4 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.130: +2 -1 lines
Diff to previous 1.130 (colored)

Add support for GNU RELRO headers from Matthias Weckbecker.

Revision 1.130 / (download) - annotate - [select for diffs], Sat Jan 23 21:22:47 2016 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.129: +2 -2 lines
Diff to previous 1.129 (colored)

Define _KERNTYPES for things that need it.

Revision 1.129 / (download) - annotate - [select for diffs], Fri Sep 19 17:43:33 2014 UTC (6 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.128: +2 -1 lines
Diff to previous 1.128 (colored)

RISC-V support.

Revision 1.128 / (download) - annotate - [select for diffs], Wed Sep 3 19:31:32 2014 UTC (6 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.127: +2 -1 lines
Diff to previous 1.127 (colored)

OR1K support

Revision 1.114.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:22 2014 UTC (6 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.114.2.1: +11 -4 lines
Diff to previous 1.114.2.1 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.127 / (download) - annotate - [select for diffs], Sun Aug 10 05:57:31 2014 UTC (6 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: tls-maxphys-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.126: +3 -2 lines
Diff to previous 1.126 (colored)

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.

Revision 1.110.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:37:13 2014 UTC (6 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.110.2.2: +38 -13 lines
Diff to previous 1.110.2.2 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.126 / (download) - annotate - [select for diffs], Thu Mar 6 09:34:56 2014 UTC (6 years, 10 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Changes since 1.125: +4 -3 lines
Diff to previous 1.125 (colored)

Enable building ld.elf_so for powerpc
Produce a link map for ld.elf_so

Revision 1.125 / (download) - annotate - [select for diffs], Sat Nov 16 17:14:06 2013 UTC (7 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.124: +1 -8 lines
Diff to previous 1.124 (colored)

Remove hack now it's fixed in 4.8.2

Revision 1.124 / (download) - annotate - [select for diffs], Wed Nov 13 11:06:53 2013 UTC (7 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.123: +8 -1 lines
Diff to previous 1.123 (colored)

Apply hack for gcc 4.8 bug on rtld.c.

Revision 1.123 / (download) - annotate - [select for diffs], Wed Oct 9 22:33:41 2013 UTC (7 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

Use MACHINE_CPU for m68k.  Use similar logic for both tests.

Revision 1.122 / (download) - annotate - [select for diffs], Mon Aug 12 17:15:46 2013 UTC (7 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.121: +6 -2 lines
Diff to previous 1.121 (colored)

Some architectures can't create unwind tables without the frame pointer,
so don't use -fomit-frame-pointer on those.

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:30 2013 UTC (7 years, 6 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.120: +2 -1 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

sync with HEAD

Revision 1.121 / (download) - annotate - [select for diffs], Thu Jul 18 21:58:13 2013 UTC (7 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.120: +2 -1 lines
Diff to previous 1.120 (colored)

Support MACHINE_ARCH of coldfire

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:28:49 2013 UTC (7 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.114: +31 -12 lines
Diff to previous 1.114 (colored)

resync from head

Revision 1.120 / (download) - annotate - [select for diffs], Thu May 9 11:44:36 2013 UTC (7 years, 8 months ago) by skrll
Branch: MAIN
CVS Tags: riastradh-drm2-base
Branch point for: riastradh-drm2
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 (colored)

Fix debug symlink

Revision 1.119 / (download) - annotate - [select for diffs], Wed May 8 15:33:45 2013 UTC (7 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.118: +5 -1 lines
Diff to previous 1.118 (colored)

provide debug symlink.

Revision 1.118 / (download) - annotate - [select for diffs], Mon May 6 22:49:10 2013 UTC (7 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.117: +2 -2 lines
Diff to previous 1.117 (colored)

don't overwrite COPTS

Revision 1.117 / (download) - annotate - [select for diffs], Fri May 3 15:52:31 2013 UTC (7 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.116: +14 -12 lines
Diff to previous 1.116 (colored)

Consistently use LDELFSO_MACHINE_ARCH.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Apr 24 22:37:20 2013 UTC (7 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.115: +4 -1 lines
Diff to previous 1.115 (colored)

Add support for PT_ARM_EXIDX and __gnu_Unwind_Find_exidx for libgcc's support
of the ARM EHABI.

Revision 1.115 / (download) - annotate - [select for diffs], Fri Apr 5 20:16:40 2013 UTC (7 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.114: +11 -1 lines
Diff to previous 1.114 (colored)

split debug info for rtld

Revision 1.110.6.1 / (download) - annotate - [select for diffs], Tue Jan 22 21:47:27 2013 UTC (8 years ago) by matt
Branch: matt-nb6-plus
Changes since 1.110: +4 -4 lines
Diff to previous 1.110 (colored) next main 1.111 (colored)

Pullup from HEAD:
Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY).

Revision 1.110.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:59:22 2012 UTC (8 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.110.2.1: +4 -4 lines
Diff to previous 1.110.2.1 (colored) to branchpoint 1.110 (colored)

sync with head

Revision 1.114 / (download) - annotate - [select for diffs], Thu Aug 23 21:21:15 2012 UTC (8 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.113: +10 -9 lines
Diff to previous 1.113 (colored)

Revert last, it breaks the tricks xsrc uses.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Aug 23 15:45:02 2012 UTC (8 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.112: +10 -11 lines
Diff to previous 1.112 (colored)

Remove SHLIBINSTALLDIR and SHLINKINSTALLLIBDIR. Add rpath entries, if
SHLIBDIR differs from /usr/lib.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Aug 4 15:17:16 2012 UTC (8 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.111: +4 -4 lines
Diff to previous 1.111 (colored)

Don't abuse DBG, use COPTS instead.

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:36 2012 UTC (8 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.110: +2 -2 lines
Diff to previous 1.110 (colored)

sync with head

Revision 1.87.2.2 / (download) - annotate - [select for diffs], Sat Mar 17 18:28:33 2012 UTC (8 years, 10 months ago) by bouyer
Branch: netbsd-5
CVS Tags: 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
Changes since 1.87.2.1: +5 -1 lines
Diff to previous 1.87.2.1 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored)

Pull up following revision(s) via patch (requested by skrll in ticket #1724):
	rescue/list.ldd: revision 1.4
	lib/libc/dlfcn/dlfcn_elf.c: revision 1.7
	libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.57
	distrib/sets/lists/comp/mi: revision 1.1512
	share/man/man3/Makefile: revision 1.56
	libexec/ld.elf_so/arch/mips/mips_reloc.c: revision 1.58
	usr.bin/ldd/ldd.c: revision 1.15
	libexec/ld.elf_so/rtld.h: revision 1.84
	share/man/man3/dl_iterate_phdr.3: revision 1.1
	libexec/ld.elf_so/rtld.c: revision 1.129
	libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.44
	libexec/ld.elf_so/rtld.h: revision 1.89
	libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.36
	libexec/ld.elf_so/map_object.c: revision 1.41
	libexec/ld.elf_so/arch/x86_64/mdreloc.c: revision 1.37
	libexec/ld.elf_so/arch/sparc64/mdreloc.c: revision 1.46
	include/link_elf.h: revision 1.10
	libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.29
	libexec/ld.elf_so/arch/vax/mdreloc.c: revision 1.26
	libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.34
	libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.31
	libexec/ld.elf_so/arch/alpha/alpha_reloc.c: revision 1.35
	libexec/ld.elf_so/Makefile: revision 1.94
	libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.32
	libexec/ld.elf_so/Makefile: revision 1.95
	libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.31
	libexec/ld.elf_so/Makefile: revision 1.96
	libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.32
	libexec/ld.elf_so/reloc.c: revision 1.98
	libexec/ld.elf_so/arch/arm/mdreloc.c: revision 1.33
	sys/sys/exec_elf.h: revision 1.106
	libexec/ld.elf_so/rtld.c: revision 1.130
	libexec/ld.elf_so/load.c: revision 1.37
	libexec/ld.elf_so/rtld.c: revision 1.131
	libexec/ld.elf_so/load.c: revision 1.38
	libexec/ld.elf_so/rtld.h: revision 1.90
	libexec/ld.elf_so/headers.c: revision 1.36
	libexec/ld.elf_so/rtld.h: revision 1.95
	libexec/ld.elf_so/arch/i386/mdreloc.c: revision 1.30
	libexec/ld.elf_so/arch/m68k/mdreloc.c: revision 1.25
	libexec/ld.elf_so/symbol.c: revision 1.50
	libexec/ld.elf_so/symbol.c: revision 1.51
	libexec/ld.elf_so/arch/sparc/mdreloc.c: revision 1.43
	libexec/ld.elf_so/symbol.c: revision 1.52
	libexec/ld.elf_so/arch/sh3/mdreloc.c: revision 1.27
	libexec/ld.elf_so/symbol.c: revision 1.54
PR/39240: Satoshi Suetake: Don't fail when attempting to resolve weak symbols
when we are doing immediate binding, leave them alone and they will be dealt
with later during lazy binding. From skrll@
Implement negative cache checks for symbol lookups.
Uses the Donelist idea from FreeBSD.
Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
Implement dl_iterate_phdr.
Somewhat taken from FreeBSD. Manual page from OpenBSD.

Revision 1.111 / (download) - annotate - [select for diffs], Thu Mar 15 00:16:07 2012 UTC (8 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.110: +2 -2 lines
Diff to previous 1.110 (colored)

Add __diagassert13() so that if libc is compiled with _DIAGNOSTIC, it does
not end up bringing in all of stdio.
XXX: This is temporary.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Oct 7 09:15:21 2011 UTC (9 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base
Branch point for: yamt-pagecache, matt-nb6-plus
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored)

obsolete libgcc_pic and friends.  all libgcc's are supposed to be pic
for platforms with shlibs already (and are.)

this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.

Revision 1.109 / (download) - annotate - [select for diffs], Mon Jun 27 14:27:56 2011 UTC (9 years, 6 months ago) by uwe
Branch: MAIN
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

sh3 also needs libgcc_pic for millicode (cf. revision 1.107)

Revision 1.108 / (download) - annotate - [select for diffs], Sat Jun 25 05:45:12 2011 UTC (9 years, 6 months ago) by nonaka
Branch: MAIN
Changes since 1.107: +2 -2 lines
Diff to previous 1.107 (colored)

PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:18:41 2011 UTC (9 years, 7 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.106: +8 -1 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Jun 5 23:08:17 2011 UTC (9 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.106: +8 -1 lines
Diff to previous 1.106 (colored)

Add libgcc_pic for millicode.

Revision 1.106 / (download) - annotate - [select for diffs], Mon May 30 16:30:01 2011 UTC (9 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.105: +3 -2 lines
Diff to previous 1.105 (colored)

Use -Wl,-Bsymbolic directly for clang

Revision 1.105 / (download) - annotate - [select for diffs], Fri May 20 22:22:44 2011 UTC (9 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.104: +5 -1 lines
Diff to previous 1.104 (colored)

Disable use of various X86 extensions since _rtld_bind_start doesn't
save the necessary registers.

Revision 1.104 / (download) - annotate - [select for diffs], Fri May 20 22:21:32 2011 UTC (9 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.103: +2 -2 lines
Diff to previous 1.103 (colored)

Explicitly disable linking against libgcc and friends.

Revision 1.103 / (download) - annotate - [select for diffs], Wed Mar 9 23:10:07 2011 UTC (9 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.102: +3 -2 lines
Diff to previous 1.102 (colored)

Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.

Revision 1.102 / (download) - annotate - [select for diffs], Sun Jan 16 02:36:05 2011 UTC (10 years ago) by matt
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.101: +3 -1 lines
Diff to previous 1.101 (colored)

Warn about DT_TEXTRELs

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Thu Jan 6 05:20:24 2011 UTC (10 years ago) by riz
Branch: netbsd-5
Changes since 1.87: +13 -7 lines
Diff to previous 1.87 (colored)

Apply patch (requested by mrg in ticket #1499):

src/compat version 2.  this allows building any number of alternate
library / program target ABIs.  rather than duplicating the list of
subdirs and Makefiles to build, it re-traverses the necessary ones.
details:
- add support for MAKEDIRTARGETENV to share/mk
- renames LD32DIR to MLIBDIR
- fixes library builds for some subdirs (more was built than needed)
- fixes /bin & /sbin apps in compat mode
- reduces complexity in src/compat and the rest of the tree
- updates ldd netbsd32 support

Revision 1.101 / (download) - annotate - [select for diffs], Thu Dec 16 22:52:32 2010 UTC (10 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.100: +10 -2 lines
Diff to previous 1.100 (colored)

Replace use of errlist with a single concatenated version and an offset
array. This requires less storage and avoids one runtime relocation per
errno value.

Revision 1.100 / (download) - annotate - [select for diffs], Thu Dec 16 22:47:27 2010 UTC (10 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

Don't use normal environment handling functions from libc, but iterate
once over the array and clean out entries as needed.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Dec 5 00:56:06 2010 UTC (10 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.98: +2 -1 lines
Diff to previous 1.98 (colored)

Build ld.elf_so with -fvisibility=hidden. Exploit this for i386/x86_64
to simplify the assembler code.

Revision 1.98 / (download) - annotate - [select for diffs], Fri Oct 29 15:08:17 2010 UTC (10 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

PR/44010: YAMAMOTO Takashi: sbrk: grow 0xb3ba2000 failed, error = 12"
(due to setenv changes?)
Provide a mini unsetenv that does not allocate/free memory and does not
bother about locking.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Jul 6 05:59:56 2010 UTC (10 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored)

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.96 / (download) - annotate - [select for diffs], Sat Mar 20 16:36:35 2010 UTC (10 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.95: +5 -5 lines
Diff to previous 1.95 (colored)

Only apply -Wno-stack-protector where alloca is used.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Mar 19 20:53:50 2010 UTC (10 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.94: +5 -5 lines
Diff to previous 1.94 (colored)

Use the gcc directive to disable SSP warnings.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Mar 18 22:17:55 2010 UTC (10 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.93: +5 -1 lines
Diff to previous 1.93 (colored)

Use alloca(3) instead of local xmalloc for creating our DoneLists.
This allows threaded programs to use us a little better, PR lib/43005.
We need to disable SSP when using alloca.

Revision 1.87.8.1 / (download) - annotate - [select for diffs], Mon Dec 14 06:57:16 2009 UTC (11 years, 1 month ago) by mrg
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.87: +13 -7 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

merge from -current:
>rename LD32DIR to MLIBDIR.

>- adjust the logic for compat ldd: add an elf32_compat module and arrange
>  for mips64 to build this with MLIBDIR set to o32
>- make mips64 ldd call elf32_compat_ldd as well
>- make mips64 elf64 set MLIBDIR to 64
>- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
>  soon anyway)
>
>tested on amd64 and sparc64, and an earlier version tested on mips64.

>if BSD_MK_COMPAT_FILE is defined, .include it.

>simplify the logic for compat ld.elf_so and move it here.  we now can
>find the libc objdir for multiple compat ld.elf_so's, too.

Revision 1.93 / (download) - annotate - [select for diffs], Sun Dec 13 09:31:47 2009 UTC (11 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.92: +7 -6 lines
Diff to previous 1.92 (colored)

simplify the logic for compat ld.elf_so and move it here.  we now can
find the libc objdir for multiple compat ld.elf_so's, too.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Dec 13 09:01:45 2009 UTC (11 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.91: +6 -1 lines
Diff to previous 1.91 (colored)

if BSD_MK_COMPAT_FILE is defined, .include it.

Revision 1.91 / (download) - annotate - [select for diffs], Sun Dec 13 08:25:20 2009 UTC (11 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.90: +2 -2 lines
Diff to previous 1.90 (colored)

rename LD32DIR to MLIBDIR.

Revision 1.90 / (download) - annotate - [select for diffs], Wed May 20 19:38:38 2009 UTC (11 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.89: +4 -1 lines
Diff to previous 1.89 (colored)

Add a reminder about ldd depending on ld.so.

Revision 1.89 / (download) - annotate - [select for diffs], Tue May 19 20:44:52 2009 UTC (11 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

warns=4

Revision 1.87.4.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:41 2009 UTC (11 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.87: +3 -1 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.88 / (download) - annotate - [select for diffs], Mon Mar 16 02:24:56 2009 UTC (11 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.87: +3 -1 lines
Diff to previous 1.87 (colored)

Default to WARNS=4
Exceptions that need a lower level are:
	getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
	hpropd ipropd-master ipropd-slave kadmind kpasswdd

Revision 1.87 / (download) - annotate - [select for diffs], Sun Oct 26 07:11:54 2008 UTC (12 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-5-base, 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, 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-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5, matt-nb5-mips64, jym-xensuspend
Changes since 1.86: +12 -2 lines
Diff to previous 1.86 (colored)

if LD32DIR is defined:
- look in src/compat/lib/libc for libc_pic.
- define RTLD_ARCH_SUBDIR to "i386" or "sparc" for amd64 and sparc64
  builds, respectively
if RTLD_ARCH_SUBDIR is defined, add this path before
RTLD_DEFAULT_LIBRARY_PATH in the default search path.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Oct 16 14:36:20 2008 UTC (12 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-base2
Changes since 1.85: +4 -1 lines
Diff to previous 1.85 (colored)

Never build this with PIE.

Revision 1.79.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:37:11 2008 UTC (13 years ago) by matt
Branch: matt-armv6
Changes since 1.79.4.1: +5 -3 lines
Diff to previous 1.79.4.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

sync with HEAD

Revision 1.85 / (download) - annotate - [select for diffs], Wed Dec 26 21:11:52 2007 UTC (13 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, mjf-devfs2-base, mjf-devfs2, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Changes since 1.84: +4 -2 lines
Diff to previous 1.84 (colored)

No need for stack_protector.o if USE_FORT is no.
XXX: compiling a binary with -Wl,--dynamic-linker,${NETBSDSRCDIR}/libexec/...
results in stack overflow. Investigate!

Revision 1.84 / (download) - annotate - [select for diffs], Tue Nov 13 15:34:51 2007 UTC (13 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

stack_protector.c has moved.

Revision 1.79.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:12:08 2007 UTC (13 years, 2 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.79: +8 -2 lines
Diff to previous 1.79 (colored)

sync with HEAD

Revision 1.83 / (download) - annotate - [select for diffs], Tue Oct 30 17:19:59 2007 UTC (13 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.82: +5 -7 lines
Diff to previous 1.82 (colored)

Build a local copy of exit that doesn't call __cxa_finalize. It's not
needed and drags in a lot of libc via free.

Revision 1.82 / (download) - annotate - [select for diffs], Mon Oct 29 20:36:31 2007 UTC (13 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.81: +5 -2 lines
Diff to previous 1.81 (colored)

build stack protector locally so that we don't call syslog_ss that results
in 1/2 of libc dragged in.

Revision 1.81 / (download) - annotate - [select for diffs], Fri Oct 5 22:21:07 2007 UTC (13 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

- Don't use the names malloc/free/etc, since we can end up pulling in libc's
  malloc which is not what we want.
- Remove ancient memory compaction hack. Realloc on free memory is now an
  error again (from joerg@).

Ok christos@.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Sep 27 17:51:40 2007 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.79: +6 -1 lines
Diff to previous 1.79 (colored)

If we are using SSP, compile in a separate copy of the stack protector
functions so that we don't end up calling syslog_ss() which drags in
a large portion of libc. Found by skrll...

Revision 1.75.4.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:02:24 2007 UTC (13 years, 4 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.75: +1 -2 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Thu Jul 19 14:38:16 2007 UTC (13 years, 6 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-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
Changes since 1.75: +1 -2 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

Pull up following revision(s) (requested by soren in ticket #774):
	build.sh: revision 1.169
	gnu/usr.bin/gcc4/backend/Makefile: revision 1.9
	sys/arch/evbsh5/README: revision 1.1
	distrib/notes/common/contents: revision 1.124
	usr.sbin/ndbootd/ndbootd.c: revision 1.12
	gnu/lib/libopcodes/arch/sh3eb/defs.mk: revision 1.4
	gnu/lib/libbfd/arch/sh3eb/defs.mk: revision 1.8
	libexec/ld.elf_so/Makefile: revision 1.78
	gnu/dist/binutils/bfd/config.bfd: revision 1.14
	doc/HACKS: revision 1.93
	distrib/cdrom/current.conf: revision 1.8
	gnu/lib/libgcc4/Makefile.inc: revision 1.6
	share/mk/sys.mk: revision 1.90
	distrib/sets/lists/base/mi: revision 1.700
	libexec/ld.elf_so/rtld.c: revision 1.112
	distrib/sets/lists/base/mi: revision 1.702
	sys/arch/sh5/README: revision 1.1
	gnu/lib/libbfd/arch/sh3el/bfd.h: revision 1.7
	usr.sbin/traceroute/traceroute.c: revision 1.69
	distrib/notes/common/main: revision 1.330
	distrib/notes/common/list-setsizes.sh: revision 1.2
	sys/arch/Makefile: revision 1.35
	gnu/lib/libopcodes/arch/sh3el/defs.mk: revision 1.4
	gnu/lib/libbfd/arch/sh3el/defs.mk: revision 1.8
	share/mk/bsd.own.mk: revision 1.495
	gnu/lib/libbfd/arch/sh3eb/bfd.h: revision 1.7
	x11/lib/OSmesa/Makefile: revision 1.20
	sys/dev/dkwedge/dkwedge_bsdlabel.c: revision 1.13
	gnu/dist/binutils/opcodes/configure.in: revision 1.2
	gnu/dist/binutils/opcodes/configure: revision 1.2
	gnu/usr.bin/send-pr/categories: revision 1.53
	etc/mtree/NetBSD.dist: revision 1.339
	sys/arch/README: revision 1.42
	lib/libc/gdtoa/Makefile.inc: revision 1.6
	usr.bin/crunch/crunchide/Makefile: revision 1.16
	sys/lkm/net/bsdcomp/Makefile: revision 1.5
	regress/sys/uvm/Makefile: revision 1.6
	etc/MAKEDEV.awk: revision 1.18
	x11/Xserver/GL/GLcore/Makefile.GLcore: revision 1.10
	sys/contrib/dev/ath/netbsd/Makefile.ath.inc: revision 1.14
	gnu/lib/libbfd/Makefile: revision 1.42
	doc/RESPONSIBLE: revision 1.78
Remove evbsh5.

Revision 1.79 / (download) - annotate - [select for diffs], Fri May 18 21:44:08 2007 UTC (13 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored)

Support Solaris-like $ORIGIN etc. expansions in paths.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Apr 8 09:35:48 2007 UTC (13 years, 9 months ago) by scw
Branch: MAIN
Changes since 1.77: +1 -2 lines
Diff to previous 1.77 (colored)

Remove support for NetBSD/{,evb}sh5.

Revision 1.77 / (download) - annotate - [select for diffs], Thu Mar 15 17:27:15 2007 UTC (13 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.76: +8 -2 lines
Diff to previous 1.76 (colored)

Deal with MKPICLIB != no.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Feb 23 01:17:11 2007 UTC (13 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

Remove MD COMBRELOC support since it's now MI.
Enable COMBRELOC for all arches

Revision 1.75 / (download) - annotate - [select for diffs], Sun Aug 27 07:22:02 2006 UTC (14 years, 4 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.74: +5 -5 lines
Diff to previous 1.74 (colored)

Simplify multiple MACHINE_ARCH endian checks with single MACHINE_CPU
checks.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jun 29 19:30:59 2006 UTC (14 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.73: +2 -1 lines
Diff to previous 1.73 (colored)

Add (back) -Wl,-static to the link.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Feb 3 02:01:19 2006 UTC (14 years, 11 months ago) by rpaulo
Branch: MAIN
Changes since 1.72: +1 -2 lines
Diff to previous 1.72 (colored)

Remove -Wl,-non_shared (same meaing as -static).

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jun 4 16:17:17 2005 UTC (15 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jan 11 07:47:37 2005 UTC (16 years ago) by martin
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.70: +2 -2 lines
Diff to previous 1.70 (colored)

Backout -DDEBUG that I accidently commited with the last change

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jan 9 14:58:15 2005 UTC (16 years ago) by martin
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

Add LD_BIND_NOW support for sparc and remove some relocation types that
are not supposed to happen in 32bit code.
From Nick Hudson.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Fri May 28 08:31:22 2004 UTC (16 years, 7 months ago) by tron
Branch: netbsd-1-6
Changes since 1.48.2.2: +24 -23 lines
Diff to previous 1.48.2.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Apply patch (request by skrll in ticket #1702):
Bring "ld.elf_so" (mostly) in sync with NetBSD-current:
- MI and MD (e.g. under NetBSD-alpha) performance improvements
- RTLD_SELF, RTLD_NEXT, RTLD_DEFAULT support
- much better structured code
- closes PR bin/25464

Revision 1.69 / (download) - annotate - [select for diffs], Wed Mar 24 08:01:26 2004 UTC (16 years, 10 months ago) by skrll
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
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

Be more pedantic about where we use -shared, etc.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Feb 26 21:45:59 2004 UTC (16 years, 10 months ago) by enami
Branch: MAIN
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored)

Whitespace.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Feb 23 21:27:20 2004 UTC (16 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.66: +19 -19 lines
Diff to previous 1.66 (colored)

Whitespace.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Feb 22 01:39:43 2004 UTC (16 years, 11 months ago) by uwe
Branch: MAIN
Changes since 1.65: +6 -4 lines
Diff to previous 1.65 (colored)

Use CC instead of LD to link the ld.elf_so.  This will correctly link
"millicode" from libgcc_pic.a on platforms that need it.

From Nick Hudson <skrll@netbsd>.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Feb 21 15:56:03 2004 UTC (16 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

Move common LDFLAGS into Makefile from arch/*/Makefile.inc

Revision 1.64 / (download) - annotate - [select for diffs], Tue Oct 21 10:01:20 2003 UTC (17 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.63: +2 -3 lines
Diff to previous 1.63 (colored)

Rework how MAKEVERBOSE operates:

    *	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Oct 19 04:45:01 2003 UTC (17 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

rework to use the newer _MKMSGCREATE (et al) macros

Revision 1.62 / (download) - annotate - [select for diffs], Sun Oct 19 01:19:10 2003 UTC (17 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.61: +3 -1 lines
Diff to previous 1.61 (colored)

support MAKEVERBOSE

Revision 1.61 / (download) - annotate - [select for diffs], Tue Mar 25 13:11:53 2003 UTC (17 years, 10 months ago) by scw
Branch: MAIN
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)

Add support for shared libraries/dynamically linked binaries on sh5.
With the latest SuperH toolchain, NetBSD/evbsh5 can now
run with a fully dynamic userland (modulo a few remaining
gremlins affecting a couple of binaries).

Revision 1.60 / (download) - annotate - [select for diffs], Wed Feb 26 06:03:40 2003 UTC (17 years, 10 months ago) by uwe
Branch: MAIN
Changes since 1.59: +5 -6 lines
Diff to previous 1.59 (colored)

Do not add ${LIBC_PIC} to DPADD if MKPICINSTALL is "no".

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Sun Nov 17 01:12:05 2002 UTC (18 years, 2 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.48.2.1: +2 -2 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored)

Apply patch to fix previous pullup (requested by zuntum in ticket #994)

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Sat Nov 16 10:07:29 2002 UTC (18 years, 2 months ago) by he
Branch: netbsd-1-6
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

Pull up revision 1.50 (via patch, requested by thorpej in ticket #663):
  Build for ``armeb''.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Oct 5 15:52:15 2002 UTC (18 years, 3 months ago) by junyoung
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Disable DEBUG again.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Oct 5 15:04:49 2002 UTC (18 years, 3 months ago) by junyoung
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Don't call _rtld_process_mapping() with null string.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Sep 27 21:37:50 2002 UTC (18 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +5 -4 lines
Diff to previous 1.56 (colored)

Only use the MKDYNAMICROOT semantics (i.e. -rpath=/lib,/usr/lib and
-dynamic-linker=/libexec/ld.elf_so) if the BINDIR of the program being
built is /bin or /sbin.

The reason we do this is because now all programs *except* those in
/bin and /sbin (i.e. the "special cases") match the default the compiler
uses, which is what is used for things in e.g. xsrc, pkgsrc, and other
random 3rd party programs.

This is done by decoupling where a shlib is installed from how it
is located.  Two new variables, SHLIBINSTALLDIR and SHLINKINSTALLDIR,
contain the former information, and key off MKDYNAMICROOT only.  SHLIBDIR
and SHLINKDIR contain the latter, and key off MKDYNAMICROOT and BINDIR.

The SHLIBINSTALLDIR, SHLIBDIR, _LIBSODIR, SHLINKINSTALLDIR, and
SHLINKDIR parameters are moved to a new <bsd.shlib.mk>; see bsd.README
for usage details.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Sep 26 14:30:47 2002 UTC (18 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.55: +2 -5 lines
Diff to previous 1.55 (colored)

*poof*
-fomit-frame-pointer works on 68k.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Sep 26 13:56:01 2002 UTC (18 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.54: +5 -2 lines
Diff to previous 1.54 (colored)

-vomit-frame-pointer is buggy on 68k.  *sigh*

Revision 1.54 / (download) - annotate - [select for diffs], Thu Sep 26 12:59:29 2002 UTC (18 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

By default, compile without DEBUG, and with -fomit-frame-pointer.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Sep 13 18:28:58 2002 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Turn DEBUG back on by default.  It doesn't take much space.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Aug 31 18:18:14 2002 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored)

Turn off DEBUG by default, and compile with -O3.  (Tested on Alpha, ARM,
x86 and PowerPC.)

Revision 1.51 / (download) - annotate - [select for diffs], Mon Aug 19 13:54:36 2002 UTC (18 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Use  ${NETBSDSRCDIR}/some/path  instead of  ${.CURDIR}/../../some/path

Revision 1.50 / (download) - annotate - [select for diffs], Sat Aug 10 01:59:33 2002 UTC (18 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Build for "armeb".

Revision 1.49 / (download) - annotate - [select for diffs], Wed Jul 10 15:12:33 2002 UTC (18 years, 6 months ago) by fredette
Branch: MAIN
Changes since 1.48: +2 -1 lines
Diff to previous 1.48 (colored)

Add support for dynamic linking on HP PA-RISC.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Mar 1 20:15:16 2002 UTC (18 years, 10 months ago) by tv
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Branch point for: netbsd-1-6
Changes since 1.47: +6 -2 lines
Diff to previous 1.47 (colored)

Don't bomb if the ${DPADD} files are missing -- we want at least one of
them, where the other may not exist, and the linker will fail for us if
both don't exist.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Feb 4 00:25:30 2002 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

Use ${MACHINE_CPU} to assign ARCHSUBDIR.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Feb 3 23:34:42 2002 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +3 -2 lines
Diff to previous 1.45 (colored)

Add support for dynamic linking on the SuperH.  From Marcus Comstedt,
with some bug fixes (namely, don't forget to consider the addend when
processing relocations) from me.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jan 23 15:10:24 2002 UTC (19 years ago) by skrll
Branch: MAIN
Changes since 1.44: +7 -3 lines
Diff to previous 1.44 (colored)

Install the man page on a.out systems as well so that the man set is the
same for all.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jan 4 19:08:04 2002 UTC (19 years ago) by tv
Branch: MAIN
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored)

Revert rev. 1.30 (partly).  If MKPICINSTALL=no in mk.conf, libc_pic.a will
NOT be installed by the time we build here.

However, allow the link to look in both src/lib/libc and $DESTDIR/usr/lib.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Dec 28 05:44:22 2001 UTC (19 years ago) by lukem
Branch: MAIN
Changes since 1.42: +5 -1 lines
Diff to previous 1.42 (colored)

- Allow RTLD_DEFAULT_LIBRARY_PATH to be overridden.
- If ${SHLIBDIR} != ${LIBDIR}, then set RTLD_DEFAULT_LIBRARY_PATH to
  ${SHLIBDIR}:${LIBDIR}

Revision 1.42 / (download) - annotate - [select for diffs], Fri Dec 28 05:30:24 2001 UTC (19 years ago) by lukem
Branch: MAIN
Changes since 1.41: +5 -1 lines
Diff to previous 1.41 (colored)

if SHLINKDIR != /usr/libexec, install compat symlink

Revision 1.41 / (download) - annotate - [select for diffs], Fri Dec 28 01:32:40 2001 UTC (19 years ago) by lukem
Branch: MAIN
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored)

* Add user-controlled mk.conf variables
	- SHLIBDIR	Location to install shared libraries if ${USE_SHLIBDIR}
			is "yes".  Defaults to "/usr/lib".

	- USE_SHLIBDIR	If "yes", install shared libraries in ${SHLIBDIR}
			instead of ${LIBDIR}.  Defaults to "no".
			Sets ${_LIBSODIR} to the appropriate value.
			This may be set by individual Makefiles as well.

	- SHLINKDIR	Location of shared linker.  Defaults to "/usr/libexec".
			If != "/usr/libexec", change the dynamic-linker
			encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
	libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
	libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
  to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

  1.)	If nothing is set or changed, there is no change from the
	current behaviour:
		- Static /bin, /sbin, and bits of /usr/*
		- Dynamic rest
		- Shared linker is /usr/libexec/ld*so

  2.)	If the following make variables are set:
		LDSTATIC=
		SHLINKDIR=/lib
		SHLIBDIR=/lib
	Then the behaviour becomes:
		- Dynamic tools
		- .so libraries used by /bin and /sbin are installed to /lib,
		  with symlinks from /usr/lib/lib*so to -> /lib/lib*so
		  where appropriate
		- Shared linker is /lib/ld*so

  3.)	As per 2.), but add the following variable:
		USE_SHLIBDIR=yes
	This forces all .so's to be instaleld in /lib (with compat
	symlinks), not just those tagged by their Makefiles to be.
	Again, compat symlinks are installed

Revision 1.40 / (download) - annotate - [select for diffs], Fri Dec 14 22:21:45 2001 UTC (19 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored)

Don't put compiler options into CPPFLAGS.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Oct 31 18:26:23 2001 UTC (19 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.38: +1 -3 lines
Diff to previous 1.38 (colored)

Add a man page for ld.elf_so.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jul 15 03:09:22 2001 UTC (19 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored)

Enable arm if OBJECT_FMT is ELF.  Initialize first few GOT entries for ARM.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jun 19 01:11:03 2001 UTC (19 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)

Preliminary x86-64 support. Not fully functional yet (toolchain bugs).

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jan 14 09:39:26 2001 UTC (20 years ago) by christos
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

back out previous commit; I found a better way of handling the missing
dependencies.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jan 14 09:16:47 2001 UTC (20 years ago) by christos
Branch: MAIN
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 (colored)

Don't use ${OBJS} in the dependency line, cause it is not defined yet.
Also add a .NOTMAIN for good measure.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Nov 10 21:31:30 2000 UTC (20 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

When dlopen()ing with RTLD_GLOBAL, also make dependent libraries RTLD_GLOBAL.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jul 14 22:01:09 2000 UTC (20 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored)

Split DEBUG into two lines to make it easier to enable each separately.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jul 3 03:30:52 2000 UTC (20 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

If OBJECT_FMT is ELF and MACHINE_ARCH = vax, build ld.elf_so

Revision 1.31 / (download) - annotate - [select for diffs], Sun Mar 26 21:55:55 2000 UTC (20 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: 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
Changes since 1.30: +2 -5 lines
Diff to previous 1.30 (colored)

Don't try to get libc_pic from the libc compile directory.  If we're doing a
build, libc has already been installed.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jul 5 17:55:34 1999 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

Protect certain definitions from view by crt0, by wrapping them in
#ifdef _RTLD_SOURCE.

Should fix the "variable page size" build error of crt0 on the SPARC.

Revision 1.29 / (download) - annotate - [select for diffs], Fri May 7 22:04:27 1999 UTC (21 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +12 -12 lines
Diff to previous 1.28 (colored)

Don't even make depend if we're not going to build ld.elf_so.  this is
especially important if the assembler syntax is different.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Apr 29 15:31:05 1999 UTC (21 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.27: +8 -6 lines
Diff to previous 1.27 (colored)

Always use ${MACHINE_ARCH} rather than ${MACHINE}, and reorder architectures
a bit.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Apr 29 15:06:41 1999 UTC (21 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored)

Add m68k code.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Mar 19 22:06:37 1999 UTC (21 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.25: +1 -7 lines
Diff to previous 1.25 (colored)

Move the link.h files for the different shlib formats via repository copy,
and rename them to match the executable format.  Introduce a new link.h
file which automatically picks the correct header based on the target of
the toolchain.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Mar 5 11:57:54 1999 UTC (21 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

make the mipse[lb]->mips translation really work,
thanks Izumi Tsutsui

Revision 1.24 / (download) - annotate - [select for diffs], Wed Mar 3 21:18:00 1999 UTC (21 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.23: +1 -2 lines
Diff to previous 1.23 (colored)

Make this compile without -DRTLD_LOADER and fix printf format problems on
the alpha.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 3 12:00:19 1999 UTC (21 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.22: +8 -5 lines
Diff to previous 1.22 (colored)

Makefile ${MACHINE_ARCH} changes for  mips{eb,el}, as suggested by
Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>

Revision 1.22 / (download) - annotate - [select for diffs], Wed Feb 24 18:31:00 1999 UTC (21 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored)

Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Feb 21 18:10:24 1999 UTC (21 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.20: +3 -11 lines
Diff to previous 1.20 (colored)

Replace home-grown header file installation with INCS/INCSDIR; from Erik
Bertelsen in PR bin/6869.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Feb 13 02:54:30 1999 UTC (21 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Feb 7 17:23:03 1999 UTC (21 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Add -DRTLD_DEBUG_RELOC commented out.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jan 10 18:18:56 1999 UTC (22 years ago) by christos
Branch: MAIN
Changes since 1.17: +6 -5 lines
Diff to previous 1.17 (colored)

Add i386 bits

Revision 1.17 / (download) - annotate - [select for diffs], Tue Nov 24 11:34:30 1998 UTC (22 years, 2 months ago) by tsubai
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Add powerpc support.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Sep 13 03:50:32 1998 UTC (22 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

remove MD asm as(1) comments from sysident.h, placing them in a comment
above the asm() block.  now we can share sysident.h across all ports..
change ld.elf_so to be for $MACHINE == sparc64 not sparc (yet!).

Revision 1.15 / (download) - annotate - [select for diffs], Thu Aug 27 01:55:16 1998 UTC (22 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored)

Use -L for libc's objdir in case NOPICINSTALL is set in mk.conf.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Aug 13 18:16:43 1998 UTC (22 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)

Don't install the ELF link.h in a.out systems!@#$#@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Aug 4 17:02:16 1998 UTC (22 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored)

Use NOPIC to mean "no shared libraries", not NOSHLIB.

Revision 1.7.2.4 / (download) - annotate - [select for diffs], Fri May 8 17:39:12 1998 UTC (22 years, 8 months ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002
Changes since 1.7.2.3: +2 -5 lines
Diff to previous 1.7.2.3 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Sync with trunk, per request of mycroft.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Mar 25 04:13:01 1998 UTC (22 years, 10 months ago) by mhitch
Branch: MAIN
Changes since 1.11: +2 -3 lines
Diff to previous 1.11 (colored)

Add support for mips.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 23 10:09:32 1998 UTC (22 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored)

More table-driven changes for different toolchains:
  * new bsd.own.mk variable OBJECT_FMT with values "a.out" or "ELF".
  * use OBJECT_FMT in Makefile tests that depend on toolchain.
  * Add new bsd.own.mk variable NOSHLIB that, if set indicates a given
    port doesnt yet do shared libraries. Set on powerpc.
  * Document new feature-test variables in src/share/mk/bsd.README.
Tested on i386, mips, fakedup Alpha environment.

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Sat Nov 8 07:25:48 1997 UTC (23 years, 2 months ago) by lukem
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.7.2.2: +5 -5 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored)

sync with trunk (approved by thorpej)

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Mon Oct 27 19:54:06 1997 UTC (23 years, 3 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.7.2.1: +2 -2 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Pull rev 1.10 up from trunk (cjs)

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Sat Oct 25 06:20:35 1997 UTC (23 years, 3 months ago) by cjs
Branch: cjs-build-against-obj-dir
Changes since 1.5.2.2: +2 -2 lines
Diff to previous 1.5.2.2 (colored) next main 1.6 (colored)

Update to 1.10.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Oct 25 06:18:27 1997 UTC (23 years, 3 months ago) by cjs
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Link with the stuff we compiled, rather that whatever random stuff happens
to be installed on the system we're compiling on.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Thu Oct 23 20:17:27 1997 UTC (23 years, 3 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (colored)

Pull rev 1.9 up from trunk

Revision 1.9 / (download) - annotate - [select for diffs], Thu Oct 23 19:27:28 1997 UTC (23 years, 3 months ago) by jonathan
Branch: MAIN
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)

Install our  ELF-aware link.h into /usr/include on mips hosts.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Oct 22 05:45:08 1997 UTC (23 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)

use CPPFLAGS instead of CFLAGS

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sun Aug 3 20:32:16 1997 UTC (23 years, 5 months ago) by cjs
Branch: cjs-build-against-obj-dir
Changes since 1.5.2.1: +3 -1 lines
Diff to previous 1.5.2.1 (colored)

The include of bsd.own.mk was accidently deleted; put it back in.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Fri Aug 1 21:17:48 1997 UTC (23 years, 5 months ago) by cjs
Branch: cjs-build-against-obj-dir
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored)

update to 1.7

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 23 05:15:45 1997 UTC (23 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.6: +5 -2 lines
Diff to previous 1.6 (colored)

move man pages into share/man.

Revision 1.6 / (download) - annotate - [select for diffs], Sat May 31 21:21:54 1997 UTC (23 years, 7 months ago) by cjs
Branch: MAIN
Changes since 1.5: +0 -15 lines
Diff to previous 1.5 (colored)

Back out BUILDDIR and NOINSTALL changes.

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 26 03:57:44 1997 UTC (23 years, 8 months ago) by cjs
Branch: MAIN
Branch point for: cjs-build-against-obj-dir
Changes since 1.4: +16 -1 lines
Diff to previous 1.4 (colored)

These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 17 22:17:27 1997 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

STRIP -> STRIPFLAG (sign, I guess I forgot to check this one in last night)

Revision 1.3 / (download) - annotate - [select for diffs], Thu Apr 10 17:39:20 1997 UTC (23 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

pull in arch-specific Makefile.inc only if it exists

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 24 22:18:33 1997 UTC (23 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

- Makefile cleanups

Revision 1.1 / (download) - annotate - [select for diffs], Mon Dec 16 20:37:55 1996 UTC (24 years, 1 month ago) by cgd
Branch: MAIN

First cut at an ELF shared loader.  Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.).  This runs, but it's
in serious need of cleaning and/or a fair bit of reworking.  See the README
file for more information, and a list of things to do.

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>