Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-03-27 | Remove explicit nop's in delay slots introduced in the previous commit. They | Mark Kettenis | |
are already inserted as part of jal/jr expansion by gas, and we don't need another one. suggested by miod@ | |||
2010-03-27 | Implement lazy binding on mips64. This implementation relies on having two | Mark Kettenis | |
reserved entries in the GOT, which is a GNU extension to the 64-bit MIPS SVR4 ABI. That's fine; all existing OpenBSD/mips64 binaries have the extra slot. ok miod@, jsing@, drahn@ | |||
2010-02-03 | Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependent | Miod Vallat | |
files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@ | |||
2010-02-01 | Properly restore ret1 instead of overwriting ret0 with the saved value. | Mark Kettenis | |
Fixes lazy binding for functions that return results larger than 64 bits (such as structs). ok miod@ | |||
2010-01-03 | Make lazy binding work on hppa. | Mark Kettenis | |
ok miod@ | |||
2010-01-02 | Fix handling of hppa RELOC_IPLT relocations during 'bootstrap relocation'. | Mark Kettenis | |
ok miod@, deraadt@, jsing@ | |||
2010-01-02 | the abstraction of using a function pointer for the print functions is | Theo de Raadt | |
not needed (and secondly, ran into hppa not relocating function pointers correctly) ok kettenis drahn | |||
2009-12-30 | Remove paths from the prebind code that shouldn't be present. | Dale Rahn | |
2009-10-28 | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | Theo de Raadt | |
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | |||
2009-08-19 | In ldconfig the dewey field of shlib_list was only partially filled | Alexander 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-08-16 | Do not have multiple va_end(). Ok miod@ + many more. | Anders Magnusson | |
2009-05-30 | Airplane work, undefined weak variables not getting resolved is not an error. | Dale Rahn | |
Delete an unused manpage, remove some unused variables. | |||
2009-05-18 | Add buffer mechanism internal ld.so printing code. makes ktrace more readable. | Dale Rahn | |
nudge nudge deraadt@ | |||
2009-05-18 | make _dl_wrstderr() not call write per-character; ok drahn | Theo de Raadt | |
2009-03-02 | ldd(1) accepts more than one program as argument; while here, | Igor Sobrado | |
synchronize synopsis and usage. | |||
2009-02-16 | Fix passing of ps_strings, cleanup and obj_main values to _start() in crt0. | Kurt Miller | |
looks correct kettenis@ | |||
2009-02-04 | Tag ld.so as an OpenBSD binary/library. | Mark Kettenis | |
ok kurt@, drahn@, miod@ | |||
2008-11-09 | typo fixed (overriden -> overridden) | Tobias Stoeckmann | |
ok espie, jmc | |||
2008-10-02 | Fix mmap() error checking to be correct 64-bit addresses. Consistently | Kurt Miller | |
use _dl_mmap_error() to check for mmap() errors. Adjust datatypes of some local vars for 64-bit safety. okay millert@ drahn@ | |||
2008-08-24 | prepends, not overrides default search path. with/ok kurt@ | Martynas Venckus | |
2008-07-28 | Only optimize away plt relocation when obj_base == 0. Corrects | Kurt Miller | |
pie relocation. Assembly debugging help from kettenis@. okay kettenis@ miod@ | |||
2008-07-24 | release the bind lock before resetting the signal mask | Philip Guenthe | |
ok kurt@ | |||
2008-07-16 | Fix several of the 'large offset' PLT entries. With help from kurt. | Dale Rahn | |
ok kurt@ | |||
2008-06-27 | Remove again the old _dl_md_reloc() calls-through-plt workaround: it is | Miod Vallat | |
no longer necessary now that libgcc is built correctly, and it caused the elfbug regress test to fail. | |||
2008-06-25 | Make ldd grok pie binaries. | Kurt Miller | |
2008-06-13 | Pass relocated Elf_Dyn * to _dl_finalize_object(). Needed for pie | Kurt Miller | |
executables. Debugged and okay drahn@ | |||
2008-06-13 | Completing the executable elf_object_t data exposed a bug in | Kurt Miller | |
dl_iterate_phdr(3) which was returning the load base not the object base. Problem noted in the misc/exceptions regress by David Krause. okay drahn@ | |||
2008-06-12 | - rename _dl_boot argument loff to dyn_loff to differentiate it from | Kurt Miller | |
exe_loff - calculate minva, maxva, exe_loff for the executable for passing to _dl_finialize_object and completing the executable elf_object_t data. this fixes ldd output for the exe object and prepares for PIE support. - calculate the interpreter path pointer in a way that allows for the possibility that PT_INTERP comes before PT_PHDR - fix an off by one in the init of dl_data input and okay drahn@ | |||
2008-06-08 | When prebind_newfile() is called the input file is replaced with the new | Dale Rahn | |
file, thus leaking the file descriptor, close the input file when it done. | |||
2008-05-05 | Constantly fill in the program header pointer and count in elf_object_t | Kurt Miller | |
for all objects which simplifies phdr usage in a few places. "go for it" drahn@ | |||
2008-04-11 | Correct a bug where _dl_error was set to DL_NOT_FOUND when a shared lib | Kurt Miller | |
was found but failed to load. Adjust _dl_load_shlib() to only attempt to load the first matching shared lib which allows the correct _dl_error to propagate out upon load failure. okay drahn@ | |||
2008-04-09 | Improve 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@ | |||
2008-04-03 | Use the libgcc version of these functions, no point in having extra copies. | Dale Rahn | |
2008-04-02 | Use the proper define for this address, not a incorrect (on 64bit) define. | Dale Rahn | |
ok kurt@ | |||
2008-02-24 | Use rounded down address when changing memory protections on the GOT, such | Dale Rahn | |
that we don't accidentally touch the page after the GOT. Bug found on sparc64 affected other platforms as well. ok kettenis@ | |||
2008-02-24 | Use rounded down address when changing memory protections on the GOT, such | Mark Kettenis | |
that we don't accidentally touch the page after the GOT. ok drahn@ | |||
2007-11-27 | Fix dlsym w/special handles when called from an executable that has been | Kurt Miller | |
linked without -E. dlsym issues reported by Pedro Martelletto <pedro at ambientworks.net>. okay tedu@ | |||
2007-11-27 | Make _dl_md_reloc_got() report errors, and take them into account. | Miod Vallat | |
Fixes PR #5579. | |||
2007-09-02 | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | Theo de Raadt | |
2007-08-08 | on NOPIC architectures, do not build and install ld.so. this is in | Theo de Raadt | |
particular for landisk (sh) where ld.so does not yet 100% work, but was still being installed. libtool cares. modified from matthieu patch; ok drahn | |||
2007-05-31 | convert to new .Dd format; | Jason McIntyre | |
2007-05-29 | based on a diff from Matt Provost: allow printing of ldd information | Jason Wright | |
on libraries themselves. Works by setting up the debugging flags then calling dlopen() to do the heavy lifting. ok drahn | |||
2007-05-27 | document differences between LD_TRACE_LOADED_OBJECTS_FMT1 and | Jason McIntyre | |
LD_TRACE_LOADED_OBJECTS_FMT2; based on a diff from Michel Lavondes; help/ok drahn | |||
2007-05-05 | Provide hook so that rthreads can provide a spinlock to protect from races | Dale Rahn | |
in lazy binding. ok art@, kurt@ | |||
2007-04-04 | properly escape "%O"; ok jason | Jason McIntyre | |
2007-04-03 | s/library/object for the format string stuff | Jason Wright | |
2007-04-03 | add support for LD_TRACE_LOADED_OBJECTS_{FMT1/FMT2/PROGNAME}. Functionality | Jason Wright | |
matches and expands on the old a.out ld.so formatting. ok drahn | |||
2007-04-02 | Since the kernel allows argv[0] == NULL, dont core in ld.so | Dale Rahn | |
diff from Matthew Dempsky, with reminder from theo. | |||
2007-03-07 | Put the workaround back in because gcc fails to build otherwise. ok deraadt@ | Dale Rahn | |
2007-03-06 | Revert a workaround that was put in for softfpu ABI violations, hardfp doesnt. | Dale Rahn | |
ok miod. |