OpenBSD CVS

CVS log for src/libexec/ld.so/Attic/dl_prebind.c


[BACK] Up to [local] / src / libexec / ld.so

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19, Mon Jul 4 21:15:06 2016 UTC (7 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +1 -1 lines
FILE REMOVED

Remove prebind support: binding to symbol table indices is too fragile
for our development process.

ok kettenis@ deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Oct 14 17:29:44 2015 UTC (8 years, 7 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.17: +7 -1 lines
Diff to previous 1.17 (colored)

Check mmap and read return values. While at it, remove unused duplicated file.

ok millert@

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 16 16:18:07 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.16: +1 -2 lines
Diff to previous 1.16 (colored)

<sys/param.h> to <limits.h> conversion.  Verified binaries
ok millert, thanks to doug for process advice

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jul 10 09:03:01 2014 UTC (9 years, 11 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored)

check all memory allocations; ok miod@ guenther@

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jul 6 17:33:10 2014 UTC (9 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

enable -Wall, explicitly call _dl_strsep, and zap some redundant includes
ok miod@

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jun 21 08:00:22 2014 UTC (9 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

Move to a non-zeroing _dl_malloc, a _dl_calloc and _dl_reallocarry and
fix _dl_strdup to return NULL instead of crash; ok deraadt@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 13 05:41:41 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.12: +25 -17 lines
Diff to previous 1.12 (colored)

prototype & void * math cleanup
ok guenther

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jun 4 00:59:00 2013 UTC (11 years ago) by brad
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.11: +13 -10 lines
Diff to previous 1.11 (colored)

Fix a bunch of "variable 'foo' set but not used." warnings emitted by newer GCC.

ok matthew@ kurt@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 16 23:16:19 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.10: +6 -2 lines
Diff to previous 1.10 (colored)

an acceptable time_t truncation (binding cannot take that long)
ok matthew

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 27 19:04:26 2010 UTC (13 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

repair ;;

Revision 1.9 / (download) - annotate - [select for diffs], Wed Apr 9 21:45:26 2008 UTC (16 years, 2 months ago) by kurt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

Improve support for shared libs linked at non-zero addreses:
- rename private values in struct elf_object to better
  describe their meaning:
    s/load_offs/obj_base/ "object's address '0' base"
    s/load_addr/load_base/ "The base address of the loadable
    segments"
- gdb needs the obj_base value so swap positions with load_base in
  struct elf_object
- fix a few occurrences of where load_base was used instead of
  obj_base.

With help and okay drahn@

Revision 1.8 / (download) - annotate - [select for diffs], Fri May 12 22:14:04 2006 UTC (18 years, 1 month ago) by drahn
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.7: +9 -9 lines
Diff to previous 1.7 (colored)

Commit the rest of the api change that started in prebind.

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 10 03:26:50 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.6: +67 -88 lines
Diff to previous 1.6 (colored)

pretty this up; ok drahn

Revision 1.6 / (download) - annotate - [select for diffs], Mon May 8 20:37:01 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

more spacing

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 8 20:34:36 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.4: +7 -7 lines
Diff to previous 1.4 (colored)

de-space

Revision 1.4 / (download) - annotate - [select for diffs], Fri May 5 14:34:27 2006 UTC (18 years, 1 month ago) by drahn
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

Prebind should not force lazy binding to be turned off during dlopen()
the presense of LD_BIND_NOW should control that. Fixes the X server.

Revision 1.3 / (download) - annotate - [select for diffs], Fri May 5 04:45:02 2006 UTC (18 years, 1 month ago) by drahn
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Make certain that it doesn't try to load prelink info once the primary link
is finished. prelink on dlopen cannot work, the symbol cache still works, just
cannot be preloaded. fixes xchm.

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 4 15:03:31 2006 UTC (18 years, 1 month ago) by drahn
Branch: MAIN
Changes since 1.1: +7 -1 lines
Diff to previous 1.1 (colored)

Avoid a couple of potential crashes if the input data isn't right. ok beck@

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 3 16:10:51 2006 UTC (18 years, 1 month ago) by drahn
Branch: MAIN

prebind - how to prelink a binary without throwing security out the window

Prelink fixes the address of libraries making 'return to libc' attacks trival,
prebind uses a different method to achieve most of the same gains, however
without adding any security conerns.

Still under development, now in-tree.

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.