summaryrefslogtreecommitdiff
path: root/libexec/ld.so
AgeCommit message (Collapse)Author
2007-05-29based on a diff from Matt Provost: allow printing of ldd informationJason Wright
on libraries themselves. Works by setting up the debugging flags then calling dlopen() to do the heavy lifting. ok drahn
2007-05-27document differences between LD_TRACE_LOADED_OBJECTS_FMT1 andJason McIntyre
LD_TRACE_LOADED_OBJECTS_FMT2; based on a diff from Michel Lavondes; help/ok drahn
2007-05-05Provide hook so that rthreads can provide a spinlock to protect from racesDale Rahn
in lazy binding. ok art@, kurt@
2007-04-04properly escape "%O"; ok jasonJason McIntyre
2007-04-03s/library/object for the format string stuffJason Wright
2007-04-03add support for LD_TRACE_LOADED_OBJECTS_{FMT1/FMT2/PROGNAME}. FunctionalityJason Wright
matches and expands on the old a.out ld.so formatting. ok drahn
2007-04-02Since the kernel allows argv[0] == NULL, dont core in ld.soDale Rahn
diff from Matthew Dempsky, with reminder from theo.
2007-03-07Put the workaround back in because gcc fails to build otherwise. ok deraadt@Dale Rahn
2007-03-06Revert a workaround that was put in for softfpu ABI violations, hardfp doesnt.Dale Rahn
ok miod.
2007-03-03Build ld.so softfloat for now, lets dynamic linking get further.Dale Rahn
2007-02-26Link with libgcc, will be necessary after the upcoming toolchain changes.Miod Vallat
2007-02-09readdir buffers should not get a fixed buffer size, but should be dependantDale Rahn
on the block size of the filesystem. Rounded up to page size for efficiency. similar to change in libc yesterday. Should fix PR 5364.
2007-02-08Remove __DTF_READALL usage in ld.so's private copy of readdir().Todd C. Miller
2007-02-03Kludge around a horrible problem where gcc 'knows' that __udivsi3 willDale Rahn
only clobber r0 and r4, and will not modify any other registers. Unfortunately calling thru the PLT clobbers other registers eg, r1, which then breaks because gcc doesn't reload the proper value.
2007-01-28revert 1.108, the diff allowed ldd to print the load address of the binary,Dale Rahn
however this modified variables used by C++ backtrace code which caused it to crash. ok kettenis
2006-12-26no more seperate prebindTheo de Raadt
2006-12-23Spelling.Kenneth R Westerback
'preceeding' -> 'preceding' 'preceeds' -> 'precedes' 'preceeded' -> 'preceded'
2006-12-21'immediatly' -> 'immediately' in comments.Kenneth R Westerback
2006-11-21Fill in load/end address for binary.Dale Rahn
2006-11-15failed to purge doubled up environment variables; found by Mark DowdTheo de Raadt
ok miod
2006-11-14stack corruption was fixed a while ago.Dale Rahn
2006-11-14cleanup pointed out by miod@Dale Rahn
2006-11-13Let this build on landisk.Dale Rahn
2006-11-11when calculating envp, skip over the NULL between argv and envp.Dale Rahn
2006-11-11remove '#if 0' block.Dale Rahn
2006-11-11Working?Dale Rahn
2006-11-10dont want to know where this stack corruption is coming from.Dale Rahn
2006-11-10better...Dale Rahn
2006-11-10Getting much closer.Dale Rahn
2006-11-10Not quite working ld.so support for shDale Rahn
2006-10-28Only mprotect pages during relocation if the library is marked TEXTRELDale Rahn
mips64 version still needs testing.
2006-09-26switch alpha to gcc3; joint work with drahn@ and brad@Martin Reindl
ok drahn@ brad@ mickey@ deraadt@
2006-09-24Fill in the list of loaded segments for the main executable such that we canMark Kettenis
unprotect them if necessary for binaries that have TEXTREL set. ok drahn@, martin@
2006-08-23Support arm libraries with DT_TEXTREL, has no affect for other libraries.Dale Rahn
ok kettenis, 'in then' deraadt@
2006-08-12spelling: elminateKevin Steves
2006-08-06Do not take shortcuts when the PLT size is 0; makes emacs work again on alpha.Mark Kettenis
ok drahn@
2006-08-06Work around an issue found when working with gcc3 on alpha,Dale Rahn
gcc2 nomally calls functions thru the gp (basically a function pointer), but gcc3 frequently calls directly to the plt. gcc2 does occasionally directly call to the plt. Currently how the plt/pltgot is fixed up on lazy binding, this will cause the dl_bind code to be called on each plt call causing a symbol resolution and plt fixup. This diff works around the problem partially by recognizing that a pltgot entry is already fixed and skips the symbol resolution. Since the pltgot is what is modified do not add PROT_EXEC permission to the mapping. While this is not an ideal fix, kettenis and I think it is better than before.
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-22These two env vars don't have a `=' in their name.Michael Knudsen
ok jmc
2006-06-19sort usage();Jason McIntyre
2006-06-19tweak the -S stuff;Jason McIntyre
2006-06-16Add comment warning not to rename _dl_bind, since gdb(1) knows about it.Mark Kettenis
ok (quite a while ago) drahn@
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