aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/libmap.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r266411:Konstantin Belousov2014-05-251-3/+3
| | | | | | | | | Fix LD_LIBMAP. Approved by: re (gjb) Notes: svn path=/stable/9/; revision=266659
* MFH (r251810): fix installation from read-only .OBJDIRDag-Erling Smørgrav2014-03-111-2/+0
| | | | | | | | | MFH (r255384): add PRIVATELIB for internal-use shred libraries MFH (r255385, r255413): add a stock libmap32.conf MFH (r255765): always support directory mapping; rewrite libmap man page Notes: svn path=/stable/9/; revision=263031
* MFC: 234851, 235059Baptiste Daroussin2012-06-031-30/+132
| | | | | | | | | | | | | | | | | Add two special directives to libmap.conf: include <file>: Parse the contents of file before continuing with the current file. includedir <dir>: Parse the contents of every file in dir that ends in .conf before continuing with the current file. Any file or directory encountered while processing include or includedir directives will be parsed exactly once, even if it is encountered multiple times. Approved by: des (mentor) Notes: svn path=/stable/9/; revision=236523
* MFC r232974:Konstantin Belousov2012-03-301-3/+3
| | | | | | | | | Stop using strerror(3) in rtld, which brings in msgcat and stdio. Directly access sys_errlist array of errno messages with private rtld_strerror() function. Notes: svn path=/stable/9/; revision=233697
* MFC r232862:Konstantin Belousov2012-03-301-72/+76
| | | | | | | | Do not use stdio for libmap.conf read. Directly map the file and parse lines from the mappings. Notes: svn path=/stable/9/; revision=233696
* MFC r232572:Konstantin Belousov2012-03-121-10/+15
| | | | | | | | | | | Use hand-made isspace1() macro which is enough to detect spaces in libmap.conf. MFC r232590 (by pluknet): Rename isspace1() macro to the more appropriate rtld_isspace(). Notes: svn path=/stable/9/; revision=232863
* Fix a malloc overrun in 32-bit compat libmap lookup code.Peter Wemm2006-01-311-6/+4
| | | | Notes: svn path=/head/; revision=155084
* Description from Dan:Matthew N. Dodd2005-02-041-10/+75
| | | | | | | | | | | | | | | | | | Another handy libmap patch. Lets you do stuff like this: LD_LIBMAP="libpthread.so.1=libthr.so.1" mythreadedapp If you already have a program-specific override in libmap.conf, note that you must use a program-specific override in LD_LIBMAP: LD_LIBMAP="[mythreadedapp],libpthread.so.1=libthr.so.1" mythreadedapp PR: bin/74471 Submitted by: Dan Nelson <dnelson AT allantgroup.com> MFC after: 2 weeks Notes: svn path=/head/; revision=141232
* style(9)Matthew N. Dodd2005-02-041-4/+3
| | | | Notes: svn path=/head/; revision=141230
* Support basename and path based constrained matches.Matthew N. Dodd2004-05-241-1/+29
| | | | | | | | | | | | | | | | | | | | | eg: [foo] ... matches any executable 'foo' [/usr/bin/foo/] ... matches any executable under the directory /usr/bin/foo/ Exact matches continue to function as before. PR: bin/66769 Submitted-by: Dan Nelson Notes: svn path=/head/; revision=129638
* Add initial support for compiling a special 32 bit version ofPeter Wemm2004-03-211-4/+28
| | | | | | | | | | ld-elf.so.1 on 64 bit systems. Most of this involves using alternate paths, environment variables and diagnostic messages. The build glue is seperate. Notes: svn path=/head/; revision=127250
* Fix "warning: value computed is not used".Max Khon2004-02-031-1/+1
| | | | | | | Found by: gcc 2.95.4 [FreeBSD] Notes: svn path=/head/; revision=125397
* Change libmap.c:lm_init() to return a status value; 0 for successMatthew N. Dodd2003-09-131-3/+3
| | | | | | | | | | | (libmap available) and 1 for failure. Assign this return to the global 'libmap_disable' variable in rtld.c. This totally prevents any libmap functions from being called after lm_init() if no config file is present. Notes: svn path=/head/; revision=120038
* Include libmap.h for prototypes.Matthew N. Dodd2003-06-181-0/+1
| | | | Notes: svn path=/head/; revision=116513
* Provide function entry debugging messages.Matthew N. Dodd2003-05-311-1/+16
| | | | Notes: svn path=/head/; revision=115445
* Don't post-increment pointers inside a loop conditional.Matthew N. Dodd2003-05-301-11/+11
| | | | | | | | | | | | | | While I'm here: - Let lm_add() call strdup() on its own behalf. - Use a temporary pointer when parsing constraints; only set the constraint pointer on a totally successful match. PR: bin/52783 Submitted by: David P. Reese Jr. <daver@gomerbud.com> Approved by: re (rwatson) Notes: svn path=/head/; revision=115400
* Allow threading libraries to register their own lockingAlexander Kabaev2003-05-291-6/+3
| | | | | | | | | | | | | implementation in case default one provided by rtld is not suitable. Consolidate various identical MD lock implementation into a single file using appropriate machine/atomic.h. Approved by: re (scottl) Notes: svn path=/head/; revision=115396
* - Use xmalloc() and xstrdup() instead of malloc() and strdup().Matthew N. Dodd2003-05-191-5/+14
| | | | | | | | | - Add a global mapping if we have a successful constrained match. Approved by: re Notes: svn path=/head/; revision=115150
* Remove redundant strlen checks, do not check the sameAlexander Kabaev2003-04-301-22/+23
| | | | | | | symbol twice. Notes: svn path=/head/; revision=114316
* Code cleanups and sanity checking for config file parser.Matthew N. Dodd2003-04-101-19/+52
| | | | Notes: svn path=/head/; revision=113312
* Dynamic object dependency mapping: libmap.Matthew N. Dodd2003-04-071-0/+199
This is an optional feature, disabled by default. This will be useful to people testing the various POSIX threading libraries under -CURRENT but can easily serve other needs. Notes: svn path=/head/; revision=113229