summaryrefslogtreecommitdiff
path: root/libexec/ld.so/ldconfig
AgeCommit message (Collapse)Author
2013-12-03stop using sys/syslimits.h directly, and use limits.hTheo de Raadt
prodded by millert
2013-11-13Reduce casts by careful use of char*Philip Guenther
ok deraadt@
2013-11-13prototype & void * math cleanupTheo de Raadt
ok guenther
2013-10-18does not need stab.hTheo de Raadt
2013-07-15Remove some unused variables, from David Hill dhill at mindcry.orgJeremie Courreges-Anglas
While here, do better checks in elf_write_lib() and ansify elf_sum_reloc()'s decl/def. With input from and ok krw@
2013-07-10no more link(5). either remove references entirely, or point folksJason McIntyre
to elf(5) instead; ok miod
2013-07-05ELF_TOOLCHAIN bye bye.Miod Vallat
2013-07-05VAX ELF userland bits. Consists mostly of register prefix additions.Miod Vallat
2013-05-04fix use after free in error pathsJonathan Gray
ok sthen@ jung@ fgsch@
2013-03-20- Parse colon separated paths into NULL terminated arrays of stringKurt Miller
pointers to prepare for adding rpath ORIGIN support. okay matthew@ millert@
2013-02-17Always enter this ld.so and subdirectories to create obj (and then theTheo de Raadt
MI man pages, even if vax currently lacks the programs)
2013-01-23bits for an m68k ELF ld.so, to be used soon. Lazy resolver wrapper borrowed fromMiod Vallat
NetBSD.
2013-01-21Correctly define RELOC_JMP_SLOT on m88k. While there, remove the old sparcMiod Vallat
wrong RELOC_JMP_SLOT define workaround.
2013-01-05Switch m88k ports to ELF.Miod Vallat
2012-09-11prevent detection of bogus librariesMarc Espie
problem initially noticed by deraadt@, exchanged various patches with kettenis@ decided to fix the bug now, even though ldconfig could probably use a larger rewrite. okay matthew@
2012-03-21Switch ld.so's _dl_opendir functions to use a locally definedMatthew Dempsky
_dl_dirdesc struct (containing just the fields ld.so's implementation actually needs) instead of reusing libc's _dirdesc struct. Also, switch ldconfig to use futimens() instead of futimes(). ok deraadt@
2011-11-28Add support for getting some flags from DT_FLAGS_1: new flagsPhilip Guenthe
DF_1_NODELETE and DF_1_INITFIRST, as well as DF_1_NOW and DF_1_GLOBAL. Committing for kurt@ who worked out the final version; ok guenther@ drahn@
2011-04-06Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'Miod Vallat
for chars.
2010-12-13rename() is the atomic operation, unlink() is just there to createMarc Espie
races between ldconfig and ld.so (simple commit, hours of bug hunt...) okay kettenis@, deraad@, miod@
2010-03-30several missing closedir() callszinovik
regress test run fine with this changes ok deraadt@, drahn@
2009-12-30Remove paths from the prebind code that shouldn't be present.Dale Rahn
2009-08-19In ldconfig the dewey field of shlib_list was only partially filledAlexander Bluhm
as bcopy used the number of elements instead of the array's size. As a consequence, the wrong version of a library could be selected if the library had many minor numbers. from Christian Rusch; ok otto@
2009-05-30Airplane work, undefined weak variables not getting resolved is not an error.Dale Rahn
Delete an unused manpage, remove some unused variables.
2008-06-08When prebind_newfile() is called the input file is replaced with the newDale Rahn
file, thus leaking the file descriptor, close the input file when it done.
2008-04-09Improve support for shared libs linked at non-zero addreses:Kurt Miller
- 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@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2006-11-13Let this build on landisk.Dale Rahn
2006-08-12spelling: elminateKevin Steves
2006-07-28Only stop processing prebind deletion if an actual error occurs.Dale Rahn
2006-07-08jmc and I both pronounce ldconfig as ell-dee-config, so it should beMichael Knudsen
`an ldconfig utility', not `a'.
2006-06-26build cleanly with -Wall -WerrorDale Rahn
2006-06-19sort usage();Jason McIntyre
2006-06-19tweak the -S stuff;Jason McIntyre
2006-06-15When writing a TXTBUSY file, make certain to preserve all file metadata,Dale Rahn
also add -S flag, like install's -S flag to safely perform operations. Getting it in so it gets tested.
2006-05-18spacingTheo de Raadt
2006-05-17prep prebind_newfile() for reuse by dale in prebind; ok drahnTheo de Raadt
2006-05-14use __mips64__Theo de Raadt
2006-05-13some knf and delinting; ok drahnTheo de Raadt
2006-05-13spacingTheo de Raadt
2006-05-12do not call abort()Theo de Raadt
2006-05-12document new -P optionTheo de Raadt
2006-05-12move the prebind code into ldconfig as the -P option.Theo de Raadt
next we will want to enhance the verbose mode, fix error handling, and change the prebind delete code to use the same directory handling code ok drahn
2006-05-12one less Ar;Jason McIntyre
2006-05-11use CFLAGS with -I to reach for prebind.hTheo de Raadt
2006-05-11move prebind_strip(8) into ldconfig as the -D option; ok drahnTheo de Raadt
2006-04-11Plug memory leaks.Ray Lai
Spotted by NetBSD Coverity CID 1603, improvements by jaredy@ and otto@. OK otto@ and millert@
2005-12-31sort options and sync usage()Jason McIntyre
2004-11-22.{N,O}x fixes;Jason McIntyre
2004-11-10use ${STATIC} rather than -static. ok miodDale Rahn